+ Reply to Thread
Results 1 to 7 of 7

scheduled hours

  1. #1
    Registered User
    Join Date
    07-19-2008
    Location
    UT
    Posts
    24

    scheduled hours

    i'm using this formula to track hours but need to know how to fix it to were if hours equal zero then it puts off that day
    =SUMPRODUCT((A3:A29="shellie")*(E3:E29-C3:C29+(C3:C29>E3:E29)))*24

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Not sure what you mean. You get an error or the wrong result? In what circumstances exactly, i.e. which values in which cells?

    One possibility....

    =SUM(IF(A3:A29="Shellie",IF(ISNUMBER(C3:C29+E3:E29),MOD(E3:E29-C3:C20,1))))*24

    This is an "array formula" which needs to be confirmed with CTRL+SHIFT+ENTER

  3. #3
    Registered User
    Join Date
    07-19-2008
    Location
    UT
    Posts
    24

    reply

    what it is if shellie doesn't work on certain day it will only show 0 i want it to show that shellie is off that day not a 0

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    you could custom format the result cell like this

    [=0]"Off";General

  5. #5
    Registered User
    Join Date
    07-19-2008
    Location
    UT
    Posts
    24
    i'm kinda new to this all, kinda uncertain on how to do a custom format.

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Say you have your SUMPRODUCT formula in D30 then select that cell and then select the "Format" menu from the toolbar at the top then

    Cells > Number > Custom

    and type or paste exactly waht I suggested in the box, i.e.

    [=0]"Off";General

    OK

  7. #7
    Registered User
    Join Date
    07-19-2008
    Location
    UT
    Posts
    24
    thanks for all your help

+ 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