Duplicate detection, grouping, and report export
Not Equal In Google Sheets
Use a read-only duplicate check for 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 values differ and FALSE when they match. Enter it in another column, then fill it down to compare each pair of rows without changing the source values.
Compare values with the not-equal operator
The <> operator compares numbers, text, dates, cell references, or formula results. Put text in double quotes; use cell references without quotes.
=A2<>"Complete"
This formula returns TRUE when A2 does not equal Complete. To display a label instead of TRUE or FALSE, use IF:
=IF(A2<>B2,"Different","Match")
For example, if A2 contains East and B2 contains West, the result is Different. If both contain East, the result is Match. The comparison checks corresponding cells, not whether a value appears anywhere else in a column.
To ignore rows where either cell is blank, add an explicit blank check:
=IF(OR(A2="",B2=""),"",IF(A2<>B2,"Different","Match"))
A formula that returns an empty string is treated as blank by this test. If missing values are themselves differences, use the first IF formula instead and decide how to handle rows where both cells are empty.
Filter and highlight differences
To return rows whose status in column C is not Complete, use FILTER with a bounded data range:
=FILTER(A2:C100,C2:C100<>"Complete",C2:C100<>"")
The second condition excludes blank statuses. Remove it if blank statuses belong in the result. FILTER returns an error when no rows meet the conditions; check whether that outcome is expected before wrapping the formula in error handling. compare values with the not-equal operator
To highlight differences between columns A and B on each row:
- Select the range to highlight, such as
A2:B100. - Choose Format > Conditional formatting.
- Under the format rules, select Custom formula is.
- Enter the formula below, choose a style, and click Done.
=AND($A2<>"",$B2<>"",$A2<>$B2)
The dollar signs fix the columns while the row number adjusts across the selected range. This rule skips rows with a blank value in either column. Start the formula at the first row of the selected range; using the wrong row reference shifts the highlighting.
Compare sheets and find missing values
For sheets with records in the same order, compare corresponding cells by referencing the other sheet:
=A2<>'Sheet 2'!A2
Copy the formula down to compare the selected rows. A TRUE result identifies a difference at that position, but it does not establish that the value is missing from the other sheet. Reordered records can produce differences even when both sheets contain the same values.
To check whether the key in A2 appears anywhere in column A of Sheet 2, use a lookup count instead:
=IF(A2="","",IF(COUNTIF('Sheet 2'!$A$2:$A$100,A2)=0,"Missing","Found"))
Fill this formula down beside the first sheet's keys. Missing means the key was not found in the specified sheet range; Found means at least one match exists, not that the two records are identical. Expand the range if relevant records fall below row 100. For text keys containing *, ?, or ~, escape those characters in the COUNTIF criterion or use another exact-match method, because COUNTIF interprets them specially.
Normalize and count duplicate values
Not-equal comparisons identify differences, while duplicate checks identify repeated values. Use both when a data set needs review: first find duplicate keys, then compare the associated data values before deciding whether records represent the same item. normalize and count duplicate values
Normalize the selected values
Choose the key columns that define a match before counting. An email address may be enough for one task; another may require both an order ID and a date. Preserve the original columns so that any normalized value can be traced back to its source.
For text in A2, a helper column can remove leading and trailing spaces, collapse repeated ordinary spaces, and standardize case:
=LOWER(TRIM(A2))
Fill the formula down and review the results. This changes the comparison rule: values that differ only in case or spacing may now count as matches. TRIM does not remove non-breaking spaces, and normalization can merge values that should remain distinct.
Group and count matches
If normalized keys are in D2:D100, count each nonblank key in E2:
=IF(D2="","",COUNTIF($D$2:$D$100,D2))
A count greater than 1 marks every row belonging to a repeated key. The fixed range keeps the count consistent when the formula is filled down. This COUNTIF example is intended for keys without wildcard characters; escape *, ?, and ~ when they must be treated literally.
For a two-column key, count combinations rather than either column alone:
=IF(OR(A2="",B2=""),"",COUNTIFS($A$2:$A$100,A2,$B$2:$B$100,B2))
This skips incomplete keys and counts rows where both columns match. Include incomplete keys only if the review rules treat them as meaningful matches. For text criteria containing wildcard characters, apply the same escaping caution as with COUNTIF. inspect the report and export evidence
To create a manual list of repeated normalized keys and counts, use:
=QUERY(D2:D100,"select D, count(D) where D is not null group by D having count(D) > 1 label count(D) 'Count'",0)
This summary reports groups, not source row numbers. Filter the helper count column for values greater than 1 to inspect the corresponding source rows. The embedded duplicate check can also return grouped counts and row indexes from pasted sheet data without modifying the source.
Inspect the report and export evidence
Review each duplicate group against the original records before taking action. A repeated key may be legitimate, while rows with the same key may contain different dates, amounts, or statuses. Check the selected columns, blank handling, normalized values, and source row indexes before interpreting a match.
For manual evidence, keep the key, count, source row number, and relevant comparison columns together in a separate report sheet. Add a row-number helper beside the source data before filtering:
=ROW()
Copy the filtered results into the report sheet, then use File > Download to export the spreadsheet in a suitable available format. Preserve the original data and record which range and key columns were checked. The embedded check also supports downloading its report; inspect the evidence before using it for any cleanup.
Use the not-equal formula examples alongside the read-only tool to decide whether duplicate records are legitimate.Common mistakes include comparing rows that are not aligned, treating a Found lookup as proof that complete records match, and counting only part of a composite key. Check number and date formats as well: values that look alike can be stored differently. Review formulas and results on a small sample before extending them across the full spreadsheet.
FAQ
Does this page delete 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