Excel Row Filter
Filter worksheet rows and export matching data
Excel Row Filter — what it does
Filter a worksheet's rows by a column and a condition — contains, equals, not equal, greater than, less than or is blank — and export the matching rows as a new workbook, with a count of how many matched. Unlike Excel's on-screen AutoFilter, the result is a standalone file containing only what passed.
Worked example
Keeping only the Sales department from staff-5.xlsx (worksheet Staff): column department, condition Equals, value sales.
Input — staff-5.xlsx › Staff
name | email | department | start_date | salary Ann Lee | ann.lee@example.com | Sales | 2021-03-15 | 52000 Ben Ortiz | ben.ortiz@example.com | Engineering | 2019-11-02 | 88000 Chloe Park | chloe.park@example.com | Sales | 2023-06-01 | 47500 Dev Patel | dev.patel@example.com | Support | 2020-01-20 | 41000 Emma Rossi | emma.rossi@example.com | Engineering | 2022-09-12 | 91000
Output — staff-5-filtered.xlsx › Staff (Matching rows: 2)
name | email | department | start_date | salary Ann Lee | ann.lee@example.com | Sales | 2021-03-15 | 52000 Chloe Park | chloe.park@example.com | Sales | 2023-06-01 | 47500
The value was typed in lower case and still matched Sales, because text conditions ignore case. Running salary › Greater than › 50000 on the same file keeps 3 rows (Ann Lee, Ben Ortiz, Emma Rossi).
When this tool helps
- Extracting one region's or one status's rows from a master workbook for distribution.
- Pulling every order above a value threshold into a review file.
- Isolating rows with a blank cell in a required column to chase up missing data.
How to use it
- Choose the Excel file and the worksheet.
- Select the filter column and the condition.
- Enter the comparison value.
- Filter, note the matching-row count, and download the result.
Accuracy, limits, and good practice
- The matching count is instant feedback — zero matches usually means a typo in the value or an unexpected data format in the column.
- Greater-than and less-than need real numbers in the column; numbers stored as text will not compare correctly.
- Chain filters by running the output through again — each pass ANDs another condition onto the result.
Frequently asked questions
How is this different from AutoFilter in Excel?
AutoFilter hides rows in place; the hidden rows are still in the file. This exports a copy containing only the matches.
Can I filter dates?
Yes, with the comparison operators, provided the column holds genuine date values rather than text that looks like dates.
What does 'is blank' match?
Truly empty cells. Cells containing spaces are not empty — run the blank cleaner first to normalise those.
Is text matching case-sensitive?
No. Contains, Equals and Not equal compare lower-cased text, which is why sales matched Sales in the example. Greater than and Less than convert both sides to numbers instead, and a value that is not numeric never passes those two.
Why are the numbers text in the filtered file?
The filter works on each cell's displayed text and writes that text back, so salaries and dates arrive as text cells in staff-5-filtered.xlsx. Use Excel's convert-to-number on those columns if you need to calculate on the output.
Related tools on this site
- Excel Workbook Viewer — Open XLSX or XLS files, switch worksheets, search values, and preview cells locally
- Split Excel Workbook — Export every worksheet as an individual XLSX file in a ZIP archive
- Excel Duplicate Remover — Remove duplicate spreadsheet rows using one or more selected columns
Further reading: Cleaning a CSV export before you import it anywhere · CSV, JSON, YAML, XML and Markdown Tables: When Each Fits and How to Convert
Everything above runs inside this page. Excel Row Filter needs no account, no upload, and no server round trip — close the tab and nothing is left behind.
Excel 資料列篩選能做什麼
依欄位與條件篩選工作表的資料列——包含、等於、不等於、大於、小於或為空白——並把符合的列匯出成新活頁簿,同時回報命中筆數。與 Excel 畫面上的自動篩選不同,結果是一份只含通過資料的獨立檔案。
實際範例
從 staff-5.xlsx(Staff 工作表)只留 Sales 部門:欄位 department、條件 Equals、值填 sales。
來源:staff-5.xlsx › Staff
name | email | department | start_date | salary Ann Lee | ann.lee@example.com | Sales | 2021-03-15 | 52000 Ben Ortiz | ben.ortiz@example.com | Engineering | 2019-11-02 | 88000 Chloe Park | chloe.park@example.com | Sales | 2023-06-01 | 47500 Dev Patel | dev.patel@example.com | Support | 2020-01-20 | 41000 Emma Rossi | emma.rossi@example.com | Engineering | 2022-09-12 | 91000
產生的檔案:staff-5-filtered.xlsx › Staff(Matching rows:2)
name | email | department | start_date | salary Ann Lee | ann.lee@example.com | Sales | 2021-03-15 | 52000 Chloe Park | chloe.park@example.com | Sales | 2023-06-01 | 47500
值打的是小寫 sales,仍比對到 Sales,因為文字條件不分大小寫。同一檔改跑 salary › Greater than › 50000 會留下 3 列(Ann Lee、Ben Ortiz、Emma Rossi)。
什麼時候用得上
- 從主活頁簿抽出單一地區或狀態的資料列以便分送。
- 把超過金額門檻的訂單全部拉進覆核檔。
- 隔離必填欄位為空白的列,追查缺漏資料。
使用步驟
- 選擇 Excel 檔案與工作表。
- 選定篩選欄位與條件。
- 輸入比較值。
- 執行篩選,記下命中筆數,下載結果。
精確度、限制與實務建議
- 命中筆數是即時回饋——零筆通常代表比較值打錯字,或欄位資料格式與預期不符。
- 大於、小於需要欄位裡是真正的數字;以文字儲存的數字無法正確比較。
- 把輸出再跑一次即可串接條件——每一輪都是在結果上再 AND 一個條件。
常見問題
跟 Excel 的自動篩選差在哪?
自動篩選只是就地隱藏列,隱藏的列還在檔案裡;這裡匯出的副本只含符合的列。
可以篩日期嗎?
可以,用比較運算子即可,前提是欄位存的是真正的日期值,而非長得像日期的文字。
「為空白」會命中什麼?
真正的空儲存格。含空格的儲存格不算空白——請先用空白清理工具統一。
文字比對會區分大小寫嗎?
不會。Contains、Equals、Not equal 都把兩邊轉成小寫再比,所以範例裡 sales 能比對到 Sales。Greater than 與 Less than 則把兩邊轉成數字比較,不是數字的值永遠不符合這兩個條件。
為什麼篩選後的檔案裡數字變成文字?
篩選是以每格顯示的文字進行,寫回去的也是那段文字,所以薪資與日期在 staff-5-filtered.xlsx 裡都成了文字格。要拿產生的檔案繼續運算,先在 Excel 裡把那些欄轉回數值。
本站相關工具
- Excel 活頁簿檢視器 — 在本地開啟 XLSX 或 XLS、切換工作表、搜尋內容並預覽儲存格
- 拆分 Excel 活頁簿 — 將每個工作表匯出為獨立 XLSX,並打包成 ZIP
- Excel 重複資料清理 — 按照一個或多個欄位移除重複的試算表資料列
延伸閱讀: 匯入之前先把 CSV 匯出檔清乾淨 · CSV、JSON、YAML、XML 與 Markdown 表格:各自適用的場合與轉換方法
以上步驟全部在這個頁面內完成,Excel 資料列篩選 不需要註冊、不上傳檔案、也不經過伺服器,關閉分頁後不會留下任何資料。