D
David Fodden
Hello everyone
I'm using Excel 97 and posted a problem on another NG recently which
resulted in some solutions but none worked as I had hoped so I thought that
I'd post again but coming from a different angle to see if anyone else had
any ideas that I could "tweak".
I have a row of numerical data from A1 to as far as necessary. There may be
gaps in the data where cells are left blank. I need to be able to determine
the difference between the final entry in the row and that entered in the
cell immediately to it's left (this value is to be entered into G4). If
that cell is blank, I need to go towards the left until I come across a cell
that contains a number. There is no need to determine if the data is
numerical or text because it's always numerical (or blank). Is there a
worksheet function (or combination) that I would put into G4 to allow me to
do that? I've thought of having a dynamic named range that extends as new
data is entered and think that OFFSET may be needed but I don't know if this
is possible.
If it can't be done using worksheet function(s), could it be done easily
with VBA? If so, I'd need a push in the right direction! It would need to
fire when the new data is entered into the row of data.
Thanks for your time.
David
I'm using Excel 97 and posted a problem on another NG recently which
resulted in some solutions but none worked as I had hoped so I thought that
I'd post again but coming from a different angle to see if anyone else had
any ideas that I could "tweak".
I have a row of numerical data from A1 to as far as necessary. There may be
gaps in the data where cells are left blank. I need to be able to determine
the difference between the final entry in the row and that entered in the
cell immediately to it's left (this value is to be entered into G4). If
that cell is blank, I need to go towards the left until I come across a cell
that contains a number. There is no need to determine if the data is
numerical or text because it's always numerical (or blank). Is there a
worksheet function (or combination) that I would put into G4 to allow me to
do that? I've thought of having a dynamic named range that extends as new
data is entered and think that OFFSET may be needed but I don't know if this
is possible.
If it can't be done using worksheet function(s), could it be done easily
with VBA? If so, I'd need a push in the right direction! It would need to
fire when the new data is entered into the row of data.
Thanks for your time.
David