Duplicate detection, grouping, and report export
Google Sheets Not Equal In Formula
Use a read-only duplicate check for google sheets not equal in 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.
Report reading guide
Read duplicate results in three passes
- Scope: confirm selected key columns.
- Groups: review repeated values and counts.
- Rows: compare source row numbers before acting.
Use <> for not equal in a Google Sheets formula. For example, =A2<>B2 returns TRUE when the values in A2 and B2 differ, and FALSE when they match. Use that result directly, or place the comparison inside IF, FILTER, or another function to label or return rows.
Compare values with not equal
Enter this formula in C2 to compare two cells on the same row:
=A2<>B2
If A2 contains apple and B2 contains orange, the result is TRUE. If both contain apple, it is FALSE. The comparison evaluates cell values, including values returned by formulas, rather than comparing the formula text.
To display a readable status instead of TRUE or FALSE, use:
=IF(A2<>B2,"Different","Match")
Fill the formula down to compare each pair of rows. The relative references change from A2 and B2 to A3 and B3, then A4 and B4. This method assumes corresponding records already occupy the same rows; it does not find a record that has moved elsewhere in the data set.
For a fixed comparison value, use an absolute reference. This example checks each value in column A against E1:
=IF(A2<>$E$1,"Different","Match")
The dollar signs keep E1 fixed when you copy the formula. Text can also be written directly in the comparison, such as =A2<>"Closed". Put text in double quotes; use a cell reference without quotes when the comparison value is stored in a cell.
Exclude blanks and return differing rows
A blank cell can produce an unwanted difference when only one side is populated. To compare rows only when both cells contain values, use:
=IF(OR(A2="",B2=""),"",IF(A2<>B2,"Different","Match"))
A formula returning an empty string is treated as blank by this test. If missing values are meaningful, keep the simpler comparison or label missing entries separately instead of suppressing them.
To return complete rows where the values in columns B and C differ, put this formula in an empty area: google sheets cell equal cells value not formula
=FILTER(A2:C100,B2:B100<>C2:C100)
FILTER returns matching rows from A2:C100. Its condition compares the same number of rows in B2:B100 and C2:C100. If no rows meet the condition, FILTER returns an error rather than an empty report; confirm that outcome before using the result in another formula.
Compare sheets and find missing values
For row-by-row comparisons across tabs, reference the other sheet by name:
=IF(A2<>'Sheet 2'!A2,"Different","Match")
Copy the formula down beside the first sheet's data. Replace Sheet 2 with the actual tab name. A different sort order can make matching records appear different, so align records by a stable identifier before comparing corresponding rows.
To check whether each nonblank value in A2 exists anywhere in column A of another sheet, use: query not equal to google sheets
=IF(A2="","",IF(COUNTIF('Sheet 2'!$A$2:$A$100,A2)=0,"Missing","Found"))
This tests membership, not row position or duplicate counts. Limit the range to the intended records, and check values beyond row 100 if the source grows. COUNTIF treats * and ? in its criterion as wildcards, so this example is not a literal exact-match test for keys containing those characters.
Use QUERY with not equal
For a Google Sheets QUERY not equal condition, use <> inside the query string. This example returns rows whose status in column C is not Closed:
=QUERY(A1:C100,"select A, B, C where C <> 'Closed'",1)
The final 1 specifies one header row. Column letters in the query refer to the supplied sheet range, and text literals inside the query use single quotes. Rows with null status values are excluded by this comparison; include them explicitly when they belong in the report:
=QUERY(A1:C100,"select A, B, C where C <> 'Closed' or C is null",1)
QUERY determines a column's type from its data; minority types in a mixed column can be treated as null. Keep status values consistently formatted, and verify returned rows against the source before treating the result as evidence.
Inspect duplicate groups
Not equal finds differences; duplicate detection requires counting equal values. Define the key first: one column may identify repeated email addresses, while multiple columns may be needed to identify repeated records. A difference in one field does not by itself prove that two rows are duplicates. google sheets check for duplicates 3 cells
Normalize the selected values
Create a helper column when extra spaces or capitalization should not distinguish text keys. For values in A2:A100, enter this in B2 and fill down:
=IF(A2="","",LOWER(TRIM(A2)))
TRIM removes leading and trailing spaces and reduces repeated ordinary spaces; LOWER converts text to lowercase. Keep the original column for review. This rule may merge values that should remain distinct, and it does not remove every nonstandard whitespace character.
Group and count matches
Count each normalized key in C2, then fill down:
=IF(B2="","",COUNTIF($B$2:$B$100,B2))
A count greater than 1 identifies a duplicate group under the selected normalization rule. The fixed range keeps the same data set in scope as the formula moves down. For literal keys containing wildcard characters, use an exact comparison instead: google sheets how to check for duplicates in a column
=IF(B2="","",SUMPRODUCT(--($B$2:$B$100=B2)))
To produce one row per normalized key with its count, place this formula in an empty area:
=QUERY(B1:B100,"select B, count(B) where B is not null group by B having count(B) > 1 label count(B) 'Count'",1)
For a multi-column key, count combinations rather than counting each field independently. For example, COUNTIFS($A$2:$A$100,A2,$B$2:$B$100,B2) counts rows matching both A2 and B2; wildcard characters in text criteria still need care. Decide whether blanks are valid parts of the key before interpreting the count.
Inspect the report and export evidence
Review the original rows for every flagged group before changing data. Two records can share a key while representing legitimate separate events, and normalized matches can hide meaningful differences in the original values.
- Confirm the selected range includes all relevant records and excludes the header from counts.
- Check representative source values, group counts, and row numbers against the sheet.
- Record the key columns and normalization rule alongside the results so another reviewer can reproduce them.
- Copy the reviewed results to a separate report sheet, then use Google Sheets' download options for the required format.
The embedded duplicate check can inspect pasted data without changing the source and provides grouped counts, row indexes, and downloadable evidence. Confirm its selected columns and compare its results with the sheet before using the report for a separate cleanup decision.
FAQ
Does this page delete google sheets not equal in formula?
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