=ROW-1, =SUBTOTAL(3,$B$2:$B2) don't work in hidden rows.
Oops -
That formula assumes you place it in A2.
For B2 change to: =IF(ROW()=2,1,B1+1)
(I have assumed you have header row in A1 and you don't want row 1 to be #'d
& you want row 2 to be numbered 1.)
--
Thx
MSweetG222
"MSweetG222" wrote:
I have made several assumptions here, but try this formula:
=IF(ROW()=2,1,A1+1)
Is that what you need?
Thx
MSweetG222
"StargateFan" wrote:
In A2, =ROW-1 works until one filters rows. Also in A2,
=SUBTOTAL(3,$B$2:$B2) does work with filters but doesn't work with
hidden rows.
Is there code that will number rows consecutively even if one
_filters_ AND/OR manually _hides_ rows?? I've googled and googled the
archives but nothing comes up for this particular dual requirement.
Thanks. :oD
|