+ Reply to Thread
Results 1 to 4 of 4

Counting Cells with Varying amounts of data

  1. #1
    Registered User
    Join Date
    10-23-2018
    Location
    Salt Lake City, Utah
    MS-Off Ver
    Office 365
    Posts
    4

    Counting Cells with Varying amounts of data

    Hello,

    I am trying to figure a formula that will count a specific number of cells, but the amount of cells I want to count will vary as the formula is dragged down. I attached an example.

    I need a formula to count the number of cells with values in it per participant. For example, the formula should show "3" for participant 1, "3" for participant 2, and "1" for participant 3.

    I have a large amount of data, so this would be very helpful.

    Thanks,

    B
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,720

    Re: Counting Cells with Varying amounts of data

    It would be better if you filled all the cells in column A, rather than leave some of them blank - you can achieve the same "look" by using conditional formatting to blank duplicates out (i.e. use a white foreground colour) if the cell value is the same as the previous cell.

    Then you can use this formula in cell D2:

    =IF(COUNTIF(A$2:A2,A2)=1,COUNTIFS(A:A,A2,C:C,">0"),"")

    which you can copy down to the bottom of your data - it will produce a result only on the row of the first occurrence of the participant.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    10-23-2018
    Location
    Salt Lake City, Utah
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Counting Cells with Varying amounts of data

    Thank you so much, you saved me so much time. For Science!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,720

    Re: Counting Cells with Varying amounts of data

    Glad to help.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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: 1
    Last Post: 08-13-2014, 08:56 AM
  2. Dividing dollar amounts unevenly into varying numbers of cells/columns
    By Busterbrown in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-26-2014, 01:26 PM
  3. Line Graph with varying amounts
    By CrzyBoy2599 in forum Excel General
    Replies: 10
    Last Post: 02-09-2012, 04:28 AM
  4. Pulling large amounts of data from varying tabs
    By bjvick in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-14-2010, 05:24 PM
  5. Replies: 2
    Last Post: 12-10-2009, 01:20 PM
  6. Sorting and counting large amounts of data
    By imcold in forum Excel General
    Replies: 11
    Last Post: 01-04-2009, 10:40 PM
  7. Copy varying amounts of data between sheets
    By amuza in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-07-2008, 06:50 PM

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