Formula is counting cell if nothing is entered

G

Guest

I have made a timesheet that will automatically round up to the nearest
quarter hour, but if no time is entered the round column stays as 12:00 am
and calcualtes as such. The first col. has the actual time then the second
col. has the formula =round(E12*24/0.25,0)*0.25/24 which works to round the
time, but, as I said, if nothing is entered in the time, the round col. shows
12:00 am.
 
G

Guest

Hi

Try one of the following modifications to your formula:

=IF(E12="","",ROUND(E12*24/0.25,0)*0.25/24)
=IF(ISBLANK(E12),"",ROUND(E12*24/0.25,0)*0.25/24)

Regards,
B. R. Ramachandran
 
G

Guest

I have tried both of those before and it comes back with a "Incorrect time
format" box and indicates to cancel or retry...
 
G

Gord Dibben

Jennifer

Trap the error in your formula.

=IF(E12="","",ROUND(E12*24/0.25,0)*0.25/24)

If E12 is blank then nothing, otherwise do the calculation.


Gord Dibben Excel MVP
 
G

Guest

Hi,

I did try out the formulas before suggesting them to you. They do work.
Make sure that the cell(s) containing the formula is(are) formatted for
"Time" as "1:30 PM".

Regards,
B. R. Ramachandran
 

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

Top