Question

I would like to ask if there is a way to return text if exactly 3 cells in a row are equal to another 3 cells in another row.

Example of how I want it to look like.

enter image description here

Was it helpful?

Solution

You could try the formula:

=IF(COUNTIFS(A:A,A1,B:B,B1,C:C,C1)>1, "ERROR", "OK")

COUNTIFS(A:A,A1,B:B,B1,C:C,C1) counts the number of times a series of cells A1, B1 and C1 appear in the columns A, B and C.

If it's above 1 (there's more than one), put ERROR, else OK.

OTHER TIPS

Try making a new cell by using the CONCATENATE() function to join the three cells together. Then use formatting to highlight duplicates in the new column.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top