Σ

CSV Column Statistics

Calculate numeric and uniqueness statistics for one column

No file selected.
0Numeric values
0Empty values
0Unique values
0Sum
0Average
0Minimum
0Maximum

CSV Column Statistics — what it does

Select one column and this tool profiles it: how many values are numeric, how many cells are empty, how many distinct values exist, and for numeric data the sum, average, minimum and maximum. It is the first look you want at an unfamiliar dataset, before writing a formula that assumes the column is clean.

Worked example

An expense export profiled on its amount column, which contains a blank cell, a quoted value with a thousands separator and the text n/a.

Input — expenses.csv (column: amount)

expense_id,category,amount
E-101,Travel,120.50
E-102,Meals,89.99
E-103,Travel,
E-104,Equipment,"1,250.00"
E-105,Meals,45.00
E-106,Travel,n/a

Output — the seven figures shown on the page

Numeric values  4
Empty values    1
Unique values   5
Sum             1505.4900
Average         376.3725
Minimum         45
Maximum         1250

The blank cell is reported under Empty values and left out of everything else, so the count is 4 and the average is 1505.49 ÷ 4. "1,250.00" is read as 1250; n/a is left out of the arithmetic but counts as a unique value.

When this tool helps

  • Checking an amount column for blanks and text entries before trusting a total from it.
  • Measuring cardinality — whether a field is a genuine identifier or repeats across thousands of rows.
  • Spotting an implausible minimum or maximum that points to a data entry or unit error.

How to use it

  1. Choose the CSV file.
  2. Select the column to analyse.
  3. Process the file.
  4. Read the numeric, empty and unique counts alongside the summary statistics.

Accuracy, limits, and good practice

  • If the numeric count is lower than the row count, some cells are blank or contain text or currency symbols that cannot be read as numbers. Thousands separators such as 1,250 are stripped and do count.
  • Average is sensitive to extremes; when minimum and maximum are far apart, check the outlier detector before quoting the mean.
  • Unique value counts include differences in case and whitespace, so Paris and paris are counted as two distinct values.

Frequently asked questions

Are empty cells counted in the average?

No. Only parseable numeric values contribute to sum and average, which is why the numeric count is worth reading first.

Can I profile several columns at once?

Run the tool per column. To classify every column at a glance, the column type detector gives a whole-file overview.

Does it compute a median?

Not here. The Excel column statistics tool reports a median alongside the other measures if you need it.

Does a thousands separator stop a value being read as a number?

No. Commas are stripped before parsing, so "1,250.00" counts as 1250. Currency symbols, spaces inside the number and text such as n/a are not stripped, and those cells are excluded from the sum, average, minimum and maximum.

Why are sum and average shown with four decimals but minimum and maximum without?

Sum and average are rounded to four decimal places for display (1505.4900); minimum and maximum are printed as the raw numbers found, so 45.00 appears as 45 and 1,250.00 as 1250.

Related tools on this site

Everything above runs inside this page. CSV Column Statistics needs no account, no upload, and no server round trip — close the tab and nothing is left behind.

CSV 欄位統計能做什麼

選定一個欄位,工具會為它做剖析:有多少值是數字、多少儲存格為空、有多少不重複值,數值資料還會給出總和、平均、最小與最大值。在對陌生資料寫下任何假設欄位很乾淨的公式之前,這是你該先看的第一眼。

實際範例

費用報表以 amount 欄做統計;該欄含一個空儲存格、一個帶千分位且加了引號的值,以及文字 n/a。

來源:expenses.csv(欄位:amount)

expense_id,category,amount
E-101,Travel,120.50
E-102,Meals,89.99
E-103,Travel,
E-104,Equipment,"1,250.00"
E-105,Meals,45.00
E-106,Travel,n/a

得到:頁面上顯示的七個數值

Numeric values  4
Empty values    1
Unique values   5
Sum             1505.4900
Average         376.3725
Minimum         45
Maximum         1250

空儲存格只計入「空值」,其他統計都略過它,所以數值個數是 4,平均為 1505.49 ÷ 4。「1,250.00」被讀成 1250;n/a 不參與運算,但算一個相異值。

什麼時候用得上

  • 在相信金額欄的總計之前,先檢查其中是否夾雜空白與文字。
  • 衡量欄位的離散度,判斷它是真正的識別碼,還是在數千列中不斷重複。
  • 找出不合理的最小或最大值,那通常指向輸入錯誤或單位錯誤。

使用步驟

  1. 選擇 CSV 檔案。
  2. 選定要分析的欄位。
  3. 執行處理。
  4. 查看數值筆數、空白筆數、不重複值與各項統計。

精確度、限制與實務建議

  • 若數值筆數少於總列數,代表有些儲存格是空白,或含無法當成數字的文字、貨幣符號;1,250 這類千分位逗號會先去掉,仍算數值。
  • 平均值容易被極端值拉走;最小與最大值差距很大時,建議先用離群值偵測工具檢查再引用平均。
  • 不重複值計數會區分大小寫與空白,因此 Paris 與 paris 會被算成兩個不同的值。

常見問題

空白儲存格會算進平均嗎?

不會。只有可解析的數值才計入總和與平均,這也是要先看數值筆數的原因。

可以一次分析多個欄位嗎?

請逐欄執行。若想快速掌握每一欄的類型,可用欄位類型偵測工具看整份檔案的概況。

會算中位數嗎?

此工具不含中位數。需要的話,Excel 欄位統計工具會一併提供中位數。

千分位逗號會讓值無法被當成數字嗎?

不會。解析前會先去掉逗號,所以「1,250.00」算 1250。貨幣符號、數字中間的空格與 n/a 之類的文字不會被去掉,那些儲存格會被排在總和、平均、最小值與最大值之外。

為什麼總和與平均顯示四位小數,最小值與最大值卻沒有?

總和與平均在顯示時固定取四位小數(1505.4900);最小值與最大值直接印原始數字,所以 45.00 顯示為 45、1,250.00 顯示為 1250。

本站相關工具

以上步驟全部在這個頁面內完成,CSV 欄位統計 不需要註冊、不上傳檔案、也不經過伺服器,關閉分頁後不會留下任何資料。