PC Review


Reply
Thread Tools Rate Thread

calculate time if greater than a given time

 
 
draculardw
Guest
Posts: n/a
 
      22nd Apr 2008
Could one of you math wizards help me take a bite out of a math formula I am
attempting to formulate. I am trying it a lot of different ways sometimes
formula errors sometimes not, but still no results in the cell. This has to
do with payroll calculations. Here is what I have so far that works!
cells []
[09:00] - [23:00] = [14.00] this works ie: =SUM((B10-A10)*24)

This is what I need help on
If I am working on the clock at 15:00 I get a shift differential for those
hours beyond 15:00 hours until I clock out, so lets say from the above
example. I would be payed for 14 hours at my regular rate then get a diff
from 15:00 - 23:00 which is a difference of 8 hours
I cannot seem to come up with a formula that will allow me in another cell
to calculate the two time differences and anything greater than 15:00 place
in that cell the total hours of 8
any help thanks
Richard




 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      22nd Apr 2008
Hi,

To get the result I think you want try this

B10 C10 D10 E10
Start End Basic time Shift allowance
09:00 23:00 14 8

=(B10-A10)*24 In D10

=MAX(0,C10-((TIME(15,0,0)-A10)*24)) In E10

Mike




"draculardw" wrote:

> Could one of you math wizards help me take a bite out of a math formula I am
> attempting to formulate. I am trying it a lot of different ways sometimes
> formula errors sometimes not, but still no results in the cell. This has to
> do with payroll calculations. Here is what I have so far that works!
> cells []
> [09:00] - [23:00] = [14.00] this works ie: =SUM((B10-A10)*24)
>
> This is what I need help on
> If I am working on the clock at 15:00 I get a shift differential for those
> hours beyond 15:00 hours until I clock out, so lets say from the above
> example. I would be payed for 14 hours at my regular rate then get a diff
> from 15:00 - 23:00 which is a difference of 8 hours
> I cannot seem to come up with a formula that will allow me in another cell
> to calculate the two time differences and anything greater than 15:00 place
> in that cell the total hours of 8
> any help thanks
> Richard
>
>
>
>

 
Reply With Quote
 
Mike H
Guest
Posts: n/a
 
      22nd Apr 2008
That should of course have been

A10 B10 C10 D10
Start End Basic time Shift allowance
09:00 23:00 14 8


"Mike H"

wrote:

> Hi,
>
> To get the result I think you want try this
>
> B10 C10 D10 E10
> Start End Basic time Shift allowance
> 09:00 23:00 14 8
>
> =(B10-A10)*24 In D10
>
> =MAX(0,C10-((TIME(15,0,0)-A10)*24)) In E10
>
> Mike
>
>
>
>
> "draculardw" wrote:
>
> > Could one of you math wizards help me take a bite out of a math formula I am
> > attempting to formulate. I am trying it a lot of different ways sometimes
> > formula errors sometimes not, but still no results in the cell. This has to
> > do with payroll calculations. Here is what I have so far that works!
> > cells []
> > [09:00] - [23:00] = [14.00] this works ie: =SUM((B10-A10)*24)
> >
> > This is what I need help on
> > If I am working on the clock at 15:00 I get a shift differential for those
> > hours beyond 15:00 hours until I clock out, so lets say from the above
> > example. I would be payed for 14 hours at my regular rate then get a diff
> > from 15:00 - 23:00 which is a difference of 8 hours
> > I cannot seem to come up with a formula that will allow me in another cell
> > to calculate the two time differences and anything greater than 15:00 place
> > in that cell the total hours of 8
> > any help thanks
> > Richard
> >
> >
> >
> >

 
Reply With Quote
 
draculardw
Guest
Posts: n/a
 
      22nd Apr 2008
Mike H, it was so close to working
heres what happened
> Start End Basic time Shift allowance
> 09:00 23:00 14 8

the aboved worked here what happened when I entered a different time
> Start End Basic time Shift allowance
> 16:00 17:00 1 2

shift allowence should have also been 1 not 2 in the above
the formula needs to only calculate at 15:00 hours and beyond if I am
punched in
> Start End Basic time Shift allowance
> 12:00 15:00 3 0
> 12:00 16:00 4 1
> 15:00 17:00 2 2
> 16:00 18:00 2 2
> 13:00 18:00 5 3

Does this help explain it better?

"Mike H" wrote:

> That should of course have been
>
> A10 B10 C10 D10
> Start End Basic time Shift allowance
> 09:00 23:00 14 8
>
>
> "Mike H"
>
> wrote:
>
> > Hi,
> >
> > To get the result I think you want try this
> >
> > B10 C10 D10 E10
> > Start End Basic time Shift allowance
> > 09:00 23:00 14 8
> >
> > =(B10-A10)*24 In D10
> >
> > =MAX(0,C10-((TIME(15,0,0)-A10)*24)) In E10
> >
> > Mike
> >
> >
> >
> >
> > "draculardw" wrote:
> >
> > > Could one of you math wizards help me take a bite out of a math formula I am
> > > attempting to formulate. I am trying it a lot of different ways sometimes
> > > formula errors sometimes not, but still no results in the cell. This has to
> > > do with payroll calculations. Here is what I have so far that works!
> > > cells []
> > > [09:00] - [23:00] = [14.00] this works ie: =SUM((B10-A10)*24)
> > >
> > > This is what I need help on
> > > If I am working on the clock at 15:00 I get a shift differential for those
> > > hours beyond 15:00 hours until I clock out, so lets say from the above
> > > example. I would be payed for 14 hours at my regular rate then get a diff
> > > from 15:00 - 23:00 which is a difference of 8 hours
> > > I cannot seem to come up with a formula that will allow me in another cell
> > > to calculate the two time differences and anything greater than 15:00 place
> > > in that cell the total hours of 8
> > > any help thanks
> > > Richard
> > >
> > >
> > >
> > >

 
Reply With Quote
 
Lisa Kerr
Guest
Posts: n/a
 
      9th Dec 2008
I used your formula to successfully calculate hours worked after 11 PM, how do you use your same formula to calculate hours worked prior to a certain time, in this case prior to 7 am?

Thank you in advance! Lisa
 
Reply With Quote
 
macropod
Guest
Posts: n/a
 
      10th Dec 2008
Hi Lisa,

Give us a clue as to what formula you refer!

--
Cheers
macropod
[MVP - Microsoft Word]


"Lisa Kerr" wrote in message news:(E-Mail Removed)...
>I used your formula to successfully calculate hours worked after 11 PM, how do you use your same formula to calculate hours worked
>prior to a certain time, in this case prior to 7 am?
>
> Thank you in advance! Lisa


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 calculate time between 2 date/time columns Kevo Microsoft Excel Misc 8 25th Apr 2009 12:02 AM
Calculate Ending time using Start Time and Elapsed Time Chief 711 Microsoft Excel Worksheet Functions 5 13th May 2008 04:34 PM
Formula to calculate time between start time and End time =?Utf-8?B?Um9ieQ==?= Microsoft Access Forms 5 21st Oct 2006 06:06 PM
how to calculate time start & time finish in quarter hour =?Utf-8?B?UGV0ZXIgV3U=?= Microsoft Excel Misc 3 7th Jun 2006 12:58 AM
how do I calculate elapsed time in Access, I have start date/time. =?Utf-8?B?Q2Fzc2FuZHJh?= Microsoft Access 7 5th May 2005 08:09 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:41 PM.