Results 1 to 46 of 46

Subtracting hours in a work schedule

Threaded View

  1. #19
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Subtracting hours in a work schedule

    I suggested my original approach because it was only two values. With this larger list, you need to put in a "chart" somewhere and just refer to it.

    Here I've added the chart to the last page and then changed the formula in D4 to:

    =IF(B4="", 0, IF(COUNTA(B4:C4)=2, (C4-B4) * 24 - 0.5, IF(ISNUMBER(MATCH(B4, 'Lists for Stores'!$C:$C,)), INDEX('Lists for Stores'!$D:$D, MATCH(B4,'Lists for Stores'!$C:$C,)), 0)))


    NOTE: The reason your nested IF(IF(IF))) wasn't working was you exceeded the nesting limitations. Anytime you find yourself evaluating the SAME cell over and over with multiple IFs, there's usually a better way with a lookup table of some sort.
    Attached Files Attached Files
    Last edited by JBeaucaire; 09-14-2009 at 12:30 PM.

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