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

Duplicate detection, grouping, and report export

Not Equal To In Google Sheets Formula

Use a read-only duplicate check for not equal to in google sheets formula 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
Review grouped matches for not equal to in google sheets formula 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 <> for not equal to in a Google Sheets formula. For example, =A2<>B2 returns TRUE when the two cells differ and FALSE when they match. Combine the comparison with IF, FILTER, or conditional formatting to label or isolate differences without changing the source values.

Learn how the not-equal operator works in Google Sheets formulas to compare cell values.

Compare values with the not-equal operator

Enter this formula in an empty cell to compare two cells on the same row:

=A2<>B2

If A2 contains Apple and B2 contains Pear, the result is TRUE. If both contain Apple, the result is FALSE. Copy the formula down to compare corresponding rows in a data range.

For readable labels, use IF:

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

To compare a cell with fixed text, put the text in double quotes. This example labels every status other than Closed:

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

The same operator works with numbers and cell references. For example, =A2<>100 checks whether A2 differs from 100. To compare against a value stored in E1 while copying the formula down, use an absolute reference: google-sheets-cell-equal-cells-value-not-formula

=A2<>$E$1

The reference A2 changes as the formula is copied; $E$1 remains fixed. Without the dollar signs, the comparison cell would move to E2, E3, and so on.

Handle blank cells deliberately

A comparison can return TRUE when one cell is blank and the other contains a value. If the report should compare only rows where both cells have nonempty results, add an AND test:

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

Here, "" represents an empty string. A formula that returns "" is treated as empty by these tests, even though the cell contains a formula. If one missing value itself counts as a difference, use the simpler =A2<>B2 instead.

Filter rows that do not match

Use FILTER when you need a separate list of differences rather than a label beside every row. This example returns columns A through C for rows where A and B differ and both are nonempty:

=FILTER(A2:C100,A2:A100<>B2:B100,A2:A100<>"",B2:B100<>"")

Enter the formula in an empty area with enough room for the returned rows. The condition ranges cover the same rows as the returned data range. If no rows meet the conditions, FILTER returns #N/A; that result does not mean the source data changed. google-sheets-custom-formula-not-equal

This formula compares values by row, not by membership in a list. To find nonblank values in A that do not appear anywhere in B, use:

=FILTER(A2:A100,A2:A100<>"",COUNTIF(B2:B100,A2:A100)=0)

COUNTIF counts matches for each value; zero means no match was found in the specified range. This is a missing-value check, not a test that corresponding rows differ. Be careful when values contain * or ?: COUNTIF treats them as wildcards unless escaped.

Use a Google Sheets custom formula for differences

A conditional formatting rule can highlight rows where two columns do not match:

Compare the same cells across two different tabs using sheet-specific references.
  1. Select the data range, such as A2:C100.
  2. Choose Format → Conditional formatting.
  3. Under the format rules, select Custom formula is.
  4. Enter the formula below, choose a format, and select Done.
=AND($A2<>"",$B2<>"",$A2<>$B2)

The locked columns keep each comparison in A and B while the relative row number changes across the selected range. The formula must refer to the first row of the applied range. If the range starts at row 3, change each 2 in the formula to 3.

Remove the two nonempty tests if blank-versus-filled cells should also be highlighted. Conditional formatting changes appearance, not the underlying values.

Compare sheets and inspect duplicate groups

To compare the same position on two tabs, reference each sheet explicitly. For example, enter this on a report sheet: google-sheets-does-not-equal-in-formula

=IF('Sheet 1'!A2<>'Sheet 2'!A2,"Different","Match")

Replace the tab names with your own and copy the formula down. This checks corresponding cells, so sorting one sheet independently can make unrelated records appear different. For records in different orders, match them by a stable key before comparing their values.

A not-equal comparison identifies differences; it does not establish whether a value is duplicated. For duplicate detection, count occurrences in the intended key range. If A contains record IDs, place this in B2 and copy it down:

=IF(A2="","",COUNTIF($A$2:$A$100,A2))

A count greater than 1 marks a repeated ID, including its first occurrence. The fixed range keeps the counting scope consistent. Adjust row 100 to include the full data set, and avoid treating blank cells as duplicate IDs unless that is the intended rule.

Normalize the selected values

Differences in spacing or capitalization can split values that should be grouped together. If IDs are text and those distinctions are not meaningful, create a helper key in C2:

=LOWER(TRIM(A2))

Copy the formula down, then count values in column C instead of A. TRIM removes leading and trailing spaces and reduces repeated ordinary spaces; LOWER normalizes letter case. Review the original values before adopting this rule, because normalization can merge entries that your workflow treats as distinct. google-sheets-formula-not-equal-to

Group and count matches

To produce a grouped summary of nonblank helper keys, enter this in an empty area:

=QUERY(C2:C100,"select C, count(C) where C is not null group by C having count(C) > 1 label count(C) 'Count'",0)

The result lists each repeated normalized key and its count. For row-level evidence, keep the helper count beside the original records or filter rows whose count is greater than 1. A grouped count alone does not show which source rows contributed to it.

Inspect the report and export evidence

Check the comparison scope before interpreting results: confirm that ranges cover the intended rows, headers are excluded, and both sides use compatible values. Numbers stored as text, extra spaces, errors, and formulas returning empty strings can affect results or require separate review. Use EXACT(A2,B2) when a case-sensitive text comparison is required; =NOT(EXACT(A2,B2)) returns TRUE when those texts differ.

For an auditable duplicate report, include the source row number in a helper column with =ROW(), alongside the original key, normalized key, and count. Review several flagged rows against the source before acting. If records come from multiple tabs, include a sheet identifier as well as the row number so locations remain unambiguous.

Export the duplicate detection report as evidence without changing the source data.

The embedded duplicate check can report grouped counts and row indexes from pasted data without deleting source values. Its report can be downloaded as evidence; verify the selected key scope before using that evidence for cleanup. For a manual report, copy the relevant results to a separate sheet and use File → Download to export the appropriate sheet format.

FAQ

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

No, it returns a read-only duplicate report.

How do I use the tool?

Paste data for not equal to in google sheets formula; 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