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

Duplicate detection, grouping, and report export

Google Sheets Formula Is Not Equal To

Use a read-only duplicate check for google sheets formula is not equal to 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 for duplicates now
Review grouped matches for google sheets formula is not equal to 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 <> in a Google Sheets formula to test whether two values are not equal. For example, =A2<>B2 returns TRUE when the values differ and FALSE when they match. To find repeated values rather than differences, use COUNTIF alongside the comparison: not equal by itself does not identify duplicates.

Use the embedded checker below to paste TSV or CSV data and get grouped duplicate results without touching your source sheet.

Compare values with the not-equal operator

Enter this formula in C2 to compare the values in A2 and B2:

=A2<>B2

Copy it down to compare each pair of cells on the same row. The cell references are relative, so the next row compares A3 with B3. For example, apple and orange return TRUE; two matching values return FALSE.

Use IF when a readable status is more useful than a Boolean formula result:

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

This is a row-by-row comparison, not a lookup. A value in A2 may exist elsewhere in column B even if B2 is different. If row order is not consistent, search the full comparison range instead.

To leave the status blank until both cells contain a value, use:

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

This treats a formula returning an empty string like an empty value. Remove the outer IF if a missing value on one side should count as a difference.

Find missing values and duplicate values

Use COUNTIF to check whether an entry in column A appears anywhere in column B. In C2, enter and copy down:

=IF(A2="","",IF(COUNTIF($B$2:$B$100,A2)=0,"Missing from B","Found in B"))

The fixed range reference stays on B2:B100 as the formula moves down. Adjust it to cover the data set. This tests presence, not whether each occurrence has a corresponding occurrence: two identical values in A can both be marked found when B contains only one.

For identifiers that may contain *, ?, or ~, use an equality test rather than COUNTIF criteria, which interpret those characters specially:

=IF(A2="","",IF(SUMPRODUCT(--($B$2:$B$100=A2))=0,"Missing from B","Found in B"))

To flag repeated values within A2:A100, use a separate helper column:

=IF(A2="","",IF(COUNTIF($A$2:$A$100,A2)>1,"Duplicate","Unique"))

Every occurrence in a duplicate group receives the label, including the first. This COUNTIF version assumes keys do not contain wildcard characters. It ignores blank results and counts within the specified range only; extend the range before interpreting later rows as unique.

Normalize the selected values

Extra spaces and inconsistent capitalization can split what should be one group. If the key is text and case differences do not matter, put this in a helper column and copy it down:

Try the duplicate checker with your own data to see grouped counts and row indexes before deciding how to handle repeated rows.
=LOWER(TRIM(A2))

Use the helper column as the key for counts and comparisons, while retaining the original values for review. TRIM removes leading and trailing ordinary spaces and reduces repeated ordinary spaces; it does not remove every kind of whitespace. Normalization can also merge entries that are intentionally distinct, so check the rule against sample records first.

Avoid converting identifiers to numbers merely to make them match. Leading zeros may distinguish text keys such as 0012 and 12. Dates, numbers, and text that look alike can also have different underlying values or formats.

Group and count matches

For a list of distinct, nonblank keys from the normalized helper range D2:D100, enter:

=UNIQUE(FILTER(D2:D100,D2:D100<>""))

In the next column, count each returned key against the same source range. If the list starts in F2, enter this in G2 and copy down alongside the results:

=COUNTIF($D$2:$D$100,F2)

Counts above one identify repeated values; a count of one identifies a key appearing once in the selected range. The formula assumes keys contain no COUNTIF wildcard characters. FILTER returns an error when no rows qualify, so check for an empty input before treating that result as a data issue.

For duplicate rows defined by more than one column, count the combination rather than either column alone. For example, this checks the A and B pair on each row:

=IF(OR(A2="",B2=""),"",COUNTIFS($A$2:$A$100,A2,$B$2:$B$100,B2))

A result above one means that pair repeats in the selected ranges. This example excludes pairs with a blank component and assumes neither key contains wildcard characters. Decide whether those exclusions fit the records before using the counts.

Compare sheets and inspect the report

To find a key from the current sheet anywhere in another sheet's column A, enter and copy down:

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

Replace Sheet 2 and the range with the actual sheet name and key range. This formula compares values across sheets; it does not establish that complete records match. For wildcard-bearing keys, use the SUMPRODUCT equality method with the other sheet's range instead.

Inspect flagged records before deciding what a difference means. A duplicate key can represent a valid repeat transaction, while a missing lookup result may reflect a range that ends too early. Compare relevant fields and verify the original row numbers, especially after sorting or filtering.

The embedded duplicate checker accepts pasted TSV or CSV data and checks selected columns without changing the source sheet. Its report provides grouped counts and row indexes for review; keep enough context in the pasted data to trace each result back to its source.

Export evidence

Keep the source data unchanged while preparing a review copy. Include the selected key, original values, status or count, and a source row identifier so another reviewer can locate each record. Row numbers can change after sorting or inserting rows, so record a stable ID as well when one exists.

For a manual report, copy the relevant results to a separate sheet and use File > Download to choose an available format. Check whether the chosen format exports the intended sheet and preserves the fields needed for review. The embedded checker also supports downloading its duplicate evidence; inspect the exported content before sharing it.

FAQ

Does this page delete google sheets formula is not equal to?

No, it returns a read-only duplicate report.

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