Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excel formula to check if a range of data are all exactly same

Tags:

excel

I have a range of cell values. I want to check this range of values and return true if all the values are exactly the same and return false if at least 1 is not the same.

Range 1
Confirmed
Confirmed
Confirmed

Result= Confirmed

Range 2
Confirmed
Negotiation
Confirmed

Result = Varies

ETA: Thanks simoco for the answer which I'm using now. I have a follow-up question. How do I modify this formula to ignore blank cells instead of defaulting to FALSE? With your formula, when it evaluates a range of blank cells (that are waiting for input), it returns "Varies". I want it to return blank instead.

like image 710
Hazel Avatar asked Oct 29 '25 02:10

Hazel


1 Answers

Try this formula:

=IF(COUNTIF(A1:A3,A1)=COUNTA(A1:A3),"Confirmed","Varies")
like image 169
Dmitry Pavliv Avatar answered Oct 30 '25 23:10

Dmitry Pavliv



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!