Closed Thread
Results 1 to 14 of 14

(SOLVED) Help with the IF function to calculate my ordinary hours for a timesheet

  1. #1
    Registered User
    Join Date
    03-18-2012
    Location
    australia
    MS-Off Ver
    Excel 2010
    Posts
    6

    (SOLVED) Help with the IF function to calculate my ordinary hours for a timesheet

    Hello
    Im am having trouble with the IF function in excel 2010, for a template of a pay sheet.
    I have been asked to -Using an IF statement in cell G8, calculate the ordinary hours component of total hours.
    Using a nested IF statement in H8, calculate the overtime hours.
    Using a nested IF statement in I8, calculate the time and a half (T ½) overtime hours
    Using a nested IF statement in J8, calculate the double time hours.
    The ordinary hours are 8hrs a day.
    On weekdays, the first 2 overtime hours are paid at time and a half and remaining overtime hours are paid at double time rates.
    Hours worked on Saturday are considered overtime, with the first 2 hours worked at time and a half rates and remaining overtime hours are paid at double time rates.

    As you can see in my file i have just put the normal hours which is 7.30am - 4.00pm,with a 30 min lunch break, so i am not sure how to work out the IF functions.
    I will be putting the employees actual hrs in my next spreadsheet, this will be the template i will use to calculate the info.

    Can anyone please help me with this function,
    I would greatly appreciate it!
    natasha9794

    I have attached my file!
    Attached Files Attached Files
    Last edited by natasha9794; 03-21-2012 at 11:31 PM.

  2. #2
    Forum Contributor
    Join Date
    01-28-2010
    Location
    Riverside, CA
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: Help with the IF function to calculate my ordinary hours for a timesheet

    Hi natasha,

    I made a new file, the named cells in your table made it really hard to work with since they had [returns] on them. But my new file is placed in the same cells as you have them in your file. I hope you can take a look and work with it for your file. Hope it helps.
    Attached Files Attached Files
    Happy Excel'ing!

  3. #3
    Registered User
    Join Date
    03-18-2012
    Location
    australia
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Help with the IF function to calculate my ordinary hours for a timesheet

    Thank you haru,
    I will have a look at your table and see what i can do for my table!
    Thanks again!
    natasha9794

  4. #4
    Registered User
    Join Date
    03-18-2012
    Location
    australia
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Help with the IF function to calculate my ordinary hours for a timesheet

    Hi Haru,
    I have tested your IF formula in cell G8, it works, but when i enter a time which is before 16.00 it comes up with the the same hours as the "total hours" it works fine when i enter anytime after 16.00, how would i fix that?
    also in cells H8 and J8, can the IF functions be used in these cells?
    and with cell I8, i don't understand what you put in your formula, if i say the employee worked till 20.00 which is 4 hours overtime, which would be 2 hours at time1/2 and 2 hours double time, when i use your function it does not work for me.
    Sorry to be a pain.
    Thank you,
    natasha9794

  5. #5
    Registered User
    Join Date
    03-18-2012
    Location
    australia
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Help with the IF function to calculate my ordinary hours for a timesheet

    OK i have worked out the IF formula for the "ordinary hours" now im up to using the IF formula to calculate the overtime hours worked, My IF
    formula so far is IF>8,
    so that is if my total number of hours worked is greater than 8. now i dont know what to put if it is greater or if it is less than 8, this is just a template with the formulas in it.
    I enter the info later on.
    any help please!
    thank you,
    natasha9794

  6. #6
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: Help with the IF function to calculate my ordinary hours for a timesheet

    Can you post a sample of where you are at the moment?

  7. #7
    Forum Contributor
    Join Date
    01-28-2010
    Location
    Riverside, CA
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: Help with the IF function to calculate my ordinary hours for a timesheet

    Hi natasha,
    for your first overtime, it would be something like:

    =if(ordinary hours<=0.33333,0,if(ordinary hours - 0.3333>0.083333,0.083333,ordinary hours - 0.333333)

    remember that time has different values, 8 hours = 0.33333 and 2 hours = 0.083333

  8. #8
    Registered User
    Join Date
    03-18-2012
    Location
    australia
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Help with the IF function to calculate my ordinary hours for a timesheet

    part B,Task 1 produce spreadsheets.xlsx
    Here is where im up to,
    Thank you!

  9. #9
    Registered User
    Join Date
    03-18-2012
    Location
    australia
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Help with the IF function to calculate my ordinary hours for a timesheet

    Thank you haru,
    now i understand, thanks again!

  10. #10
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: Help with the IF function to calculate my ordinary hours for a timesheet

    Please mark this thread as solved.

  11. #11
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: Help with the IF function to calculate my ordinary hours for a timesheet

    Please mark this as solved.

  12. #12
    Registered User
    Join Date
    03-27-2012
    Location
    australia
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: (SOLVED) Help with the IF function to calculate my ordinary hours for a timesheet

    I was wondering if you would be able to post the end result of this timesheet. What formula did you use to get your double time ..
    Cheers

  13. #13
    Registered User
    Join Date
    05-22-2012
    Location
    Queensland Australia
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: (SOLVED) Help with the IF function to calculate my ordinary hours for a timesheet

    Hi I'm wondering if you found a solution as I am looking for the same. I can't see a solution posted.

  14. #14
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: (SOLVED) Help with the IF function to calculate my ordinary hours for a timesheet

    Alexis,

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1