+ Reply to Thread
Results 1 to 4 of 4

Count unique values (ignore duplicates) with multiple other column criteria

  1. #1
    Registered User
    Join Date
    05-22-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    2

    Count unique values (ignore duplicates) with multiple other column criteria

    Hi All,

    I need to count the number of unique value in a column, but this will depend on certain criteria been met in several other columns first.

    In the attached i have a 'Full Data' sheet which is where i all the data i am trying to count exists. The 'Summary' sheet is where i am trying to calculate/count the number of unique values.

    I have positions (Summary - a5:a22) that i want to calculate the number of staff currently in that position. I also want to be able to restrict the 'Dept' - (Full Data - E:E) (additional department not included in this worksheet) and the 'payrun Number' (Full Data - D:D).

    basically, count the number of "Chef" at Dept 15 and in payrun number 143 (but department and payrun number will continue to vary).

    Thanks in advance to anyone that can help.
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Count unique values (ignore duplicates) with multiple other column criteria

    Why not use a Pivot Table ? It does exactly whet you need in the blink of an eye

  3. #3
    Registered User
    Join Date
    05-22-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Count unique values (ignore duplicates) with multiple other column criteria

    Thanks for the advice Pepe, Unfortunately i am calculating alot more information of my actual spreadsheet. I really need to be able to input my variable figures and the data will calculate.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Count unique values (ignore duplicates) with multiple other column criteria

    Hi and welcome to the forum

    Try this, copied down...
    =COUNTIFS('Full Data'!G:G,Summary!A5,'Full Data'!E:E,Summary!$B$1,'Full Data'!D:D,Summary!$B$2)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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