Write a formula to check few cells have same value [homework]
Lets test your Excel skills. Can you write a formula to check few cells are equal?
- Let us say you have four values in cells A1, A2, A3, A4
- Write a formula to check if all 4 cells have same value (ie A1=A2=A3=A4)
- Your output can be TRUE/FALSE or 1/0 to indicate a match (or mis-match)
Bonus question 1:
How would you write a formula if your values are in range A1:An
Bonus question 2:
What formula would work well if the cells contain non-numeric values (text, logical etc.)
The easiest and obvious answer is to test if all them are equal. The formula is,
(select the above blank line to see answer)
But can you come up with some other options to test the equality?
My name is Chandoo. Thanks for dropping by. My mission is to make you awesome in Excel & your work. I live in Wellington, New Zealand. When I am not F9ing my formulas, I cycle, cook or play lego with my kids. Know more about me.
Thank you and see you around.
Leave a Reply
|« Formula Forensics No. 031 – Production Scheduling using Excel||Last day to join Excel School + Excel Hero Academy »|