+ Reply to Thread
Results 1 to 3 of 3

Add Values From Non-Working Days to Monday Total

  1. #1
    Registered User
    Join Date
    10-02-2012
    Location
    Johnston, Iowa
    MS-Off Ver
    Excel 2007
    Posts
    2

    Add Values From Non-Working Days to Monday Total

    I am trying to add the total of items that come into the office during weekends and holidays, to the total for each following Monday. I can identify weekend and holiday days in an adjacent cell by its contents, either blank or zero. I wish to sum the incoming number of files from the weekend/holiday to the following Monday's work.

    I believe I've attached an example of the values I'm trying to sum, with one set including a holiday ( three day weekend).

    Anyone have any ideas? Suggestions deeply appreciated.

    Thanks,
    Dave
    Attached Files Attached Files
    Last edited by ddavelarsen; 10-02-2012 at 10:12 AM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Add Values From Non-Working Days to Monday Total

    Try this in H8 dragged down

    =IF(AND(ISNUMBER(C8),C7=""),SUMIF(C4:C7,0,B4:B7)+SUMIF(C4:C7,"",B4:B7)+B8,"")
    Does that work for you? It assumes a 4 day weekend at most. I also cleared the cells where you had 0 on the weekend instead of blanks.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    10-02-2012
    Location
    Johnston, Iowa
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Add Values From Non-Working Days to Monday Total

    Quote Originally Posted by ChemistB View Post
    Try this in H8 dragged down

    =IF(AND(ISNUMBER(C8),C7=""),SUMIF(C4:C7,0,B4:B7)+SUMIF(C4:C7,"",B4:B7)+B8,"")
    Does that work for you? It assumes a 4 day weekend at most. I also cleared the cells where you had 0 on the weekend instead of blanks.
    Thank you, that does work. Now I just need to figure out how it does. I'll amend our model with your solution and we're off to the races! Have a great day. Updated thread title and reputation, thanks again.

+ 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