+ Reply to Thread
Results 1 to 6 of 6

Count Entries until blank cell, then resume counting until next blank

  1. #1
    Registered User
    Join Date
    03-15-2019
    Location
    Ontario,Canada
    MS-Off Ver
    2010
    Posts
    2

    Count Entries until blank cell, then resume counting until next blank

    Capture.PNG

    Hi Guys,

    I need to be able to count the number of entries (z's) in each column, but only count until a blank cell is reached. Then resume counting again till another blank cell is reached.
    For example:

    z
    z
    z
    z
    [blank]
    [blank]
    z
    z

    Count=4
    Count = 2

    Look at the pic for more examples

    Any help is appreciated, thanks!

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Count Entries until blank cell, then resume counting until next blank

    1. Would a Macro work for you


    2. Are we only interested in columns C, E and G

    3. How would you trigger the Macro?
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Count Entries until blank cell, then resume counting until next blank

    Here is a formula based solution. It does however need a helper column for each column to be counted.

    In D3 then copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Same for F3, H3.

    In C31 copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Copy to E31:E34 and G31:G34

    Attached is a workbook implementing the above.
    Attached Files Attached Files

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Count Entries until blank cell, then resume counting until next blank

    Please try at C29
    =IFERROR(MOD(AGGREGATE(15,6,1/(1/FREQUENCY(IF(C$3:C$26<>"",ROW(C$3:C$26)),IF(C$3:C$26="",ROW(C$3:C$26))))+ROW(C$3:C$26)*10^3,ROWS(C$29:C29)),10^3),"")

    Press Ctrl+Shift+Enter drag across and down
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-15-2019
    Location
    Ontario,Canada
    MS-Off Ver
    2010
    Posts
    2

    Re: Count Entries until blank cell, then resume counting until next blank

    Thanks so much!! it worked

  6. #6
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Count Entries until blank cell, then resume counting until next blank

    Thanks for the feedback and reputation points

+ 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. Replies: 3
    Last Post: 08-30-2018, 11:13 PM
  2. Counting blank cells up to first non-blank cell
    By DLG3 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-08-2015, 07:36 AM
  3. Replies: 2
    Last Post: 11-22-2013, 01:07 PM
  4. [SOLVED] Count entries with formulas, exclude blank values
    By JO505 in forum Excel General
    Replies: 4
    Last Post: 03-08-2013, 08:16 PM
  5. [SOLVED] Count Column blank entries, reset after entry in cell
    By Sedge in forum Excel General
    Replies: 4
    Last Post: 01-27-2011, 02:27 PM
  6. counting non-numerical in a list with blank entries
    By SoE in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-12-2010, 04:07 PM
  7. color blank cell red if blank or empty and count its occurances
    By stoey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2009, 08:21 AM

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