In the 1st case use =NOT(MOD(ROW()-3-1,3)) to
return TRUE on the appropriate rows. In the
2nd case use =NOT(MOD(ROW()-3-2,3)).
Probably goes without saying, but if you are sorting, either you will want to copy and paste special values over your formula before sorting. Or, you could create a dummy column with the formula =row() and copy paste special values over that. Then simply replace row() with the cell in Mark's formula.
Good luck.
Actually, if you're sorting rows these formulas
will not be affected. ROW() always returns the
row number of the cell that contains it. Try it!
Of course you're right. I used
"Bird",TRUE;"dog",FALSE;"dog",FALSE;"Bird",TRUE;"dog",FALSE;"dog",FALSE;"Bird",TRUE;"dog",FALSE;"dog",FALSE;"Bird",TRUE;"dog",FALSE;"dog",FALSE
and keying on the true false column it sorted to
"dog",TRUE;"dog",FALSE;"dog",FALSE;"dog",TRUE;"dog",FALSE;"dog",FALSE;"dog",TRUE;"dog",FALSE;"Bird",FALSE;"Bird",TRUE;"Bird",FALSE;"Bird",FALSE
That blows my tiny little mind away!
Excel is performing the Sort, and then re-evaluating
the formulas. I for one don't believe that a
sort is needed at all. I'd use Advanced AutoFilter
to extract TRUE records to another location (below?)
on the worksheet.