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

Duplicate detection, grouping, and report export

Not Equal Formula In Google Sheets

Use a read-only duplicate check for not equal formula in google sheets 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
Run read-only duplicate check
Review grouped matches for not equal formula in google sheets 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 duplicate values, use an equality-based count such as COUNTIF; a not-equal comparison alone does not identify repeated values.

Paste your TSV or CSV data and use the check duplicates action to see grouped matches with row indexes.

Compare values with a not equal formula in Google Sheets

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. A row containing Apple and Orange returns TRUE; a row containing Apple in both cells returns FALSE. The cell references change relative to the formula's position as you copy it.

Use IF when a text label is easier to scan than a Boolean result:

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

To compare every value in column A with one fixed value in E1, lock the reference before copying the formula down:

=A2<>$E$1

The $ signs keep E1 fixed while A2 changes to A3, A4, and so on. To compare against a text literal instead, put the text in double quotes, as in =A2<>"Complete".

Handle blanks and compare sheets

A blank cell compared with a populated cell is a difference, but it may represent missing data rather than a changed value. Use an explicit blank check when the report should distinguish those cases:

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

This formula treats a cell containing a formula that returns an empty string as missing too. If both cells are blank, it also returns Missing value; change that rule only if two blank values should count as a match.

To compare corresponding cells across two sheets in the same spreadsheet, enter this on a third sheet and copy it down:

='Sheet 1'!A2<>'Sheet 2'!A2

This is a position-by-position comparison, not a lookup. If one sheet is sorted differently or has an inserted row, TRUE may reflect misaligned records rather than a real change. Align records by a stable key before comparing returned values, and check that both ranges cover the intended rows.

Find repeated values in the selected range

A not equal in Google Sheets formula answers whether two values differ. To detect duplicates across a data set, count occurrences of each value instead. For identifiers in A2:A100, enter this in B2 and copy it through B100:

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

Every nonblank value appearing more than once receives Duplicate, including its first occurrence. A value appearing once receives Unique. The fixed range reference keeps the counting scope unchanged as the row reference moves. Adjust row 100 to include the complete data set without including unrelated records.

For literal identifiers containing *, ? or ~, avoid using the identifier directly as a COUNTIF criterion: those characters have special meaning in criteria. An equality-based count avoids treating them as wildcards:

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

This still follows Sheets' normal equality behavior, including case-insensitive text comparison. If capitalization defines distinct keys, use a case-sensitive method such as EXACT and verify its results against your data.

Normalize the selected values

Extra spaces or inconsistent capitalization can split values that should belong to the same group. If those differences are not meaningful for your identifiers, place this helper formula in B2 and copy it down:

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

Then count the helper values rather than the originals. Keep column A unchanged so you can inspect the source value behind each result. TRIM handles ordinary spaces; other invisible characters may need separate investigation. Do not normalize case or spaces when they are part of the identifier.

Group and count matches

For a compact summary, apply QUERY to the normalized values in B2:B100:

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

Each returned row shows a repeated normalized value and its count. Ensure the output area has enough empty cells for the result, and expand the range when new records fall outside it. This summary does not identify individual source rows; retain the row-level duplicate labels for that evidence.

Inspect the report for not equal formula in Google Sheets

Review differences and duplicate groups as separate findings. A TRUE result from <> means the two referenced values differ; a duplicate label means the selected key occurs more than once in the counted range. Neither result alone establishes which record is correct.

  1. Check the compared cells or sheet ranges and confirm that corresponding rows represent the same record.
  2. Inspect each repeated key in the original data, including its spelling, spaces and associated fields.
  3. Check missing values separately from genuine differences.
  4. Record sheet names and row numbers before changing a sort order or filter; row positions can move.

For a pasted data set, the embedded duplicate check can provide grouped counts and row indexes without changing the source sheet. Compare those results with the original rows and the selected key columns before deciding whether any cleanup is appropriate.

Export evidence

For a manual record, keep the original key, normalized key, duplicate label and any relevant comparison result together on a report sheet. Add source sheet names and row numbers as values, then use File > Download to choose an available export format. Check the downloaded file to confirm it contains the intended report and enough context to trace each finding.

The embedded check also supports exporting duplicate evidence. An export records findings; it does not establish which repeated record should be kept or delete values from the source. Review the evidence before making any separate edits.

FAQ

Does this page delete not equal formula in google sheets?

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