Check for Duplicates in Google Sheets
en
Run read-only duplicate check

Duplicate detection, grouping, and report export

Google Sheets Function Does Not Equal

Use a read-only duplicate check for google sheets function does not equal when you need to inspect repeated values without changing the source sheet. Paste the relevant data, select the key scope, review grouped counts and row indexes, and export the evidence.

Inspect duplicate groups in the selected sheet dataKeep source values unchanged during the checkExport row-level evidence for the next step
Check duplicates in pasted sheet data
Review grouped matches for google sheets function does not equal before exporting duplicate evidence.

Report reading guide

Read duplicate results in three passes

  1. Scope: confirm selected key columns.
  2. Groups: review repeated values and counts.
  3. Rows: compare source row numbers before acting.
Key customer@example.comCount 3 matchesRows 12, 27, 41

Use the <> operator in Google Sheets to test whether two values do not equal each other. For example, =A2<>B2 returns TRUE when the values differ and FALSE when they match. Combine <> with functions such as IF, FILTER, and COUNTIF to label differences or inspect duplicate values without changing the source data.

Paste your sheet data and run a read-only check to find duplicate values without altering the source.

Use does not equal in a formula

Enter a comparison in an empty cell, then fill it down alongside your data. If A2 contains Apple and B2 contains Pear, this formula returns Different:

=IF(A2<>B2,"Different","Match")

IF evaluates the comparison first, returns the second argument when it is TRUE, and returns the third when it is FALSE. This compares cells on the same row; it does not search the rest of column B for a match.

To compare a cell with a fixed text value, put the text in quotation marks:

=IF(A2<>"Closed","Review","Closed")

A blank A2 also differs from Closed, so it receives Review. To exclude blanks, test for them explicitly:

=IF(A2="","",IF(A2<>"Closed","Review","Closed"))

Comparisons are generally case-insensitive. If capitalization must match exactly, use EXACT and reverse its result:

=NOT(EXACT(A2,B2))

This returns TRUE for Apple and apple. Check whether differences in capitalization matter before treating them as separate records.

Combine greater than and not equal to zero

For a numeric value in A2, use >0 to test whether it is greater than zero. A negative number is not equal to zero, but it is not greater than zero. Choose the condition that matches the question:

=A2<>0
=A2>0

If the requirement is greater than or equal to a threshold but not equal to zero, combine both tests with AND: filter-does-not-equal-google-sheets

=AND(A2>=B2,A2<>0)

For example, with a threshold of -5 in B2, -2 passes both tests, while 0 fails the second. If the requirement is strictly greater than zero, =A2>0 already excludes zero; adding A2<>0 is redundant. Ensure the cells contain numbers rather than text that only looks numeric.

Find nonmatching values and duplicate keys

A not-equal comparison identifies differences; it does not by itself group duplicates. Use COUNTIF when the task is to find how often a value occurs, or when a value must be checked against an entire range rather than one cell.

Normalize the selected values

Choose the sheet range and key column before counting. A customer ID may identify a repeated customer, while a name alone may combine different people. Keep the original columns intact and put any cleaned key in a separate column.

The embedded duplicate check groups repeated keys and shows row indexes so you can review before any cleanup.

For text keys in A2:A100, enter this in B2 and fill down: google-sheets-if-does-not-equal

=IF(A2="","",LOWER(TRIM(A2)))

TRIM removes leading and trailing spaces and reduces repeated ordinary spaces; LOWER standardizes capitalization. This does not resolve every hidden character, spelling variation, or difference between text and numbers. Check a sample of the cleaned values before grouping, especially when spaces or case are meaningful.

Group and count matches

Count each nonblank normalized key in C2, then fill down:

=IF(B2="","",COUNTIF($B$2:$B$100,B2))

A count greater than 1 marks every row in a duplicate group, including its first occurrence. The fixed range keeps the same comparison scope as the formula moves down; extend it when your data set grows. Blank keys are excluded, not counted as duplicates.

To produce one row per normalized key with its count, place this formula in a clear area: google-sheets-if-statement-not-equal

=QUERY(B2:B100,"select B, count(B) where B is not null group by B having count(B) > 1 label count(B) 'Count'",0)

The output summarizes repeated values but does not list their source row numbers. Filter the original data by a reported key, or keep a helper column with =ROW() filled down before sorting or exporting. Preserve that row index with the records so the evidence can be traced back to its original position.

COUNTIF treats * and ? in criteria as wildcards. If keys contain those characters or a tilde, escape them in the criterion before relying on counts:

=IF(B2="","",COUNTIF($B$2:$B$100,SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B2,"~","~~"),"*","~*"),"?","~?")))

Compare ranges or sheets

To find values in Sheet1 column A that are missing from Sheet2 column A, enter this in Sheet1 B2 and fill down:

=IF(A2="","",IF(COUNTIF(Sheet2!$A$2:$A$100,A2)=0,"Missing","Found"))

This lookup checks membership anywhere in the selected range; it does not require matching row positions. Escape wildcard characters in the criterion as above if they can occur in the keys. Run the comparison in the opposite direction as well if values present only in Sheet2 also matter. google-sheets-not-equal-int

For a row-by-row comparison instead, use =A2<>Sheet2!A2. This is useful only when both sheets have corresponding records in the same order. Sorting one sheet independently can turn matching records into apparent differences.

Inspect the report and export evidence

Review the comparison scope before interpreting a result. A count of 2 means two matching keys within the selected range, not necessarily two identical rows. Compare relevant fields alongside each key and decide whether repeated records are legitimate.

  1. Filter the helper count column for values greater than 1, or use the grouped summary to identify repeated keys.
  2. Inspect the original values, normalized keys, source row indexes, and other relevant fields for each group.
  3. Check range endpoints and blank-key handling; rows outside the range and excluded blanks will not appear in the count.
  4. Keep a copy of the reviewed rows and their source identifiers before making any separate cleanup decision.

The embedded duplicate check can produce a read-only report from pasted sheet data, with grouped counts and row indexes for the selected key scope. Its downloadable evidence supports review; it does not delete source rows.

Download the exported evidence as a separate sheet for safe review and archiving.

In Sheets, you can also copy the filtered evidence to a separate sheet and download that sheet in an available format using File → Download. Verify that the exported file contains the identifiers, counts, and original values needed for review. Filtering and exporting are not substitutes for checking whether each repeated key represents a true duplicate.

FAQ

Does this page delete google sheets function does not equal?

No, it returns a read-only duplicate report.

What data is needed for the duplicate check?

Paste data for google sheets function does not equal; select the key scope; inspect grouped counts, row indexes, and exportable evidence.

Run read-only duplicate check to inspect duplicate detection, grouping, and report export and export a controlled report without destructive cleanup.

Run read-only duplicate check to inspect duplicate detection, grouping, and report export and export a controlled report without destructive cleanup.

Run read-only duplicate check

Run read-only duplicate check