Filter CSV rows by a column value

Pick a column, a condition and a value, and keep only the rows that match. Conditions include text matches, number comparisons, empty or not empty, and regular expressions for advanced patterns. The header row is kept.

Filter CSV Rows tool

Your file stays in this browser tab. It is not uploaded by SheetShift.

CSV file

Drag a file here, or

Options

How to use the Filter CSV Rows

  1. Load a CSV file.
  2. Enter the column name, choose a condition and type the value to compare.
  3. Press Filter. The summary tells you how many rows matched.
  4. Download the filtered CSV.

Example: input and output

This example was produced by the same code the tool runs, with these settings: column = total, op = gt, value = 100. You can download the sample file(s): orders.csv.

Input
order_id,customer,status,total
1001,Alice,paid,129.90
1002,Ben,pending,54.00
1003,Carla,paid,310.25
1004,Dev,refunded,75.50
Output
order_id,customer,status,total
1001,Alice,paid,129.90
1003,Carla,paid,310.25

Result summary: Kept 2 of 4 rows.

Supported formats

CSV, TSV, TXT.

Limitations

  • This tool applies one condition at a time. To combine conditions, run it twice, using the output of the first run as input.
  • Number comparisons ignore currency symbols and thousands separators but expect a dot as decimal mark.
  • Regular expressions use the JavaScript flavour.

When this helps

Pull out a segment

Keep only the orders over 100 in an export before sending it to finance.

Find problem rows

Filter for rows where an email column is empty to see which records need follow-up.

Frequently asked questions

Can I use two conditions?

Run the filter twice. Use the first result as the input of the second run.

Is the text match case sensitive?

Not by default. Tick Match case to make it so.

What if no rows match?

You get a file with only the header and a summary that says zero rows matched.

Related tools

Category: CSV Tools