Results 1 to 6 of 6

Selecting cells to sum based on LAST occurring incidence of criteria

Threaded View

  1. #1
    Registered User
    Join Date
    05-19-2019
    Location
    Sunderland
    MS-Off Ver
    365
    Posts
    8

    Smile Selecting cells to sum based on LAST occurring incidence of criteria

    Hi Excel forum,
    I hope your amazing members can help me with a function issue I have.

    I need to create a formula that counts based on multiple criteria - a simple COUNTIFS you might think. But alas this is not satisfying the needs.
    The function must select the LAST occurring incidence of criteria and sum that.
    E.g. data is categorised as:
    Person number ( person 1, person 2 etc), date, status (Start, Include, End, and can have several occurrences of Start and end over time with several Includes within each group), value to be summed.

    What I need a formula for is to search for the LAST occurring START and count everything from there to the current cell's timepoint, or to the last "END" status prior to this cell's date.
    It is likely that there will be varying numbers of records between each "START" and "END" status. I need a formula that can dynamically identify only the last "START" and commence counting from there to the current position for the selected person in that row.

    Not sure I've explained this accurately enough, so I have mocked up a simple spreadsheet - see attached.
    I hope this demonstrates my requirements.

    Is there a formula that could generate the required results?

    Thanks in advance
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Formula to return the most commonly occurring (text) value based on criteria
    By Excel_NoneTheWiser in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 04-23-2021, 01:02 PM
  2. Selecting cells in one column based on criteria in another
    By CDandVinyl in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-15-2017, 03:29 PM
  3. Selecting random cells based on criteria
    By JamesTrethowan in forum Excel General
    Replies: 8
    Last Post: 10-28-2015, 11:15 AM
  4. Replies: 7
    Last Post: 01-14-2015, 11:38 PM
  5. Using Avergeifs and selecting last 8 cells based on criteria
    By boyesmar in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 12-29-2013, 09:53 AM
  6. Using Avergeifs and selecting last 8 cells based on criteria
    By boyesmar in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-23-2013, 09:20 PM
  7. Selecting Range of Cells based on Criteria
    By gmclauchlan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2011, 12:19 PM

Tags for this Thread

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