I can't get this simple function to work.
I know that;
=ROW($A2)-1
Returns the row number just fine if I write it into the cell and drag it.
As I prefer to use conditional formatting if a cell is doing something I am trying to make the following work.
=IF(($B2)<>"",ROW($A2)-1)
I need the row number to be the actual record and not include the first row which is a heading hence the -1.
Regards
Steve
I know that;
=ROW($A2)-1
Returns the row number just fine if I write it into the cell and drag it.
As I prefer to use conditional formatting if a cell is doing something I am trying to make the following work.
=IF(($B2)<>"",ROW($A2)-1)
I need the row number to be the actual record and not include the first row which is a heading hence the -1.
Regards
Steve