Duplicate detection, grouping, and report export
How To Do Not Equal In Google Sheets
Use a read-only duplicate check for how to do not equal 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.
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 Google Sheets. For example, =A2<>B2 returns TRUE when the two cell values differ and FALSE when they match. You can use the same operator inside IF, FILTER, and conditional formatting rules.
Compare two values
Enter this formula in an empty cell to compare the values in A2 and B2:
=A2<>B2
Copy it down to compare each pair of cells on the same row. For example, if A2 contains Apple and B2 contains Orange, the result is TRUE. If both contain Apple, the result is FALSE.
To compare a cell with a fixed text value, put the text in quotation marks:
=A2<>"Complete"
For a numeric value, omit quotation marks, as in =A2<>100. A cell reference such as B2 also needs no quotation marks. If every row should be compared with the same cell, use an absolute reference such as $B$2.
Return a label with IF
Use IF when a TRUE or FALSE result is less useful than a status label:
=IF(A2<>B2,"Different","Match")
Enter the formula in C2 and fill it down. Rows with different values show Different; rows with equal values show Match. The formula compares corresponding rows, not every value in one column against every value in another.
Blank cells need a deliberate rule. If either blank should prevent a comparison, use:
=IF(OR(A2="",B2=""),"Missing value",IF(A2<>B2,"Different","Match"))
This treats cells displaying an empty string as missing too. If blanks are meaningful data values, use the shorter formula instead. When comparing formulas that return errors, resolve those errors first; an error is not a normal match or difference result.
Filter rows that do not equal a value
FILTER returns rows that satisfy a condition. To return records in A2:C100 whose status in column C is not Complete, use:
=FILTER(A2:C100,C2:C100<>"Complete",C2:C100<>"")
The second condition excludes blank statuses. Remove it if blank rows should count as not equal to Complete. The filtered range and each condition range must cover the same number of rows. If no rows meet the conditions, FILTER returns #N/A.
To return rows where two columns differ, use:
=FILTER(A2:C100,A2:A100<>B2:B100)
This includes a row when one compared cell is blank and the other is not. Add nonblank conditions for both columns if the comparison should include only populated pairs.
Highlight differences without changing values
Conditional formatting makes mismatched rows visible in the source sheet:
- Select
A2:B100and choose Format > Conditional formatting. - Under the formatting rules, choose Custom formula is.
- Enter the formula below and select a formatting style.
- Save the rule and check a few known matches and differences.
=AND($A2<>"",$B2<>"",$A2<>$B2)
The dollar signs fix the columns while the row number changes for each row in the selected range. Adjust the 2 if your selection starts on a different row. This rule skips pairs with an empty value; remove the two nonblank tests if those differences should also be highlighted.
Compare ranges and sheets
A row-by-row comparison answers whether values in the same position differ. To compare A2 on the current sheet with A2 on Sheet2, use:
=A2<>Sheet2!A2
Fill the formula down only when corresponding records appear in the same order. If sheet names contain spaces, enclose the name in single quotation marks, as in ='Sales archive'!A2<>A2.
For differently ordered lists, test whether a value exists anywhere in the other range instead. This example labels values in A2:A100 that are absent from column A on Sheet2:
=IF(A2="","",IF(COUNTIF(Sheet2!$A$2:$A$100,A2)=0,"Missing","Found"))
Copy it down beside the first list. Found means at least one match exists; it does not mean the lists have equal counts. To find values missing in the opposite direction, repeat the check with the two sheet ranges reversed. COUNTIF treats * and ? in text criteria as wildcards, so use care if those characters occur in identifiers.
Check duplicate values separately
Not equal and duplicate checks answer different questions. A2<>B2 compares two cells; it does not establish whether A2 occurs elsewhere in a data set. To count occurrences of each nonblank value in column A, enter this in B2 and copy it down:
=IF(A2="","",COUNTIF($A$2:$A$100,A2))
A count greater than 1 identifies a repeated value within the selected range. This method is appropriate for ordinary values without wildcard characters; adjust the range to include all records being checked. A repeated value is not necessarily an unwanted duplicate row, especially when other columns distinguish the records.
Normalize selected values
Before grouping text values, decide whether surrounding spaces and capitalization should distinguish records. A helper column can make those choices explicit:
=LOWER(TRIM(A2))
Fill it down, then count the helper values rather than the original column. TRIM removes leading and trailing spaces and reduces repeated ordinary spaces; LOWER converts text to lowercase. Review the resulting keys before treating records as duplicates: normalization can combine values that should remain distinct, and unusual whitespace may need separate handling.
Group and count matches
For a compact list of nonblank keys and their counts, use a normalized helper column in B and enter:
=QUERY(B2:B100,"select B, count(B) where B is not null group by B label count(B) 'Count'",0)
Counts above 1 identify duplicate groups in that range. Check the source rows as well: a group count alone does not show which records contain the value or whether the full rows match.
Inspect and export evidence
Keep a row identifier beside each record before sorting or combining data from multiple sheets. Check the selected key columns, source sheet, range, group counts, and row positions before deciding what a match means. For a multi-column key, inspect each component rather than assuming a repeated value in one column makes the whole record a duplicate.
The embedded duplicate check can inspect pasted sheet data by selected columns and produce a read-only report with grouped counts and row indexes. It also supports exporting evidence; the check does not delete source values.
For a manual report, retain the source identifiers and copy the relevant rows and count results to a separate sheet. If formulas must remain stable after the source changes, copy the results and use Edit > Paste special > Values only in the report sheet. Export that sheet using File > Download and choose a suitable format, checking that the downloaded file contains the intended rows and identifiers.
Common comparison mistakes
- Using
!=: Google Sheets uses<>for not equal. - Comparing the wrong rows: Align records by a reliable identifier before using a row-by-row comparison.
- Ignoring blank cells: Decide whether blanks are missing data or valid values, then add conditions accordingly.
- Mixing numbers and text: A number and a text value that looks like a number may behave differently. Check the underlying values and convert consistently before comparing.
- Assuming displayed precision is exact: Formatting can make different numeric values look identical. Compare rounded values only when the required precision is known.
- Using a duplicate count as a deletion rule: Inspect the full records and key scope before changing or removing anything.
FAQ
Does this page delete how to do not equal 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