#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default timesheet

I use this formula at F5 to calculate hours worked etc:
=IF(OR(D5="A/L",D5="SICK"),8,IF(D5="","0",((E5-D5)+(E5<D5))*24)-0.5)

How do i get a nil or blank result if there's no hours worked that day
(currently i get a -0.5)
many thanks
andy


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,533
Default timesheet

Try this:

=IF(OR(D5="A/L",D5="SICK"),8,IF(D5="","0",(((E5-D5)+(E5<D5))*24)-0.5))

Regards,
Per

"Andy Bolger" skrev i meddelelsen
...
I use this formula at F5 to calculate hours worked etc:
=IF(OR(D5="A/L",D5="SICK"),8,IF(D5="","0",((E5-D5)+(E5<D5))*24)-0.5)

How do i get a nil or blank result if there's no hours worked that day
(currently i get a -0.5)
many thanks
andy


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default timesheet

=IF(OR(D5={"A/L","SICK"}),8,IF(COUNT(D5:E5)=2,(E5-D5+(E5<D5))*24-0.5,""))


"Andy Bolger" wrote:

I use this formula at F5 to calculate hours worked etc:
=IF(OR(D5="A/L",D5="SICK"),8,IF(D5="","0",((E5-D5)+(E5<D5))*24)-0.5)

How do i get a nil or blank result if there's no hours worked that day
(currently i get a -0.5)
many thanks
andy



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
Timesheet Zaf Excel Discussion (Misc queries) 8 July 11th 08 02:06 PM
Timesheet help DaddyO Excel Discussion (Misc queries) 3 April 25th 08 09:11 PM
Timesheet - LT AREA Excel Discussion (Misc queries) 1 November 15th 07 10:04 PM
Timesheet Doug Excel Worksheet Functions 1 March 3rd 05 07:53 PM
timesheet Greg Brow Excel Worksheet Functions 0 February 10th 05 11:25 AM


All times are GMT +1. The time now is 09:13 PM.

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"