If value in cell Then perform function

  • Thread starter Thread starter emm8080
  • Start date Start date
E

emm8080

Hi

Currently, I have the following function to convert the time into
number eg 17:55:00 returns 17.

=INT(D2*24)

I would like the function to first determine whether there is a time i
the cell ie if no value in cell then don't perform function.

Thanks

Emm
 
=IF(INT(D2*24)=0,"",(INT(D2*24)))

This will make the cell appear blank, but you can't stop the Function for
Calculating.

tj
 
=IF(ISNUMBER(D2),INT(D2*24),"")
Will not compute with blank cells, and will also not produce an error
with text cells.

Jerry
 

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