here goes:
i have 3 sheets: LOG, PRINT, OPERATORS
LOG: column I contains the formula: =VLOOKUP(H2,'OPERATORSLIST'!a

,4,FALSE)
the "H2" in the fomula changes to "H3, H4..." depending on what row you are
on. this looks at the OPERATORS LIST and returns the value in column D after
it matches the operator number i typed in H.
I have a conditional format for column I that is =ISERROR(I2) format font to
white. This hides the error messages that I get in the rows that I have not
used yet. It also displays this error message (#N/A) if it cannot match a
number with a name.
PRINT: cell E51 contains the formula:
=LOOKUP(2,1/(LOG!I1:I1000<>0),LOG!I1:I1000) this looks for the last populated
cell in LOG column I and displays the value found there. A cell with the
error message #N/A is considered a blank cell.
I want PRINT!E51 to be blank if it finds an error message in LOG!I, if
anything in that same row is non-blank. In otherwords, PRINT!E52 should look
to see if there are any populated columns in the last used row of LOG!, if
there is, always use the value in column I, even if it is blank.
did that help?
--
jana
Pete_UK said:
Is the formula that returns the operator's name a VLOOKUP or INDEX/
MATCH type formula? If so, then you can avoid returning the #N/A error
by changing it to something like this:
=IF(ISNA(your_formula),"",your_formula)
Then see what effect this has on your formula in the PRINT sheet to
return the last non-blank cell.
Hope this helps (in Biff's absence).
Pete
PS. It always helps to post the formulae that you are using.