Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jennifer
 
Posts: n/a
Default Formula is counting cell if nothing is entered

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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
B. R.Ramachandran
 
Posts: n/a
Default Formula is counting cell if nothing is entered

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


"Jennifer" wrote:

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.

  #3   Report Post  
Posted to microsoft.public.excel.misc
Jennifer
 
Posts: n/a
Default Formula is counting cell if nothing is entered

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

"B. R.Ramachandran" wrote:

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


"Jennifer" wrote:

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.

  #4   Report Post  
Posted to microsoft.public.excel.misc
Gord Dibben
 
Posts: n/a
Default Formula is counting cell if nothing is entered

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

On Wed, 14 Dec 2005 12:16:39 -0800, "Jennifer"
wrote:

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.

  #5   Report Post  
Posted to microsoft.public.excel.misc
B. R.Ramachandran
 
Posts: n/a
Default Formula is counting cell if nothing is entered

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

"Jennifer" wrote:

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

"B. R.Ramachandran" wrote:

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


"Jennifer" wrote:

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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Text in formula bar is not displaying in cell Mike Excel Discussion (Misc queries) 0 August 29th 05 09:47 PM
Counting Multiple Values In A Cell DiamondDean Excel Worksheet Functions 1 August 20th 05 07:22 AM
formula for counting charachters in a cell ? Leezo Excel Discussion (Misc queries) 5 August 12th 05 09:51 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
put formula results into a different cell if it is empty PutFormula Excel Worksheet Functions 2 February 11th 05 03:31 AM


All times are GMT +1. The time now is 08:08 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"