+ Reply to Thread
Results 1 to 5 of 5

COUNTIFS to count data in two columns based on other criteria?

  1. #1
    Registered User
    Join Date
    08-02-2009
    Location
    Lancashire, England
    MS-Off Ver
    Excel 2007
    Posts
    84

    Smile COUNTIFS to count data in two columns based on other criteria?

    Hi

    Im having problems with COUNTIFS and multiple criteria. I am trying to count the number of times a name appears in two columns D:E, this based on the date (Month / Year),
    The formula is on the "Stats" sheet, along with the cells to select the Year etc.

    Im struggling to describe well so i have attached a copy to show what i mean (unfortunately have had to sanitise it somewhat). There is a note in the relevant cell.

    Hope you can help (you have never let me down before)!

    Thanks in advance.

    Si
    Attached Files Attached Files

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: COUNTIFS to count data in two columns based on other criteria?

    Hi Si,

    And what result you are expecting in E9?
    Also why you are referencing "Baxter" from validation sheet, it should be be referenced in same sheet E2 cell which has baxter. Cell E2 can further have validation
    ?

    Regards
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: COUNTIFS to count data in two columns based on other criteria?

    hi Si, your formula seems to be correct. Just need to fix some cells. And as dilipandey mentioned, you probably wanna refer "Baxter" in "Stats" instead of the "Validation" worksheet. but following your formula, here it is:
    Please Login or Register  to view this content.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    08-02-2009
    Location
    Lancashire, England
    MS-Off Ver
    Excel 2007
    Posts
    84

    Re: COUNTIFS to count data in two columns based on other criteria?

    Hi Dilipandey

    Thanks

    I am expecting the total number of times the word BAXTER appears in columns D:E on the DATA sheet to be displayed in E9.

    The reason i have referanced "Baxter" to the Validation sheet is because "Baxter" should not appear on the Stats page, the Numer 1715 in E3 refers to a person named Baxter (I just put that in to show that). The columns D:E on DATA are validated to only accept names in that list.

    I know its probably not the best way!

  5. #5
    Registered User
    Join Date
    08-02-2009
    Location
    Lancashire, England
    MS-Off Ver
    Excel 2007
    Posts
    84

    Re: COUNTIFS to count data in two columns based on other criteria?

    Benishiryo

    Thanks, This works. Will have a look at sorting the validation issue as mentioned by you and dilipandey.

    Great stuff yet again.

    Quote Originally Posted by benishiryo View Post
    hi Si, your formula seems to be correct. Just need to fix some cells. And as dilipandey mentioned, you probably wanna refer "Baxter" in "Stats" instead of the "Validation" worksheet. but following your formula, here it is:
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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