+ Reply to Thread
Results 1 to 3 of 3

A time sheet arithmetic issue

  1. #1
    Registered User
    Join Date
    07-13-2005
    Location
    Moncton, Canada
    MS-Off Ver
    2019
    Posts
    17

    A time sheet arithmetic issue

    Hi everybody,

    I've drawn up a time sheet to keep track of my own hours worked.

    The layout is pretty simple... I have seven three-column groups across the page, one group for each day of the week.

    The columns in each group are named "Time In" "Time Out" and "Hours Worked"

    At the tail end of each seven groups is a cell ("TOTAL") that ought to add the values of the "Hours Worked". The columns for "Hours Worked" are
    D H L P T X AB

    The formula to do this is: =SUM(D6+H6+L6+P6+T6+X6+AB6) and it works well, as long as there are values in each of the "Hours Worked" cells.

    The issue I have is that I can not adjust that formula to account for any days off, which will vary. If any one of the seven "Hours Worked" cells contain a null value, then the "TOTAL" cell will display #VALUE!

    So now I'm stuck and confused.

    My formula in the "TOTAL" column will have to somehow have to allow for null values in some or all of the "Hours Worked" cells.

    I would like the "TOTAL" cells to display a null for any future weeks that have no values in any of the weekly spreads,
    but allow for a days off in weekly spreads that do have history.

    Can anyone help me express THAT in an =IF() statement?

    Many thanks,
    Paul

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: A time sheet arithmetic issue

    SUMIF can do that :
    Assuming row #1 contains column's name: D1,H1,...,AB1 = "Hours Worked"
    The SUMIF for row #6:
    =SUMIF($D$1:$AB$1,"Hours Worked",D6:AB6)
    Copy down for other rows
    Quang PT

  3. #3
    Registered User
    Join Date
    07-13-2005
    Location
    Moncton, Canada
    MS-Off Ver
    2019
    Posts
    17

    Re: A time sheet arithmetic issue

    Works like a charm!

    Now if I can just understand SUMIF, and I eventually will.

    Thank you, sir
    Paul

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Time Sheet Pay Calculation Issue
    By TechChick72 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-29-2013, 12:19 AM
  2. Time sheet(difference) issue. Help!!!
    By austyno in forum Excel General
    Replies: 4
    Last Post: 05-30-2012, 12:47 AM
  3. Time sheet issue
    By punter in forum Excel General
    Replies: 2
    Last Post: 12-06-2010, 06:25 PM
  4. simple time sheet issue
    By hello in forum Excel General
    Replies: 7
    Last Post: 09-14-2005, 11:05 AM
  5. Elapsed-Time arithmetic
    By jPaulB in forum Excel General
    Replies: 1
    Last Post: 07-13-2005, 02:05 PM

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