I would like to know how to compare for every row that their (numeric) columns have different values or all of them are equal, and get the result (either a boolean or a 0/1) in another column. Something like:
colA colB colC Result
row1 12 12 45 false
row2 67 67 67 true
How could I write this formula concisely in Microsoft Excel? Note that the number of columns may vary and at least I have about 30 columns, so I don’t want to name the columns in the formula, but write something like a for
Thank you.
If you want to test only numbers, what about?
(if your range goes from 1 to 30)
fordoesn’t exist in Excel formula, the best way to deal with afor loopwould be to use array formulas but this is not appropriated here.what you may look for is a dynamic range but i can’t see a way to implement it easily in your case
[EDIT] new formula thanks to Excelll’s comment