G
Guest
I'd really like Excel to have an All(range, criteria) function, as used in a
number of programming languages. For instance:
A B C D
1 y y y n
2
=ALL(A1:C1, "y") --> TRUE
=ALL(A11, "y") --> FALSE
Though I suppose you can use this work-around code in the meantime:
=COUNTIF(A11, "y")=COUNTA(A11)
- which ignores blank cells in the calculation. Otherwise you can use:
=COUNTIF(A11, "y")=MAX(COLUMNS(A11),ROWS(A11))
Anyone know a better way?
number of programming languages. For instance:
A B C D
1 y y y n
2
=ALL(A1:C1, "y") --> TRUE
=ALL(A11, "y") --> FALSE
Though I suppose you can use this work-around code in the meantime:
=COUNTIF(A11, "y")=COUNTA(A11)
- which ignores blank cells in the calculation. Otherwise you can use:
=COUNTIF(A11, "y")=MAX(COLUMNS(A11),ROWS(A11))
Anyone know a better way?