+ Reply to Thread
Results 1 to 17 of 17

Counting cell after a reference point and restart when the reference point is meet.

  1. #1
    Registered User
    Join Date
    04-16-2015
    Location
    Simeria
    MS-Off Ver
    2021
    Posts
    97

    Counting cell after a reference point and restart when the reference point is meet.

    Hi

    I need help with a formula to count a specified data after a reference point and restart counting when the reference point is meet.
    Attached Files Attached Files

  2. #2
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,472

    Re: Counting cell after a reference point and restart when the reference point is meet.

    Please explain the expected results. How did you manually calculate 3 for cell B5???
    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.

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,472

    Re: Counting cell after a reference point and restart when the reference point is meet.

    I think I worked it out. Try this in B5 copied down:

    =IF(A5="RF",COUNTIF($A5:$A$42,"B")-SUM($B6:$B$42),"")

  4. #4
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,472

    Re: Counting cell after a reference point and restart when the reference point is meet.

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

    Thanks for the rep.

  5. #5
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,472

    Re: Counting cell after a reference point and restart when the reference point is meet.

    Your follow-on question should be asked here.

  6. #6
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,472

    Re: Counting cell after a reference point and restart when the reference point is meet.

    Administrative Note:

    Members will tailor the solutions they offer to the version of Office (Excel) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Counting cell after a reference point and restart when the reference point is meet.

    See attached with a couple of helper columns
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Counting cell after a reference point and restart when the reference point is meet.

    See attached with a couple of helper columns
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    04-16-2015
    Location
    Simeria
    MS-Off Ver
    2021
    Posts
    97

    Counting cell after a reference point compact results

    Using this formula I can get the result with fewer help columns.
    Attached Files Attached Files
    Last edited by pedersenn; 12-03-2021 at 05:13 AM.

  10. #10
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,472

    Re: Counting cell after a reference point and restart when the reference point is meet.

    Are you still using Excel 2016?

  11. #11
    Registered User
    Join Date
    04-16-2015
    Location
    Simeria
    MS-Off Ver
    2021
    Posts
    97

    Re: Counting cell after a reference point and restart when the reference point is meet.

    yes, excel 2016

  12. #12
    Registered User
    Join Date
    04-16-2015
    Location
    Simeria
    MS-Off Ver
    2021
    Posts
    97

    Re: Counting cell after a reference point and restart when the reference point is meet.

    I will install a newer version.

  13. #13
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,472

    Re: Counting cell after a reference point and restart when the reference point is meet.

    If you get MS365 or Excel 2021, you can use this:

    =FILTER(D:D,D:D<>"")

    Remember you can hide the helper column.

  14. #14
    Registered User
    Join Date
    04-16-2015
    Location
    Simeria
    MS-Off Ver
    2021
    Posts
    97

    Re: Counting cell after a reference point and restart when the reference point is meet.

    This function seems to be invalid: =FILTER(D:D,D:D<>"") I'm using office Professional plus 2019
    There is only the filterxml function.

  15. #15
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,472

    Re: Counting cell after a reference point and restart when the reference point is meet.

    Yes, as I said in my previous post, it works in Excel 2021 and MS365. Excel 2019 did not have it.

  16. #16
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Counting cell after a reference point and restart when the reference point is meet.

    If 2019 doesn't have =FILTER then you'll have to stick with the functions you do have.

    Did you try the suggestion I gave in #8?

  17. #17
    Registered User
    Join Date
    04-16-2015
    Location
    Simeria
    MS-Off Ver
    2021
    Posts
    97

    Re: Counting cell after a reference point and restart when the reference point is meet.

    I tried it works but I prefer the version with fewer help columns.

+ 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] Rewrite code to use active cell rather than column letters as reference point
    By Ianmacros in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-14-2019, 11:28 AM
  2. [SOLVED] Copying cell to another sheet offsetting from a find reference point - see sample
    By vkingxl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-07-2018, 12:30 PM
  3. Cell Reference to point to another cell reference
    By shinjw in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-13-2013, 10:21 PM
  4. How to reference a text to point a value of the cell.
    By southeast in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-20-2011, 03:38 PM
  5. Making a reference point for my macro
    By afriedman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-03-2010, 03:02 PM
  6. Labeling a Cell to use as a reference point
    By ComcoDG in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-19-2009, 06:09 PM
  7. Constant Reference Point
    By ledzepe in forum Excel General
    Replies: 2
    Last Post: 10-10-2006, 06:03 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