+ Reply to Thread
Results 1 to 4 of 4

Countifs Help with multiple columns in one criteria

  1. #1
    Registered User
    Join Date
    10-30-2015
    Location
    Rochester, NY
    MS-Off Ver
    2010
    Posts
    10

    Countifs Help with multiple columns in one criteria

    Hi, I was wondering if anyone could help me with this issue. I have a database with codes for each unit for example different age groups are coded with A so they would read as A1, A2 and so on depending on the range. Same with Nationality for B1, B2, B3. This data is huge and I am trying to count the codes received from each code column. There are 4 columns for codes which are like A1 B1 B2 C1. and my table looks the the following:
    Capture.PNG

    My formula to count all the A1 matched with year 2016 looks like the following: COUNTIFS(DATABASE!$R$14:$R$382,"2016",DATABASE!$N$14:$Q$382,B6)

    Cell B6 corresponds to my code A2. The first range corresponds to the year on the database and the second range corresponds to the four columns that specify the code.

    This formula is not working as it gives me #VALUE!

  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
    28,146

    Re: Countifs Help with multiple columns in one criteria

    Please post a small sample file as many of us cannot view PNG images nor can we work with them.

  3. #3
    Registered User
    Join Date
    10-30-2015
    Location
    Rochester, NY
    MS-Off Ver
    2010
    Posts
    10

    Re: Countifs Help with multiple columns in one criteria

    Here it is I need to # of Gifts column to add the number of A1 on the Database. The database has about 1000 codes per yearSample Database.xlsx

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Countifs Help with multiple columns in one criteria

    Use SUMPRODUCT instead. In C3 of "Year 2016" for example

    =SUMPRODUCT(('Sample Database'!$F$7:$F$382=2016)*('Sample Database'!$B$7:$E$382=B3))
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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. Countifs with multiple criteria in single criteria range
    By MCP313 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-01-2016, 03:51 AM
  2. [SOLVED] COUNTIFS with multiple criteria in the same criteria range
    By Faridwahidi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-23-2015, 01:04 PM
  3. [SOLVED] countifs statement with multiple criteria for multiple criteria ranges
    By mcdermott2 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-07-2015, 11:48 AM
  4. [SOLVED] Countifs multiple criteria, and 1 criteria Less than & Greater than
    By david gonzalez in forum Excel General
    Replies: 4
    Last Post: 06-30-2014, 10:33 PM
  5. [SOLVED] Countifs with multiple criteria and one criteria has a list of names
    By Beefy1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-30-2014, 05:25 PM
  6. Replies: 4
    Last Post: 07-20-2012, 07:51 AM
  7. Replies: 0
    Last Post: 07-27-2011, 01:00 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