+ Reply to Thread
Results 1 to 5 of 5

Formulas for calculating timesheet

  1. #1
    Registered User
    Join Date
    05-23-2010
    Location
    Mackay, Australia
    MS-Off Ver
    Excel 2007
    Posts
    11

    Formulas for calculating timesheet

    Hello,

    Sorry to be such a pain, but I've extended my original timesheet to include annual leave, personal leave and public holidays. What my problem is that when someone is away for the day for either public, personal or annual leave in the the o/t time it calculates itself to read 6. I'm not sure how to fix this. Can someone have a look at the timesheet I've attached and advise me on how to fix this problem.

    Many thanks,
    Val C

    A big THANK YOU to everyone's help.
    Attached Files Attached Files
    Last edited by Val C; 05-24-2010 at 11:44 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formulas for calculating timesheet

    Try initiating the formula with a check to see if entries are made for the day:

    Please Login or Register  to view this content.
    so if C20:F20 are blank, then return a blank, otherwise proceed with the calculations.

    You can substitute a 0 for the "" to return 0 instead, if preferred.

    Do similar for other columns (or you can point to the previous result and indicate if that result is blank, then blank, else continue).

    Note: If you are leaving Saturday/Sunday fields blank or entering 0's, then you can use SUM() formulas at the bottom to avoid the #VALUE errors...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-23-2010
    Location
    Mackay, Australia
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Formulas for calculating timesheet

    Hi, I'm not that converse with excel yet, I'm still very much a beginner. I used the calculations as stated and it did come up blank. Not sure if that was what I wanted. What I'm wanting to do is when someone is not at work on a particular day say they have a day off for personal leave and they record 7.6 in personal leave and leave c-f blank, it comes up with a 6 in the overtime column. I don't want it to reflect this is want it to say 0. I hope I'm making myself clear and you can understand my question.

    Thanks,

  4. #4
    Registered User
    Join Date
    05-23-2010
    Location
    Mackay, Australia
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Formulas for calculating timesheet

    Quote Originally Posted by Val C View Post
    Hi, I'm not that converse with excel yet, I'm still very much a beginner. I used the calculations as stated and it did come up blank. Not sure if that was what I wanted. What I'm wanting to do is when someone is not at work on a particular day say they have a day off for personal leave and they record 7.6 in personal leave and leave c-f blank, it comes up with a 6 in the overtime column. I don't want it to reflect this is want it to say 0. I hope I'm making myself clear and you can understand my question.

    Thanks,
    Sorry I've jumped the gun that works fine, except now the extra time column comes up with a #value. I guess I've put in the wrong calculations in this column and back to the drawing board I go. Any suggestions or advice would be greatly appreciated.

    I have to say this is the best kind of program and support I've come across and it is great for people like myself who are beginners with the excel program.

    Thanks,

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formulas for calculating timesheet

    I'm not exactly sure what you mean... but if you mean the totals at the bottom are coming up with #VALUE errors, then re-read my original post... I think if you change the formula in G28 to : =SUM(G13:G26) and copy to next column.. you will get the results you need. This formula ignores blanks.

    See attached.
    Attached Files Attached Files

+ Reply to 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