+ Reply to Thread
Results 1 to 4 of 4

Counting number of rows meeting multiple criteria in a different Excel sheet

  1. #1
    Registered User
    Join Date
    12-06-2018
    Location
    Norway
    MS-Off Ver
    1811
    Posts
    31

    Counting number of rows meeting multiple criteria in a different Excel sheet

    Hello,

    I hope somebody can help me with this question and I hope this is interesting to some other people on the forum as well.

    I have attached a sample of the data I'm working with: Sheet1 contains the raw data and Sheet2 a summary table.

    On Sheet1, each row represents a death record and includes year (column A), region (column B) and cause of death (column C).

    On Sheet2, there's an empty summary table I would like to fill up with the data from Sheet1. For each of the regions listed below "county_name" (cell A2) I would like to record the number of death records for each death cause ranging from years 1986 to 1988 only (inclusive).

    This means that, for each possible death cause ("druknet", "påkjørt", "ingen info", "skutt", "skutt (lovlig)", "trolig selvdød"), I should have the number of death records per region between 1986 and 1988.

    How can I count the number of rows on Sheet1 meeting all this multiple criteria and paste this information on the table in Sheet2?

    I would appreciate if I could be set into the right track!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    06-02-2012
    Location
    London, England
    MS-Off Ver
    365
    Posts
    397

    Re: Counting number of rows meeting multiple criteria in a different Excel sheet

    Put the below formula in cell B3 then copy right and down as required.

    =COUNTIFS(Sheet1!$A:$A,">=1986",Sheet1!$A:$A,"<=1988",Sheet1!$B:$B,$A3,Sheet1!$C:$C,B$2)

    Or you could use a Pivot Table.

    Beth.
    Last edited by BanginMyHeadOnMyDesk; 12-23-2019 at 09:57 AM.

  3. #3
    Forum Contributor
    Join Date
    06-01-2014
    Location
    Riyadh, Saudi Arabia
    MS-Off Ver
    Microsoft 365
    Posts
    224

    Re: Counting number of rows meeting multiple criteria in a different Excel sheet

    you can do it by functions or pivot table.

    Please see both in the attached file.
    Attached Files Attached Files
    Last edited by ibuhary; 12-23-2019 at 10:01 AM. Reason: change attachment

  4. #4
    Forum Contributor
    Join Date
    06-01-2014
    Location
    Riyadh, Saudi Arabia
    MS-Off Ver
    Microsoft 365
    Posts
    224

    Re: Counting number of rows meeting multiple criteria in a different Excel sheet

    I have updated the attachment, to filter the years, I missed that earlier sorry.

+ 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. Counting number of cells in workbook meeting criteria
    By Hatricke in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-17-2009, 01:15 PM
  2. Counting the number of cells meeting conditional formating criteria
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 12:05 PM
  3. Counting the number of cells meeting conditional formating criteria
    By Jeff in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  4. Counting the number of cells meeting conditional formating criteria
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-06-2005, 06:05 AM
  5. [SOLVED] Counting the number of cells meeting conditional formating criteria
    By Jeff in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  6. Counting the number of cells meeting conditional formating criteria
    By Jeff in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  7. Replies: 0
    Last Post: 08-25-2005, 05:49 AM
  8. Counting the number of cells meeting conditional formating criteria
    By Jeff in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-08-2005, 09:05 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