+ Reply to Thread
Results 1 to 7 of 7

Running count with spill range, zeroing out counts >1

  1. #1
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    Running count with spill range, zeroing out counts >1

    Hi,

    I have attached a workbook where I perform a running count with criteria, with 1 for the first count and 0 for the next occurrences.

    =IF(COUNTIFS($A$2:$A2;$A2;$B$2:$B2;$B2)>1,0,1)

    How can this be done with dynamic formulas giving a spill range? (And without Byrow and Lambda)

    Best regards,
    Marbleking
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    Re: Running count with spill range, zeroing out counts >1

    Hi,

    I found a solution for this:

    =IFERROR(IF(MATCH(ROW($A$2:$A$8)-ROW($A$1),MATCH($A$2:$A$8&$B$2:$B$8,$A$2:$A$8&$B$2:$B$8;0),0),1,0),0)

    Regards,
    Marbleking

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    84,036

    Re: Running count with spill range, zeroing out counts >1

    Thanks for letting us know.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    Re: Running count with spill range, zeroing out counts >1

    I'll keep this open a bit longer, please. The solution I found is slow on large data sets, so if anyone has a more efficient way, that'd be nice.

  5. #5
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,938

    Re: Running count with spill range, zeroing out counts >1

    Ok Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Running count with spill range, zeroing out counts >1

    Another SPILL-formula without LAMBDA:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,698

    Re: Running count with spill range, zeroing out counts >1

    In D2
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Filter to match up range and spill data in range
    By paradise2sr in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 09-06-2022, 11:08 PM
  2. [SOLVED] COUNT Dynamic Array based on Date to return Dynamic Array Spill Range
    By dluhut in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-06-2022, 01:14 PM
  3. [SOLVED] Replace #N/A with prior available values on a 2D running array with ONE "spill" formula
    By leolapa in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-08-2021, 02:49 PM
  4. [SOLVED] Find last MATCH for each row on a 2D running array with ONE "spill" formula
    By leolapa in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2021, 11:34 AM
  5. Replies: 5
    Last Post: 01-27-2021, 12:07 PM
  6. Count IF returning spill
    By vini.v4 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-23-2020, 08:34 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