Peter_SSs
MrExcel MVP, Moderator
- Joined
- May 28, 2005
- Messages
- 65,130
- Office Version
- 365
- Platform
- Windows
"I needed to determine if all the values ... are the same... I don't really care what the value is, so long as they're all equal or empty"
None of the suggestions worked correctly for me.
(A1:A9 = "a", A10 = "b")
So maybe not what the thread is about, but for this job I would propose another possibility
=COUNTA(A1:A10)=COUNTIF(A1:A10,LOOKUP(2,1/(1-ISBLANK(A1:A10)),A1:A10))
This seems to work for numeric, text and also error values.
To try to add something that is relevant to the topic, perhaps this for checking if a value (given the above I better specify numerical ) lies within a given range (including endpoints) or not
=MEDIAN(A1,100,200) = A1
None of the suggestions worked correctly for me.
(A1:A9 = "a", A10 = "b")
So maybe not what the thread is about, but for this job I would propose another possibility
=COUNTA(A1:A10)=COUNTIF(A1:A10,LOOKUP(2,1/(1-ISBLANK(A1:A10)),A1:A10))
This seems to work for numeric, text and also error values.
To try to add something that is relevant to the topic, perhaps this for checking if a value (given the above I better specify numerical ) lies within a given range (including endpoints) or not
=MEDIAN(A1,100,200) = A1