Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default tricky formula.. please help

I have created a time roster.. easy
in each day I have start,end and break deduction.. still no probs

I need to create an output formula for hours worked after a 16:00 from
the start and end range on a day. So in the roster it will still display
normal hours, however I will create a field for hours after 16:00. this
is for calculating a different wage rate.

Thanks Aaron
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default tricky formula.. please help

Aaron,

Assuming your end times are in B1:B100, try

=SUMPRODUCT(--(B1:B100--"16:00:00"),(B1:B100-"16:00:00"))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Aaron H" wrote in message
...
I have created a time roster.. easy
in each day I have start,end and break deduction.. still no probs

I need to create an output formula for hours worked after a 16:00 from
the start and end range on a day. So in the roster it will still display
normal hours, however I will create a field for hours after 16:00. this
is for calculating a different wage rate.

Thanks Aaron



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default tricky formula.. please help

What are the possibilities?

Can all the work time be after 1600 (start and end time after 1600) and if
so, can the time cross midnight. Or will start time always be before 1600
and end time may sometimes be past 1600, but never past midnight.

Do you want a formula to use on each row?
--
Regards,
Tom Ogilvy

"Aaron H" wrote in message
...
I have created a time roster.. easy
in each day I have start,end and break deduction.. still no probs

I need to create an output formula for hours worked after a 16:00 from
the start and end range on a day. So in the roster it will still display
normal hours, however I will create a field for hours after 16:00. this
is for calculating a different wage rate.

Thanks Aaron



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default tricky formula.. please help

Tom Ogilvy wrote:
What are the possibilities?

Can all the work time be after 1600 (start and end time after 1600) and if
so, can the time cross midnight. Or will start time always be before 1600
and end time may sometimes be past 1600, but never past midnight.

Do you want a formula to use on each row?


Can work before 16:00 (start and and after)
time won't cross midnight
Will not always start before 1600

This is to calculate a penalty rate for working wages. before 1600
wage = $10, after 16:00 $10 + 25%. Similar on Weekends, but standard
penalty through the whole day.

I have the start time in a cell and end next to it. both have a series
of selectable times.

Idea is to create the roster and from roster generate wages.


Thanks
Aaron
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default tricky formula.. please help

=if(StartTime
TimeValue("16:00"),Mod(EndTime-StartTime,1),if(EndTimeTimeValue("16:00"),En
dTime-TimeValue("16:00"),0))

--
Regards,
Tom Ogilvy


"Aaron H" wrote in message
...
Tom Ogilvy wrote:
What are the possibilities?

Can all the work time be after 1600 (start and end time after 1600)

and if
so, can the time cross midnight. Or will start time always be before

1600
and end time may sometimes be past 1600, but never past midnight.

Do you want a formula to use on each row?


Can work before 16:00 (start and and after)
time won't cross midnight
Will not always start before 1600

This is to calculate a penalty rate for working wages. before 1600
wage = $10, after 16:00 $10 + 25%. Similar on Weekends, but standard
penalty through the whole day.

I have the start time in a cell and end next to it. both have a series
of selectable times.

Idea is to create the roster and from roster generate wages.


Thanks
Aaron





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default tricky formula.. please help

format the cell with the formula as time or if you want decimal hours, then
multiply the result by 24

=if(StartTime
TimeValue("16:00"),Mod(EndTime-StartTime,1),if(EndTimeTimeValue("16:00"),En
dTime-TimeValue("16:00"),0))*24

--
Regards,
Tom Ogilvy

"Tom Ogilvy" wrote in message
...
=if(StartTime

TimeValue("16:00"),Mod(EndTime-StartTime,1),if(EndTimeTimeValue("16:00"),En
dTime-TimeValue("16:00"),0))

--
Regards,
Tom Ogilvy


"Aaron H" wrote in message
...
Tom Ogilvy wrote:
What are the possibilities?

Can all the work time be after 1600 (start and end time after 1600)

and if
so, can the time cross midnight. Or will start time always be before

1600
and end time may sometimes be past 1600, but never past midnight.

Do you want a formula to use on each row?


Can work before 16:00 (start and and after)
time won't cross midnight
Will not always start before 1600

This is to calculate a penalty rate for working wages. before 1600
wage = $10, after 16:00 $10 + 25%. Similar on Weekends, but standard
penalty through the whole day.

I have the start time in a cell and end next to it. both have a series
of selectable times.

Idea is to create the roster and from roster generate wages.


Thanks
Aaron





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
Really need some help with a tricky formula Mark D[_2_] Excel Worksheet Functions 7 April 1st 10 01:21 PM
Tricky Formula steph44haf Excel Worksheet Functions 4 September 18th 06 08:53 PM
Tricky Formula andrewc Excel Discussion (Misc queries) 22 July 20th 06 11:39 AM
Help with a tricky formula...... nevi Excel Discussion (Misc queries) 1 May 31st 06 10:39 PM
Tricky formula Steve Excel Discussion (Misc queries) 3 April 17th 06 05:06 PM


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

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

About Us

"It's about Microsoft Excel"