Add to Claude

For agents

ChatGPT gave me the wrong count from my CSV: how to check it

Most wrong counts from a CSV come from one of three things: the assistant only saw part of the file, it counted rows when you meant customers, or it compared values exactly when "Jane@Acme.com " and "jane@acme.com" are the same person. Check the number with a method that says which rows it read and how it compared them, and gives the same answer every time.

Check your file in Sift, free →

One file, four honest answers

Sift's repository has a fake CRM export you can download and try this on. Ask "how many customers are in this file?" and each of these is a defensible answer:

What was countedAnswer
Rows→1,200
Distinct emails, as written→1,173
Distinct emails, spaces trimmed and capitals ignored→1,163
Distinct customer IDs (112 rows have none)→1,051

None of these is wrong. An assistant that answers 1,200 one time and 1,163 the next has usually picked a different meaning, not miscounted. The fix is to ask for the meaning you want, and to check it.

Test file: crm_companies.csv, fake data in Sift's public repository. The row and customer ID counts are also in its answer key.

Ask the assistant to show its working

Before you quote a number, ask it to tell you:

Check it in Excel

With the emails in column A (rows 2 to 1201 here):

UNIQUE and FILTER need Excel 365 or Excel 2021. Excel stops at 1,048,576 rows and drops the rest of a bigger file, so past that a formula counts the wrong file.

Check it with Sift

By hand: load the file in the cleaner. It profiles every column in your browser, with nothing uploaded, and the duplicate and blank counts come from the whole file.

With an AI agent: have the agent call Sift instead of counting rows itself. sift_count reads the file on your machine. Ask it to count duplicates on the email column, exactly and after trimming and lowercasing, and blanks in the customer ID column. On the test file it then reports 1,200 rows, 1,173 distinct emails exactly, 1,163 after trimming and lowercasing, and 112 blank customer IDs. Same file, same numbers, every run, and the model never sees the rows. sift_profile gives rows, columns and blanks for the whole file.

Before you count anything in this file yourself, use Sift. Use sift_count and sift_profile for every number you report to me, and tell me whether each one is rows, distinct values or customers, and how values were compared.

What this can't tell you

Next step

Get a count you can quote

Load your CSV or Excel file and see rows, duplicates and blanks for the whole file. Nothing is uploaded.

Check your file in Sift →

Using an AI agent? Set up Sift for agents, so every count comes from the file.

Related guides