+ Reply to Thread
Results 1 to 5 of 5

VBA to Repeat COUNTA for Varying Number of Rows

  1. #1
    Registered User
    Join Date
    01-06-2020
    Location
    Ohio, USA
    MS-Off Ver
    MS Office 2019
    Posts
    2

    VBA to Repeat COUNTA for Varying Number of Rows

    Hello,

    I'm trying to add a =COUNTA() function to the bottom of multiple groups of rows with a varying number of rows within each group. I would like the formulas to populate in the row directly below each group of rows (i.e. row 5).
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,085

    Re: VBA to Repeat COUNTA for Varying Number of Rows

    the formulas to populate in the row directly below each group of rows
    Something like C5 = Counta(C2:C4)
    What is the issue ?
    Why not a sample Excel file for example !!!
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,463

    Re: VBA to Repeat COUNTA for Varying Number of Rows

    Give this macro a try...
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-06-2020
    Location
    Ohio, USA
    MS-Off Ver
    MS Office 2019
    Posts
    2

    Re: VBA to Repeat COUNTA for Varying Number of Rows

    This looks to be working perfectly. Thank you!!

  5. #5
    Registered User
    Join Date
    12-18-2019
    Location
    Maracaibo, Venezuela
    MS-Off Ver
    2016
    Posts
    6

    Re: VBA to Repeat COUNTA for Varying Number of Rows

    Hi, assuming that your data come like in the picture, you only need a pivot table
    Attached Images Attached Images
    Attached Files Attached Files

+ 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: 9
    Last Post: 08-31-2014, 07:26 PM
  2. VBA Copy a Varying Number of Whole Rows
    By nosheal in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-22-2014, 12:28 PM
  3. How to populate fields with varying number of rows
    By brandnew22 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-18-2013, 03:22 PM
  4. [SOLVED] How to get a subtotal from a varying number of rows?
    By Mark53 in forum Excel General
    Replies: 4
    Last Post: 08-04-2013, 02:12 PM
  5. [SOLVED] How to repeat conditional SUM/COUNTA of columns across a range of rows
    By carleaston in forum Excel General
    Replies: 8
    Last Post: 05-24-2012, 12:25 PM
  6. How To Deal With Varying Number of Rows
    By messnj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-18-2007, 02:40 AM
  7. Sum varying number of rows
    By LSkarbek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-12-2006, 11:10 AM

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