I am trying to create an index number and have the following IF statement:
=IF(AND(B1=B2,YEAR(C2)>2009),MAX($A$1:$A1)+1,IF(AND(B2=B3,YEAR(C2)>2009),MAX($A$1:$A1)+1,IF(YEAR(C2)>2009,MAX($A$1:$A1)+1,0)))
It seems long, but it works. However I would like to adapt the MAX($A$1:$A1)+1 to reset itself to 1 when something changes in one of the columns.
My explanation is a bit vague, hopefully the attached should explain a bit more
Any help much appreciated.
Thanks
Lucraft
Bookmarks