check if the result of a formula is null

  • Thread starter Thread starter mark kubicki
  • Start date Start date
M

mark kubicki

in cell A1, I have a formula:
=IF(INDIRECT("'Time Line'!a"&ROW())=0,"",INDIRECT("'Time
Line'!a"&ROW()))

How would I check for this condition in code?

I'd tried using:
if len(Range("A1") = 0 then... but it seems to evaluate the actual cell
contents, not the result of the formula in the cell (consequently, the
condition always checks TRUE)

thanks in advance,
mark
 
actually.. that's what I meant to type in this post (.value...)
unless i'm missing something else...it checks the cells contents and notes
the formula in the cell as having length; versus the length of the result of
the formula

-mark
 
nevermind... got it, thanks



mark kubicki said:
actually.. that's what I meant to type in this post (.value...)
unless i'm missing something else...it checks the cells contents and notes
the formula in the cell as having length; versus the length of the result
of the formula

-mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top