For agents
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 →
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:
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.
Before you quote a number, ask it to tell you:
With the emails in column A (rows 2 to 1201 here):
=ROWS(A2:A1201). (COUNTA counts only the
non-blank cells, which is a different number as soon as an email is missing.)=COUNTA(UNIQUE(FILTER(A2:A1201, A2:A1201<>""))). UNIQUE already
ignores capital letters, so on the test file this gives 1,173.=COUNTA(UNIQUE(TRIM(FILTER(A2:A1201, A2:A1201<>"")))) gives 1,163.
TRIM does not remove non-breaking spaces, so if the numbers still look off, wrap the range
as TRIM(SUBSTITUTE(range, CHAR(160), " ")) instead.=COUNTBLANK(B2:B1201) on the ID column.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.
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.
jane@acme.com and jane.doe@gmail.com are
the same customer. Matching on name and company can help:
find fuzzy duplicates.