+ Reply to Thread
Results 1 to 8 of 8

Need formula to sum all missing items in concurrent events.

  1. #1
    Registered User
    Join Date
    03-06-2013
    Location
    Ridgefield, Washington, U.S.A.
    MS-Off Ver
    Excel 2007
    Posts
    8

    Need formula to sum all missing items in concurrent events.

    See attached file: ConcurrentEventsTotalMissing.xlsx

    I added the 'Concurrent Events Total Missing' column data manually because I couldn't figure out the formula to calculate it. Basically I need the total Missing for all the Concurrent Events in that last column. Assistance would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Need formula to sum all missing items in concurrent events.

    See the attached file.

    See the red cells (I think you gave manualy the wrong answer).
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    03-06-2013
    Location
    Ridgefield, Washington, U.S.A.
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Need formula to sum all missing items in concurrent events.

    Quote Originally Posted by oeldere View Post
    See the attached file.

    See the red cells (I think you gave manualy the wrong answer).
    Thank you oeldere but that isn't the solution needed. Your formula continues to add missing items to the total just above it. The concurrent events are not in a sequence. When an event closes then it is removed from concurrent events and when an item opens then it is added to concurrent events and that doesn't happen sequentially.

  4. #4
    Registered User
    Join Date
    03-06-2013
    Location
    Ridgefield, Washington, U.S.A.
    MS-Off Ver
    Excel 2007
    Posts
    8

    Additional information

    Here is the formula that identifies concurrent events:
    =SUMPRODUCT((A2>=$A$2:$A$36)*(A2<=$B$2:$B$36))

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Need formula to sum all missing items in concurrent events.

    Can you explain why e21 = -/- 149 ?

    132 + 31 = 163

  6. #6
    Registered User
    Join Date
    03-06-2013
    Location
    Ridgefield, Washington, U.S.A.
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Need formula to sum all missing items in concurrent events.

    The concurrent events for row 21 are rows 18, 19, 21. The missing items -61 - 57 - 31 = -149

    Row 20 event had already closed so was not in concurrent events.

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

    Re: Need formula to sum all missing items in concurrent events.

    Try this:
    Please Login or Register  to view this content.
    If you know how the code works, it is easier to control this.
    Quang PT

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

    Re: Need formula to sum all missing items in concurrent events.

    May I share the idea?
    A2>=A2:A36 give an array with TRUE and FALSE (1 and 0) : i.e 1,1,0,0,1,0,...(A2>=A2,A2>=A3,A2<A4,...)
    A2<=B2:B36 ===> i.e: 0,1,0,0,0,0,...
    multiply together:
    0,1,0,0,0,0,... where A2>=A3 and A2<=B3 gives 1, other gives 0.
    SUMPRODUCT: sum all after multiflying.
    if multiflying with Missing, SUMPRODUCT gives the total of Missing with the two above criterias.

+ 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