+ Reply to Thread
Results 1 to 8 of 8

countif (unique entries) 2 criterias

  1. #1
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,224

    countif (unique entries) 2 criterias

    Hello

    Having some trouble deriving a formula that will
    - look for account # for a county by name

    there are multiple duplicates so i would only like unique entries for a county, i have attached a sample, can someone pls help!

    im really out of ideas, bc countif only allows for one criteria to be searched and i use excel 03 so i cant use countifs!

    i have highlighted in "red" the column that the formula should be

    pls help and much appreciated!
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: countif (unique entries) 2 criterias

    You want to use the Excel 2007 function COUNTIFS() which allows multiple criteria to be used.

    =COUNTIFS(CountRNG, Criteria1RNG, Criteria1, Criteria2RNG, Criteria2, etc....)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,224

    Re: countif (unique entries) 2 criterias

    hello

    appreciate the prompt response.

    the issue is, if i am to send the file out to the branches, not all branches are upgraded to excel 07, so is there a possible formula in excel 03 that i can cut around with? pls and thx u!

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: countif (unique entries) 2 criterias

    Sending out Excel files is always a pain, usually unnecessary. PDF your files and send these flat reports to others for review. If you send out Excel files anyone can change anything and then blame you for bad data.... ugh.

  5. #5
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,224

    Re: countif (unique entries) 2 criterias

    yeah that would be great but unfortunately cant do that lol

    is that a sumproduct rule that can be applied here? thx u

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: countif (unique entries) 2 criterias

    1) Add a column to your data to make a key concatenating each county name and the number of times that code has occurred so far.

    2) Then you can sum by the county name added to the "-1" count to get the first instance of each combination.

    Does this work for you?
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,224

    Re: countif (unique entries) 2 criterias

    JBeaucaire,

    you are simply the best, genius!

    thx you so much!!!!!!

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: countif (unique entries) 2 criterias

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ 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