Results 1 to 46 of 46

Subtracting hours in a work schedule

Threaded View

  1. #23
    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

    If you're talking about cell D4, that make no sense based on the changes so far. D4 clearly is the hours in B4:C4. You have the same column on sheet2 to cover the other store, and you can sum the total hours of the two sheets off to the right, where it makes sense to do so.


    If you really expect D4 to reflect both sheets (which will read very oddly since you will only be able to see one sheet, but see a total for two...very odd)...then you will have to create the same formula twice in that cell: Once as is.. then + the same formula again, this time time "Store 15" sheet references added to everything:

    =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))) + IF('Store 15'!B4="", 0, IF(COUNTA('Store 15'!B4:C4)=2, ('Store 15'!C4-'Store 15'!B4) * 24 - 0.5, IF(ISNUMBER(MATCH('Store 15'!B4, 'Lists for Stores'!$C:$C,)), INDEX('Lists for Stores'!$D:$D, MATCH('Store 15'!B4,'Lists for Stores'!$C:$C,)), 0)))
    Last edited by JBeaucaire; 09-16-2009 at 02:29 AM.

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