+ Reply to Thread
Results 1 to 7 of 7

Please help, trying to count how many rows match one rows data.

  1. #1
    Registered User
    Join Date
    03-22-2016
    Location
    Flint
    MS-Off Ver
    Excel
    Posts
    10

    Please help, trying to count how many rows match one rows data.

    Hello,

    Im sorry in advance if what I'm about ask sounds stupid.

    I have a spreadsheet with lots of data and I have been using Autofilter but would like to automate the process as the spreadsheet is getting quite large now. I have about 20000 rows and have columns A to L being used. What I would like is a calculation that tells me how many rows out of the 20000 match the data thats in H20005 I20005 J20005 K20005 L20005 and display the result in say A1.

    example

    H I J K L

    9 3 2 7 5


    Just to be told how many times that exact result appears in the last 20000 rows however the data will always change so has to referenced to cell not the value.

    If anyone can help me I would appreciate it as Im still a noob at excel.

    Thanks in advance

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,950

    Re: Please help, trying to count how many rows match one rows data.

    Please post a small (20 rows) sample Excel file: my reading is that cells in H to K have values of 0 to 9 (?)

  3. #3
    Registered User
    Join Date
    03-22-2016
    Location
    Flint
    MS-Off Ver
    Excel
    Posts
    10

    Re: Please help, trying to count how many rows match one rows data.

    Screen Shot 2016-03-22 at 10.19.30.png

    Thanks for your reply as from the top row. from columns H - L there is 0.0005 0.0011 -0.0002 0.0007 0.0009

    What I'm hoping for is a calculation that would tell me from Row 2 - 20000 how many times that sequence appears on a particular row in the same columns.

    I really appreciate your help.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,950

    Re: Please help, trying to count how many rows match one rows data.

    See attached (based on guess at your requirement0

    Column M is a "Helper" column

    H22 is the Match value

    I22 =COUNTIF($M$1:$M$20,$H$22)


    Need to revise helper BUT need file not image.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-22-2016
    Location
    Flint
    MS-Off Ver
    Excel
    Posts
    10

    Re: Please help, trying to count how many rows match one rows data.

    Thanks very much, Thats pretty much perfect.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,950

    Re: Please help, trying to count how many rows match one rows data.

    Testing with your numbers indicates my solution with helper columns will work.

    Try it on your data.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,950

    Re: Please help, trying to count how many rows match one rows data.

    You beat me to it.

    If you have a solution, could you mark thread as solved ("Thread Tools" at top of first post).

+ 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] Check Column data in two rows is match for data in two rows on another sheet and return
    By Iain Clarendon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-16-2015, 09:25 PM
  2. VBA Excel 2013 - Count data rows on single sheet, divide by 3 , color band rows.
    By DoodlesMama in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-26-2015, 01:33 PM
  3. Replies: 4
    Last Post: 05-30-2013, 06:00 PM
  4. Replies: 3
    Last Post: 08-09-2010, 09:07 AM
  5. Need to match week and count rows with yes or no.
    By Gauntsghost in forum Excel General
    Replies: 3
    Last Post: 01-13-2010, 12:04 AM
  6. Count rows that match 3 sets of criteria?
    By EricE in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-29-2005, 12:30 PM
  7. [SOLVED] How to count rows that match two criteria?
    By Broida (spamless) in forum Excel General
    Replies: 7
    Last Post: 01-02-2005, 06:09 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