Hi, Lori....
Regarding: =MAX(FREQUENCY(IF(A1:A21=1,ROW(A1:A21)),IF(A1:A21=0,ROW(A1:A21))))
I've seen you post formulas like that before and had the opinion that, since
the FREQUENCY function is a bit tough for people to wrap their minds around,
it might be too difficult to grasp....
But, I just took another look at the alternatives (especially mine!)...and
had cause to reconsider.
FREQUENCY is easy! (relatively speaking)
For what it's worth....I'm going with FREQUENCY in the future (maybe with a
brief primer on how it works).
I've been playing with ways to avoid CSE with it, since everybody I work
with knows how to break array formulas, but never remembers how to fix
them.....So far, here's what I came up with:
=MAX(FREQUENCY(INDEX(ROW(A1:A21)/((A1:A21=1)+(A1:A21<>1)/10^99),0),INDEX(ROW(A1:A21)/((A1:A21<>1)+(A1:A21=1)/10^99),0)))
This array version may be better, though (at least for my crew):
=MAX(FREQUENCY(IF(A1:A21=1,ROW(A1:A21)),IF(A1:A21=0,ROW(A1:A21))))+N("ctrl+shift+enter")
Since the reminder is ignored by the formula
Anyway, that's the round-about way of saying "Nice work". : )
***********
Regards,
Ron
XL2002, WinXP