Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default weekend timesheet formula help

in D10 i have start time
in E10 i have finish time
in F10 i have total hours worked - current formula is
=IF(OR(D10="AL",D10="SICK",D10="PH"),8,IF(D10=""," 0",((E10-D10)+(E10<D10))*24))

My issue is on a weekend i have to pay them for 3 hours minimum

many thanks
andy

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,059
Default weekend timesheet formula help

On Apr 20, 3:03*am, "Andy Bolger" wrote:
in D10 i have start time
in E10 i have finish time
in F10 i have total hours worked - current formula is
=IF(OR(D10="AL",D10="SICK",D10="PH"),8,IF(D10=""," 0",
((E10-D10)+(E10<D10))*24))
My issue is on a weekend i have to pay them for 3 hours
minimum


I assume that means if either the start time or finish time is on a
weekend day.

=IF(D10="",0,
IF(OR(D10={"AL","SICK","PH"}),8,
MAX(3*OR(WEEKDAY(D10,2)=6,WEEKDAY(E10,2)=6),
(E10-D10)*24)))

That assumes that D10 and E10 contain the date as well as time,
although you might format them to display only the time.

You need the dates in order to distinguish weekday and weekend days.
If you put the date into two other cells, say B10 and C10, then:

=IF(D10="",0,
IF(OR(D10={"AL","SICK","PH"}),8,
MAX(3*OR(WEEKDAY(B10,2)=6,WEEKDAY(C10,2)=6),
(B10+E10-C10-D10)*24)))
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default weekend timesheet formula help

I have the day of the week in column A10, the date in B10 and the start time
is in military time/s.
Overtime is in 3 columns,
total overtime in column G10
time and a 1/2 in H10 (this is where any weekend overtime goes)
and double time in I10

again, many thanks
andy

"joeu2004" wrote in message
...

On Apr 20, 3:03 am, "Andy Bolger" wrote:
in D10 i have start time
in E10 i have finish time
in F10 i have total hours worked - current formula is
=IF(OR(D10="AL",D10="SICK",D10="PH"),8,IF(D10=""," 0",
((E10-D10)+(E10<D10))*24))
My issue is on a weekend i have to pay them for 3 hours
minimum


I assume that means if either the start time or finish time is on a
weekend day.

=IF(D10="",0,
IF(OR(D10={"AL","SICK","PH"}),8,
MAX(3*OR(WEEKDAY(D10,2)=6,WEEKDAY(E10,2)=6),
(E10-D10)*24)))

That assumes that D10 and E10 contain the date as well as time,
although you might format them to display only the time.

You need the dates in order to distinguish weekday and weekend days.
If you put the date into two other cells, say B10 and C10, then:

=IF(D10="",0,
IF(OR(D10={"AL","SICK","PH"}),8,
MAX(3*OR(WEEKDAY(B10,2)=6,WEEKDAY(C10,2)=6),
(B10+E10-C10-D10)*24)))

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
Formula help: Duration Without Weekend Days JP Excel Discussion (Misc queries) 4 November 9th 09 01:46 PM
Formula to fetch the date of first weekend of a month FARAZ QURESHI Excel Discussion (Misc queries) 3 April 27th 09 11:41 AM
Formula to Remove Weekend Days Tom Excel Discussion (Misc queries) 1 May 24th 06 04:31 PM
workdays formula ends on weekend date Charles C. Excel Worksheet Functions 2 January 31st 06 05:44 PM
formula to identify weekend dates Cathy Landry Excel Worksheet Functions 5 August 23rd 05 07:59 PM


All times are GMT +1. The time now is 06:18 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"