banner



How To Count Unique Items In A Column In Excel Adjust For Data Filter

127 comments to "How to count unique values in Excel an easy fashion"

  1. Karen says:

    Hullo Skillful day,

    Column A Column B Cavalcade C
    A AA XX
    A AA Xx
    A AA XX
    A AB YY
    A AB XX
    B BB XX
    B BB Xx
    B BC YY
    B BC XX
    B BC ZZ

    From the sample data to a higher place, I want to count how many singled-out text in column C that group past cavalcade A)and cavalcade B. The event I wish to get is like this:

    Column A Column B Cavalcade C
    A AA Twenty ane
    A AA 20 1
    A AA Xx i
    A AB YY two
    A AB XX ii
    B BB XX 1
    B BB Xx one
    B BC YY iii
    B BC 20 iii
    B BC ZZ iii

    For group A, AA only Twenty in the group show 1 for each row, For group B,BC there are YY, 20 and ZZ in it so bear witness three for each of them.

    I've tried using this formula =
    SUM(--(FREQUENCY(IF($A$2:A2=A2,Friction match($C$2:C2,$C$2:$C2,0)),ROW($C$2:C2)-ROW(D2)+1)>0))
    but I didn't get what I want T.T

    Hope you understand my question. Cheers in accelerate for helping.

    • Howdy!
      Try to employ the recommendations described in this article: Count unique values with multiple criteria.
      If I understand your job correctly, the following formula should work for you:

      =IFERROR(ROWS(UNIQUE(FILTER($C$1:$C$10, ($A$1:$A$10=A1) * ($B$one:$B$10=B1)))), 0)

      You can copy this formula downward forth the cavalcade.

      • Karen says:

        Thanks and then much for reply.

        Sorry, forgot to tell. I'yard using Microsoft Excel 2010 and it don't have function UNIQUE and FILTER. Is there whatsoever functions suitable for Microsoft Excel 2010 in this situation?

        Thanks again.

        • Hi!
          Unfortunately, I do not know of a way to solve this trouble with your Excel version.

  2. Haziq says:

    Howdy,

    I desire to count what is the number of rooms based on the date entered and jail cell color. If at that place is no date entered, I don't want information technology to be counted. The rooms is arranged in multiple rows and column.

    As example, the total number of blue cells is 458. In that 458, 110 cells take engagement meanwhile the rest is empty. So, how practise I write formula for this as I am dealing with multiple colours as well.

    • Hello!
      To count the number of cells with a specific colour, y'all can use the user-divers function CountCellsByColor. You can find the examples and detailed instructions here: How to count and sum cells by color in Excel.
      Y'all tin define empty cells with the ISBLANK function.
      I promise this will help, otherwise don't hesitate to enquire.

  3. Grey says:

    Hi, I'm trying to count unique values with multiple criteria but nothing seems to fit what I demand.

    I have a canvas with data and a sheet with results within the same book.
    In a prison cell on the results sheet I am trying to count the number of unique items (task number) on the data canvas that lucifer two sets of criteria, because the same criteria could accept multiple lines under the same task number (for different months).

    Eg on the data sheet:
    Job# Calendar month Customer Status
    123 January Joe's jugs Closed
    123 February Joe's jugs Closed
    124 Jan Joe's lamps Open
    125 Feb Jim'due south tables Airtight
    126 February Joe'southward pots Closed

    I'g looking for the number of jobs on any account that belongs to Joe (so using a wildcard that Sumproduct tin't handle) that are closed, just with unique job numbers (due to the spillover of chore into other months). ie I'm trying to go a formula to requite me a outcome of 2 [job 123 and 126], merely tin't find anything that works. Closest I've come up is COUNTIFS, merely I can't remove the duplicate job numbers so it will give me iii [job 123 twice plus 126]. If I endeavour to incorporate UNIQUE into that I get a SPILL error.

    • How-do-you-do!
      Delight re-check the article to a higher place since it covers your task.
      Hither is the formula for your job:

      =COUNT(UNIQUE(FILTER(A2:A6,(C2:C6="Joe's")*(E2:E6="Closed"))))

  4. Chad Dewey says:

    Hello -
    I'g trying to count the numbers of new projects in a certain type of work. Within a project might be multiple jobs, so i'1000 trying to count the unique project number past job blazon.

    I'm using the IFERROR(ROWS(UNIQUE(range, criteria_range=criteria))), 0) formula, only it is not pulling the expected results. It too changes the results if the table is filtered differently.

    Is there a way to send you lot my excel sheet for more info?
    =IFERROR(ROWS(UNIQUE(FILTER("Range of Project #'south","Range of task Types"="Job Blazon expect for count of"))),0)

    Thanks!
    Republic of chad

    • Hullo!
      Please draw your task in more detail and send us a small sample workbook with the source information and expected result to support@ablebits.com. Please shorten your tables to ten-20 rows/columns and include the link to your blog comment.
      Nosotros'll look into your task and try to assistance.

  5. satish says:

    Hi, As per shared expample for Count unique values with criteria, I desire to detect the count of multiple sport for winners. Ways if Andrew having intrest in ii sports (like basketball- two and Hockey-ane). I want reply number ii.

    • Hi!
      Utilise another formula for counting unique values:

      =IFERROR(ROWS(UNIQUE(FILTER(B2:B10, (A2:A10=E5) ))), 0)

      E5="Andrew"

  6. Suku nair says:

    in sheet1 at A:A i have data as medicine names, At sheet ii from C:C i want to create autocomplete drop down list from the data , which should complete past merely ii-3 letters, based on data at sheet1

    please assist

    • Hello!
      Information Validation doesn't take an AutoComplete feature. You need to use Combo Box. To insert it, use the menu Developer > Insert > Philharmonic Box (ActiveX Control).

  7. Trevor says:

    Hi,

    I am trying to make up one's mind the amount of "New Customers" nosotros received in a given FY. This data has opportunities that are split between reps, giving me an extra "New Customer" since it has a unlike opportunity ID. I am trying to use countif in a cavalcade by "New Customer" while using Sumproduct on another column (business relationship name) to non count any "New Customers" that take the same business relationship name.

    • How-do-you-do!
      Unfortunately, without seeing your data information technology is hard to requite you whatsoever advice. Delight provide me with an example of the source data and the expected result.

  8. J says:

    I demand aid delight. I want to count the active months of production from a specific engagement, including the zeros.... how do I do this if all the dates are different?

    • Hello!
      You can get a list of desired months and years using the formula

      =IF(A2>Engagement(2021,i,ane),Calendar month(A2)&Year(A2),"")

      And then count the number of unique values in this list using this guide: Count unique and singled-out values in Excel.

  9. Morris Ikechukwu says:

    Hello All,

    How do I find the total sum of repeated count in a cavalcade? E.yard If I have A1, A2, A3, A3, A2, B2, B2. I want the sum of repeated count to be 6

  10. Leigh Burley says:

    Hi, I need help please!
    Im trying to summate how many unique commitment numbers I have that are
    A. under 30 days overdue
    B. inbetween 30 and 90 days overdue
    C. over 90 days over due.
    I've but tried =IFERROR(ROWS(UNIQUE(FILTER(Due east:E,C:C<31))),0) merely it's counting ones that are over xc days overdue too. is there something else I demand to exercise to stop this?

    • Hello!
      Give an case of the information that is written in column C. Is it a date, number, or text?

  11. Jeremy Berenger says:

    Hullo there,

    Thanks for the article - really helpful. I'g looking for a way to list the unique values across an entire table or array. For example my tabular array values look like:

    Apple Pear Orangish
    Banana Lemon Apple tree
    Orangish Assistant Pineapple
    Berry Lemon Apple

    I want to generate the listing of unique values only across the tabular array:

    Apple
    Pear
    Orangish
    Assistant
    Lemon
    Pineapple
    Berry

    Any advice on the best way to extract this would be much appreciated!

    • Hello!
      How to extract unique values from multiple columns you can read in this comment.
      I hope my advice volition assist yous solve your task.

  12. Kenma says:

    Hi. How can I count unique values under a column? I'grand trying to encounter how much client feedbacks there are. Let's say I want to know how many people said excellent or professional person.

    Column F
    1. very professional person and the service provided was excellent
    two. customer service was great
    3. professional
    iv. my trouble got resolved
    5. the woman I spoke with was excellent and professional

    • Hi!
      Your question has nothing to do with counting unique values. I recommend reading this guide: Excel formulas to count cells with text.
      Yous can use this formula:

      =SUM(--ISNUMBER(SEARCH($Thousand$1,A1:A5,one)))

      where K1="professional person" or another desired word.

      • Kenma says:

        Thank you for your help!

  13. Robert Wilson says:

    How-do-you-do there

    I take a dataset with an ID number in cavalcade A and a response of yep or no to 2 questions in columns B & C. I am trying to get an accurate chart of the results, where i have a unique count of ID Number for each of the iii outcomes to the two questions, YES & YES = Outcome i, Yep & NO = Outcome 2 and NO & YES is outcome 3.
    My trouble is that ID number 1 below has returned a dissimilar response to Q1 in the showtime row than it did in row 2. So my results return a value for ID number i in outcome one and also a value for result 3. Where an ID number answers YES in Q1 it should ever trump whatever additional response of NO. Then the unique count for Result 3 should non include ID Number ane.
    I can do it manually and notice the duplicates and remove the incorrect records, simply this is a long process as the dataset is quite big. I demand to automate this procedure in some way. Whatsoever help is most appreciated.

    ID Number Q1 Q2
    one Yes YES
    1 NO YES
    2 Yeah YES
    2 Yep Yep
    iii NO YES

    • Hello!
      If I got yous correct, the formula beneath will assist yous with your chore:

      =IF(IF(COUNTIFS($A$2:$A$x,A2,$B$ii:$B$10,"Yeah")>0,"Yep","No") & IF(COUNTIFS($A$2:$A$10,A2,$C$two:$C$10,"Yes")>0,"Yes","No")="YesYes",1, IF(IF(COUNTIFS($A$2:$A$10,A2,$B$ii:$B$10,"Yes")>0,"Yep","No") & IF(COUNTIFS($A$2:$A$10,A2,$C$ii:$C$x,"Yes")>0,"Yes","No")="YesNo",2,iii))

      I hope I answered your question. If something is still unclear, delight feel costless to ask.

  14. Somanath says:

    Hii Sir

    tin can u please articulate information technology

    if use one row bt dissimilar words and finally i want particular word count so what formula i tin can employ?

    • Hi!
      Your question is not clear. Explain in more detail.

  15. Fred Kerr says:

    I accept a spreadsheet of census data which contains the columns "Surname", "Given Name", and "Occupation". Frequently the data in each of these columns is the same (people with the same occupation, people who have the same surname, or given name). I want to create a formula which will identify each unique value in the column, and then count the number of instances of that unique item. And so for instance, I want to count the number of people who have a specific occupation. Or the number of people who take a specific surname, etc. I am using this formula to discover and sort the unique values in the column, and it is working fine:
    =SORT(UNIQUE(J2:J3135))
    What I'd like to add to it is " (nn)" at the end of the formula shown so that the output (for the occupation field) would await like this (where these are the unique values identified past the above formula in the J2:J3135 range):
    Amateur (xiv)
    Artist (1)
    Blacksmith (iv)
    Bookkeeper (2)
    Chaplain (3)
    ...etc.
    So far I am non having much luck adding the counting part of this.
    Many thanks in advance.

    • Hello!
      Yous can acquire more about counting unique values with criteria in Excel in this article on our blog.

      • Nick Fortino says:

        Hello Alexander,

        I am working on a spreadsheet that is live, and ever changing. The question asked above is the almost similar to what I am attempting to practise. The two cavalcade titles are "Task Number" and "Company". Here is an example:

        i Company A
        2 Company A
        3 Company B
        4 Visitor C
        5 Company D
        vi Company D
        vii Company E

        The UNIQUE part I am using is working correctly. Each Rep generally has fifty assigned "Chore Numbers". And so, In Cell C1, I enter the unique formula, and it outputs correctly:

        Company A
        Company B
        Company C
        Company D
        Company Due east

        What I would at present like to do, is link the output in Column C, with a Total in column D. With the end result being:

        Company A | 2
        Company B | 1
        Company C | 1
        Company D | 2
        Company E | 1

        From the article that yous linked above, I see how yous do this. Withal, equally jobs complete, that column is removed. This is why I would like to tie Column C and Column D. If Visitor B is completed and removed, This is what the data and then looks like:

        Company A | 2
        Visitor C | REF!
        Company D | ane
        Company E | two
        | 1

        I really hope this makes sense haha!

        • Nick Fortino says:

          However, every bit jobs complete, that ROW*** is removed. I repent.

        • Hello!
          The #REF error appears if y'all delete the cell that the formula refers to. Try using the IFERROR function.

  16. ROSH says:

    =COUNTIFS($J:$J,"name",$Due north:$Due north,"name") . one more cavalcade need to take and demand singled-out count from that . please help

  17. Pantalaeon says:

    Honey Ablebits,

    I am trying to find the number of unique agents who sold in one calendar week and didn't sell in the next calendar week. Similar in the table below, Amanuensis 3 and 4 sold in week i and didn't sell in week 2.

    Date Week Agent Name Sales
    i/1/21 1 Amanuensis 1 one
    1/1/21 1 Agent 2 1
    i/1/21 one Agent 3 1
    2/1/21 1 Agent 1 1
    2/1/21 ane Agent 2 1
    2/1/21 1 Agent 3 ane
    ii/ane/21 1 Agent 4 1
    3/1/21 1 Agent 1 1
    3/1/21 1 Agent 2 1
    3/1/21 i Agent iii 1
    9/one/21 ii Amanuensis 1 1
    nine/1/21 2 Agent ii one
    ix/1/21 two Agent five 1
    10/ane/21 2 Agent 1 i
    ten/1/21 2 Agent 2 ane
    10/one/21 two Agent 5 ane

    Using the unique count formula, I have tried using the formula below simply I have been getting the calc error -
    FILTER(Daily_sales_data!O2:O10839,(Daily_sales_data!K2:K10839=E2-1)*(Daily_sales_data!K2:K10839=(E2-2)))
    where;
    Daily_sales_data!O2:O10839 - similar to Amanuensis Name column above
    Daily_sales_data!K2:K10839 - similar to Week column above
    E2 = Calendar week three, then E2-1= Week two and E2-ii= Calendar week 1

    Can you help me know what I am doing wrong?

    • Hullo!
      Your data is written in A2:D17 and the week number is written in E1. To summate how many agents sold in calendar week 1 and non sold in week two, try the formula

      =SUM((COUNTIFS(C2:C17,UNIQUE(C2:C17),B2:B17,$E$1)>0)*(COUNTIFS(C2:C17,UNIQUE(C2:C17),B2:B17,$E$1+one)=0))

      Promise this is what you lot need.

  18. Lois Lee says:

    Hullo Experts,

    Reaching out to seek for your kind support.
    I desire to count the total unique numeric value in a columns that consist of different duplicates, each value should represent"1" count

    upshot for below cavalcade should be 6.

    Column B:

    1441
    1441
    1441
    80
    987
    987
    11
    11
    900
    540
    540

    many thanks!!

    • Hello!
      I don't empathise how you got the result 6.

  19. z says:

    thank you for the reply
    it answered and it didn't at the same time, topic you gave nd here is example:
    =IFERROR(ROWS(UNIQUE(FILTER(D2:D6, (A2:A6=J5) * (B2:B6=K5) * (C2:C6=L5) * (F2:F6=M5)))), 0)
    "J5 is 1, K5 is A, L5 is 1 and M5 is washed"
    here I accept multiple arrays, if (zone1->area1->type1is done) it will render (3)
    I desire to figure out how information technology will return "one"?
    every bit house no. ii & 3 are not done completely.
    firm no.ii only one product is done with production & delivery the other is non.

    ---A-------B------C-----------D--------------E-------------F---------------1000
    zone l area l type l business firm no. l product l production fifty delivery
    --i------- A ------ane-----------one------------ z1-------- done--------- done
    --i--------A ------ane---------- 1------------ z2-------- done ---------done
    --ane------- A ------1---------- 2------------ z1-------- done--------- done
    --1------- A ------1---------- 2------------ z2------------X--------------X
    --1------- A ------1---------- 3------------ z1-------- done--------- done
    --1------- A ------1---------- three------------ z2-------- done -----------X

    • Hello!
      The line "–i ——- A ——1 ———- 2 ———— z1 ——– washed ——— done" means that firm 2 is done.
      It is necessary to change the list of criteria and add together additional data to the table.

  20. z says:

    Hi Alexander,
    hope yous are well, I need help to make a formula to count unique value with multiple criteria, for example:
    count how many houses in (criteria1)zone 1,(C2)area A, (C3) type 1, done product,
    hence: if production is "done" for (1/2/three) products in a firm, then it count as ane.

    when I use sum frequency with multiple criteria information technology gives me error "too few conditions".

    A B C D Due east F G
    zone fifty expanse l type l house no. l production 50 production l delivery
    1 A 1 1 z1 washed done
    1 A 1 1 z2 done done
    1 A 1 2 z1 done done
    1 A 1 2 z2 done washed
    1 A 1 iii z1 washed done
    ane A i 3 z2 done done
    i A 2 one z1 washed washed
    one A 2 1 z2 done done
    one A ii i z3 washed done

    • z says:

      note: zones(1,2,3,iv) are not duplicates
      but for each zone -> surface area(1,2,iii) blazon(A,B,C..), business firm(1,2,3...), products(z1,z2) have duplicates.

  21. RENELYN DE GUZMAN says:

    The =UNIQUE formula does not exist. It just gave me #Proper name?
    How did you get that? or is there any other formula aforementioned results it show.

    • RENELYN DE GUZMAN says:

      Hello, how do y'all become a distinct list beyond multiple workbooks or worksheets?
      Besides, how do you combine VLOOKUP and alphabetize match.
      let say I accept existing list and I want to add listing from some other workbooks but that workbook is continuously adding upward a listing. been trying unlike formulas merely it's all not working or something is missing on the formula.

  22. Rasheed Quaye says:

    Howdy Ablebits Team,
    I have information (text) in a column say column A with another data (also text) in cavalcade B assigned to the each data in cavalcade A. I want a formula that can count the unique occurrences of the data in column A using the data in column B as reference.

    Data
    Column A Column B
    Leo A
    Pete C
    Bright B
    June A
    Mike C
    King D
    Diana D
    Alice C
    Bright B
    Leo A
    Tom B

    Results
    A = two
    B = two
    C = iii
    D = ii

  23. Mohammed says:

    Column A Column B Column C (Result)

    John 12345 1
    John 12345 0
    John 12345 0
    Peter 67890 1
    Peter 67890 0
    Peter 67890 0

    I want only the offset entry to exist counted equally ane in column C and the rest duplicate entries every bit 0.
    I want result in single Column C without introducing new cavalcade.
    I tried doing concatenate simply not working can u delight help.

    =IF(COUNTIF($A$2:A2,A2)=1,i,IF(COUNTIF($D$two:D2,D2)=1,i,"-")) - Working but the Name if repeats with dissimilar number it non counting every bit ane

    =IF(AND(COUNTIF($A$2:A2,A2),COUNTIF($D$2:D2,D2)=1),i,"-") - Working but the Name if repeats with different number it not counting as one

    Column A Column B Column C (Outcome)

    John 12345 1
    John 12345 0
    John 12345 0
    Peter 67890 1
    Peter 67890 0
    Peter 67890 0
    John 005002 1
    John 12345 0
    Peter 45678 i
    Peter 67890 0

  24. Mohammed says:

    How-do-you-do Alex,

    In a cavalcade A i accept many duplicate or repeated entries i want only the first entry to be counted as 1 in column B and the remainder indistinguishable entries as 0. can u please help me.

    Example
    Column A Column B
    12345 1
    12345 0
    23456 ane
    23456 0
    12345 0
    23456 0

    • Hello!
      Please utilize the post-obit formula

      =IF(COUNTIF($A$i:A1,A1)=1,1,0)

      You can learn more about COUNTIF function in this article.

      • Mohammed says:

        Howdy Alex,

        Thank yous so much Alex,

        in that location is one more than problem Can u please besides assist me for the below

        Column A Column B Column C (Effect)

        John 12345
        John 12345
        John 12345
        Peter 67890
        Peter 67890
        Peter 67890

        I want simply the first entry to be counted equally 1 in column B and the rest duplicate entries as 0.
        I want result in single Column C without introducing new column.
        I tried doing concatenate but not working tin can u please assistance.

        • Hi!
          Add together another condition and utilise the COUNTIFS role:

          =IF(COUNTIFS($A$i:A1,A1,$B$ane:B1,B1)=1,1,0)

          • Mohamm says:

            Thank you so much

  25. Daniel says:

    Howdy Alex,

    I have successfully practical the UNIQUE function, simply I want to meet how many times all unique (distinct) inputs were nowadays in the original column. For instance:
    A
    1
    1
    2

    The UNIQUE formula would requite me: 1 and 2. In addition I desire to see how many times the 1 and the 2 values were present in column A. Is this possible?

    Thanks, Daniel

  26. Tom says:

    Hello,

    I am looking for a method of how to return a list of cells and count with a fractional lucifer. I have used the formula below for returns with cells for a consummate match.

    =IFERROR(Index($A$2:$A$115, Lucifer(0, IF($C$2:$C$115="monitor", COUNTIF($H$6:$H6, $A$2:$A$115), ""), 0)),"")

    I have used the COUNTIFS role to listing the count for the partial matches simply it is not replicating the same outcome with fractional matches - is this possible?

    Thanks, Tom

    • Hullo!
      To count the number of partial matches of the word "monitor" in a range, utilize a formula like this:

      =SUM(--(ISNUMBER(SEARCH("monitor",B1:B25,1))))

      I promise this will help.

      • Tom says:

        Hi Alex,

        Apologies I forgot to mention that the list would be pulling the data from adjacent cells and and then populating the lists, i.e. column A has variables and column B has comments.
        - The formula I used in the opening statement pulls from a complete lucifer
        - The formula I need would be with a partial match

        I have sent an email to back up address with the workbook if it makes more sense!

        Cheers, Tom

  27. Mariliana says:

    I am trying to count unique value with criteria. The criteria are to recognize the word starting with letter A in the 2nd column. I changed the function FIND past SEARCH to utilise the mutiny but it is not working, maybe you can advise. I
    IFERROR(ROWS(UNIQUE(FILTER(G2:G2367,ISNUMBER(SEARCH("*A*",H2:H2367,1))))), 0)

    • Hello!
      Utilize a formula like this:

      =ROWS(UNIQUE(FILTER(A2:A10, IFERROR(SEARCH("A",B2:B10,1)=i,FALSE))))

      I promise information technology'll be helpful.

  28. Bedig says:

    I have many columns where each one has different dates
    For example Column A
    Box A1 is 02/24/2021
    Box A2 is 02/25/2021
    Box A3 is 02/26/2021
    Box A2 is 02/24/2021
    I should Know the appointment 24 how many times is found in this Column and put it in a Box and Multiply it By five$
    Then: IF Column A has let's say 3 times (02/24/2021) that means iii 10 5$ should exist equal to 15$
    How Can I practise this???

    • Hi,
      To count how many times a value appears in column A, use the COUNTIF function.

      =COUNTIF(A1:A100,D1)

      where D1 -- 02/24/2021

      I hope I answered your question. If something is still unclear, delight feel free to enquire.

  29. Bedig says:

    Hello there I need a favor.
    I need someone to help me to put a formula in a excel
    I use the 2016 Version
    can anyone help me?

    • Hi,
      For me to exist able to aid yous ameliorate, please describe your chore in more particular. Please specify what you were trying to observe, what formula you used and what problem or error occurred. Give an example of the source data and the expected issue.
      It'll help me sympathize it better and find a solution for you lot.

  30. Christina says:

    Hi there, thank you for this very helpful tutorial! I've created the below formula based on your tips:

    =IFERROR(ROWS(UNIQUE(FILTER('All Session Data'!$K:$Yard,('All Session Data'!B:B=EN1)*('All Session Data'!C:C=EN2)*('All Session Information'!I:I=EN4)*('All Session Data'!R:R=EN9)*('All Session Data'!T:T=EN8)))),0)

    The formula is supposed to count all unique values in column K based on the 5 criteria I've listed. I'm getting a 0 for the result. I'one thousand working with 24,500 rows in Google Sheets. Any suggestions for a solution?

  31. Jens Bay says:

    Howdy

    I have three collums with like values, the goal is to notice the values occuring the most.

    I want to detect the unique values in the two/three collumns and apply a countif statement. However, whenever i use unique on more than than one collumn its registered as unique rows rather than analysing the individual cells - how is this mitigated?

    Best Regards
    Jens

    • Hello!
      Your start phrase contradicts the second phrase. Do y'all want to find the most common values or unique values?
      Based on your clarification, information technology is hard to completely understand your task. I am assuming y'all want to excerpt unique values from cells of multiple columns.
      However, I'll endeavor to guess and offer you the following assortment formula:

      =INDIRECT(TEXT(MIN(IF(($A$two:$C$9<>"") * (COUNTIF($E$ane:E1,$A$two:$C$9)=0), ROW($ii:$9)*100+COLUMN($A:$C),7^8)),"R0C00"),)&""

      Assuming your values are in the range A2:C9, enter the formula in cell E2.
      In the in a higher place formula, A2:C9 indicates the range of cells from which you desire to extract unique values.
      E1 is the commencement cell in the column where yous want to place the issue.
      $2:$9 is the rows containing the cells you lot desire to utilise.
      $A:$C indicates that these columns contain the cells yous desire to use. Please change them to your own.
      Press Shift + Ctrl + Enter and then drag the fill handle to extract unique values until blank cells appear.

  32. Vita says:

    How-do-you-do,
    I take data, let's say A to F, A to E is the criteria and i need to count singled-out or unique from column F with criteria from A to E, simply all i got is non how much singled-out counts, information technology's merely count how much times the indistinguishable is. Tin you help me ?

      • Vita says:

        Hi, thank you for your feedback.
        I already tried that way but i recall i have different information then i'm a bit confused where to put. Refer to your link, data has repetition, while i already deleted duplicate ones so it's unique. Tin i nonetheless use that formulas and put it in C2 ?

        • Howdy,
          Unfortunately, without seeing your data it is incommunicable to give you advice.
          Could you please describe your task in more detail and send us a small-scale sample workbook with the source data and expected result to back up@ablebits.com? Please shorten your tables to ten-20 rows/columns and include the link to your blog comment.
          We'll look into your task and try to help.

  33. Neil says:

    I have data which records in the Cell the year the equipment is being replaced. I have in some other cell the cost of all equipment purchased. I would similar excel to give me the total cost of equipment replacement in each of the following 5 years. Dates have been setup to have a total afterwards excel searches the yr and adds the amount. Could y'all assistance please.

    • Hello!
      I'thousand sorry but your task is non entirely clear to me.
      Delight describe your problem in more particular. Include an example of the source data and the result you want to get. It'll help me understand your request better and find a solution for you.

  34. EB says:

    I accept a formula I use simply this one does not count distinct numbers

    =IF((COUNTIFS(Data!$J:$J,A8,Data!$I:$I,'Staff Enc'!$B$4))=0,"",(COUNTIFS(Data!$J:$J,A8,Data!$I:$I,'Staff Enc'!$B$4)))

    Does anyone have a proposition on how to do something like but count distinct numbers?

    I can transport a sample report of how the formula works for me. Don't see were I could post it though.

    • Hi,
      I'm sorry, it is not very clear what result you desire to get. Could you please draw your task in more item and transport us a pocket-size sample workbook with the source information and expected outcome to back up@ablebits.com? Delight shorten your tables to ten-20 rows/columns and include the link to your blog annotate.

      We'll expect into your task and attempt to help.

  35. Rough Lily says:

    Thanks, your "Count unique values with multiple criteria" section worked a treat!

  36. AGM says:

    Hi all,

    Trying to discover a formula for a stock portfolio and it seems i struggle a lot.

    I take a DB of purchases and sales in one tab (cavalcade with portoflio names - 5 and column with the ticker) and a summary page where i have all stocks and their performances with eventual rebalancing actions to be taken.

    What I want to make sure is that the number of stocks reported in the summary page are the unique number of stocks i have in the db tab (aim is to get a warn if i didn't include a new bought or sold stock in the summary page as rebalancing may be wrong

    Status 1: Unique stock counts (number of - in the DB i take more purchases of the same stock)
    Condition ii: Count of Unique stock number among v different portfolios.

    I hope i clarified it and cheers in advance!

  37. Chandrika says:

    count unique values with the below data

    Sales Person Items Account
    A X XYZ
    A X XYZ
    A Y ABC
    B Ten PQR
    C Z MNL
    C Y HGF
    D Ten MTR
    D Y GTR

    • Hullo!
      I promise you have studied the recommendations in the tutorial higher up. It contains answers to your question. If you depict your problem in item, I volition effort to help you lot.

  38. Alex Roth says:

    Hullo,

    Im trying to count all cells with unique values within a cavalcade range (K2:K101) excluding whatsoever cells with value 0.
    I believe the formula should look something like =COUNTA(UNIQUE(FILTER(K2:K101, K2:K101"0"))) nonetheless this consistently gives me incorrect results.
    Do you accept suggestions?

    • Hello!
      If I got you right, the formula below will assist you with your chore:

      =COUNTA(UNIQUE(FILTER(K2:K101, K2:K101<>0)))

      I hope my communication will help you solve your task.

  39. Benjamin Altman says:

    I want to detect if there are multiple offering types listed in column F so I basically desire to notice all unique cells in column F containing the word "offer" (unique in the sense that if some text with "offering" occurs multiple times it should only exist considered one time). I experimented based on your article and came upwardly with this which worked:
    =SUM(--ISNUMBER(SEARCH("offer",UNIQUE($F:$F))))

    Is it possible to practice something similar but across multiple worksheets? Doing this didn't piece of work:
    =SUM(--ISNUMBER(SEARCH("offer",UNIQUE('Sheet1:Sheet3'!$F:$F))))

    Thanks!

    • How-do-you-do!
      If I understand your chore correctly, the following formula should work for you:

      =IFERROR(ROWS(UNIQUE(FILTER(F:F, ISNUMBER(Notice("offer",F:F,1))))),0)

      I promise it'll be helpful.

  40. Sian Sands says:

    Hello, I am hoping yous can assist me with the beneath.

    If column C within my data matches the date I am looking for I would similar to count the unique text values within column Thousand.

    I have tried diverse options using a google search. If you could send me a simplified explanation that would be swell.

    Cheers.

    • Howdy!
      Unfortunately, without seeing your data information technology is hard to requite you any communication.
      Date matching can exist checked using the IF function. If the status is met, use the unique values formula from the section in a higher place.
      Delight draw your problem in more than particular. It'll help me understand it better and observe a solution for you lot.

  41. Waseem Akram says:

    Hi,
    I have duplicate Numeric Data in Column A, against the jail cell B with a different unique Names and want to unique count in column C with every unique Proper noun.

    Please anyone guide me...

  42. Nicolas says:

    How-do-you-do! Is there a way to list (and keep updated) unique values from multiple worksheets? EG: I have sales report in tables in sheets per month (Jan, Feb, Etc). I would like to listing unique values (EG: Client) across all active sheets. Thanks!

  43. Kelly says:

    Hi Experts,

    Tin you please help me, I am not the best at Excel but I effort!

    I need to find a simple way of counting the unique customer count confronting a item Salesman. I can go the total unique values no trouble and if I split downwardly the Salesman that is fine also simply I would like one formula rather than splitting the information every time i need to do this report!

    Help! I'one thousand using O365

  44. Deepak Kumar Sahu says:

    you tin use Flash fill or Power Query

  45. Prof. Dr. Elias Yard. Choueiri says:

    As usual, your tutorial gets directly to the point in a friendly manner. I encourage everyone to follow your tutorials 'cause they present the steps needed to accomplish a sure task in Excel in an piece of cake way.

    Go on upward the keen piece of work, and many thanks for the professional work you spread around with your tutorials!

    • Dear Dr. Choueiri,

      Thank you very much for your feedback! I am happy to hear y'all had a positive feel with our tutorials. We will do our best to keep upwardly and (hopefully!) ameliorate.

  46. Yogesh Suvarna says:

    Hi ,
    I demand assist with count distinct in the below table-
    Variant Subcat CustomerCode CustomerName ProductName Jan Feb
    CREAM CREAM 6079 AL AHLI S/Grand CHOCOLATE Foam 11105026 21 5
    Foam Foam 6079 AL AHLI S/M MANGO CREAM 11105029 21
    Cream Cream 6079 AL AHLI Southward/M ORANGE Foam 11105028 21 4
    CREAM CREAM 99 AL DHAFRA SM ORANGE Foam 11105028 21
    CREAM PROMO 99 AL DHAFRA SM Foam BISC 11205001 269 xxx
    CREAM Foam 7935 AL DOURIZ CHOCOLATE Foam 11105026 21
    Foam CREAM 7935 AL DOURIZ MANGO CREAM 11105029 22 4
    CREAM CREAM 4900 AL MADINA HYPERMARKET MANGO Cream 11105029 21
    Cream Foam 4900 AL MADINA HYPERMARKET ORANGE Cream 11105028 21

    Cream CREAM No of customers who purchased Variant Cream four three
    Foam PROMO 1 one

    I need to count the no of customers who purchased cream under each month , irrespective of the flavor.
    In the tabular array , no of people who purchased cream was Jan - iv , feb -3
    Similarly people who purchased cream promo was January =1 and Feb =i.
    Countif office counts all the product names as well .

    • Howdy!
      If the Jan and Feb columns are the numbers of buyers, and so y'all tin use the SUMIFS function to detect the sum for those columns with sure conditions.
      I hope information technology'll exist helpful.

  47. Beatriz Amador says:

    Why if I put this formula
    =IFERROR(ROWS(UNIQUE(FILTER(C2:C210,J2:J210=J2))), 0), it go me some value
    if I increment the range from 210 to for example 400... It gives me 0 as event?
    thanks

    • Hello!
      As my personal experience shows, the UNIQUE function does not work correctly with large information sets. It returns 0, as y'all did.

      • Robert says:

        Oh, that's great; I'm working with 66,000 rows and for hours cannot figure out why I get zero'southward.

        At least I tin move on after reading this comment, thank you.

  48. Simone says:

    Hello,
    Your formulas an explanantions are very helpful thanks! I am struggling with getting the correct results and I'm non sure where the event is. This is the formula I'm using, and it'due south giving me a reulst of 0 for all...
    =IFERROR(ROWS(UNIQUE(FILTER(Table_SDCdata[Site], (Table_SDCdata[Format]=[@Format]) * (Table_SDCdata[Region]=[@Region])))), 0)

    Just for the information size example: Main table I'one thousand counting and filtering has 37 columns and 140 500 rows.
    So it's suppose to count the unique 'Site' values in the Main tabular array (becuase at that place are many duplicates) if the 'Region' and 'Format' matches that in the current table.
    I used "=COUNTA(UNIQUE(FILTER(" before but it was giving a value of "ane" for everything if I apply it on large data sets, for smaller ones it works. From what I read online "COUNTA" doesn't work well with big data sets, so I take to find an alternative. Whatever reason equally to why information technology's non working? Will information technology besides exist because of the data size?

    • Hello!
      Unfortunately, without seeing your data information technology is impossible to requite you communication.

      I'chiliad deplorable, it is not very articulate what result you want to get. Could you please describe your task in more detail and send us a small sample workbook with the source data and expected outcome to support@ablebits.com? Please include the link to your weblog comment.

      We'll look into your task and try to help.

      • Simone says:

        Hi,

        Cheers in advance for the help: I've emailed the sample file as requested.

        What I'm trying to attain is the following: Count all the unique 'Site' codes in the Main tabular array, if the 'Region' and 'Format' matches that from the template table. There are many duplicates in the Masterfile for each site that matches the region and format, therefore I only desire to count unique in one case. A modest example (in instance anyone else reads the mail for future):
        MASTER TEMPLATE
        Format Region Site Format Region Count
        Corp EC EC1 Corp EC ii (This would be EC1 and EC2)
        Corp WC WC1 Fran EC 1
        Fran EC EF1 Exp EC one
        Exp EC EE1 Fran EC 1
        Corp EC EC1 Fran EC 1
        Fran WC WF1 Corp EC 2
        Corp EC EC2

        • Hello!
          Your formula is working correctly. However, Excel does non piece of work correctly with and so much data. If you supercede your formula with

          =IFERROR(ROWS(UNIQUE(FILTER($B$2:$B$1000, ($A$ii:$A$1000=A2) * ($D$two:$D$yard=D2)))), 0)

          then it counts the number of unique values correctly.

          An alternative option for counting unique values by 2 atmospheric condition is

          =SUMPRODUCT((($A$ii:$A$10000=A2) * ($D$2:$D$10000=D2)) / COUNTIFS($A$2:$A$10000, $A$ii:$A$10000, $D$2:$D$10000, $D$ii:$D$10000, $B$2:$B$10000, $B$ii:$B$10000))

          This formula likewise works correctly, simply if you increase the range to 100,000 rows, it returns 0.

  49. Ani says:

    Hi,
    I have a sheet where there are multiple rows for a given text in a column, i need to pull data if in that location is only one unique row , if there is more than ane row then demand to brandish the number of rows

    • Hello!
      If I understand your task correctly, the following formula should work for you:

      =IF(COUNTA(UNIQUE(A2:A10))>1,COUNTA(UNIQUE(A2:A10)),A2)

      I hope this will help

  50. Rakesh says:

    is in that location any manner to count the unique value based on a text string in another column ?
    In the in a higher place case, count the unique values , if the other cavalcade comprise "ball" ( basketball /Volleyball )

    • Howdy!
      If I empathize your task correctly, the post-obit formula should work for you lot:

      =IFERROR(ROWS(UNIQUE(FILTER(A2:A10,ISNUMBER(Notice("brawl",B2:B10,1))))), 0)

      I hope this will help

  51. Jack says:

    Hello, I'thou trying to count unique individuals whose work location(s) are Ashburn (Column E) which could exist depicted equally 123 main st., Ashburn VA. An private (Column A) can piece of work at multiple Ashburn locations but I am only interested in counting them once. Equally an example, in that location are ix people working in Ashburn locations, but there are only iii unique individuals working in Ashburn. I've looked at tons of examples but I simply can't get any of the formulas to work. Whatever ideas?

    • Hello!
      I hope y'all accept studied the recommendations in the in a higher place tutorial?
      I recommend reading this section to a higher place on calculating unique values by condition.

      • Jack says:

        Thank y'all Alexander, I am having trouble with the criteria information (E1) in your example. I am trying to use wild cards to capture multiple Ashburn locations, Ashburn one, Ashburn 2, etc. I've used wildcarding before just I can't get this correct. Everything else in my formula works.

        • Howdy!
          If I empathise your job correctly, the following formula should work for you lot:

          =IFERROR(ROWS(UNIQUE(FILTER(A2:A10,ISNUMBER(FIND(E1,B2:B10,1))))), 0)

          Cell E1 contains "Ashburn"

          Hope this is what you need.

  52. Anthony Emmanuel says:

    some unremarkably use office in excel explan with example

  53. Petrine says:

    Hi,
    Thanks for this! Can you help me how to implement an extra condition? In your case it would correspond to adding the criteria of Age greater then 16 but beneath 19. When calculation an extra condition information technology just counts 0 which is not the right case. Meet below implementation:
    =IFERROR(ROWS(UNIQUE(FILTER(A2:A10, (B2:B10=F1) * (C2:C1016))), 0)

    • Howdy Petrine,

      You just need to add each status separately, like this:
      =IFERROR(ROWS(UNIQUE(FILTER(A2:A10, (B2:B10=F1) * (C2:C10>sixteen) * (C2:C10<19)))), 0)

  54. Alfred Peverelli says:

    Tab Unique values multiple criteria, when entering a value of ten in F2, then E5 displays a #CALC! mistake message every bit expected, but F5 displays a value of 1 equally COUNTA besides calculates the cell which contains a string. Using such a formula may render incorrect results, which aren't very obvious for users, without thorough checking. Unfortunately cannot utilize the COUNTBLANK formula to add to the existing formula and decrease records when containing a string to come to the correct result. Whatever other workaround?

    • Hello Alfred!
      Cheers for pointing out this issue! Nosotros will bank check all the formulas in this tutorial for "non-matched" criteria and set the erroneous ones.

      In the meantime, y'all can use these formulas:
      E5
      =IFERROR(UNIQUE(FILTER(A2:A10, (B2:B10=F1) * (C2:C10<F2))),"")

      F5
      =SUM(--Non(ISERROR(UNIQUE(FILTER(A2:A10,(B2:B10=F1)*(C2:C10<F2))))))

      I promise information technology'll be helpful.

    • How-do-you-do Alfred,

      Give thanks yous very much for communicable this error! And my apologies for not testing the formula when the criteria are not met. In addition to Alexander's response, I can suggest the post-obit solution:

      Yous can apply the ROWS part to count unique entries (unlike COUNTA, it does not count error values) and IFERROR to trap all kinds of errors and supervene upon them with 0. So, the formula in F5 would get equally follows:

      =IFERROR(ROWS(UNIQUE(FILTER(A2:A10, (B2:B10=F1) * (C2:C10<F2)))), 0)

      We have updated this and a few other formulas in this tutorial. Thank you for helping me make this post a piffling amend :)

  55. Jeffry says:

    Farewell to Ablebits Team!

    i have a column of dates with ten entries (Random time to come dates) for each x unlike material, i wanted to have a notification that would tell me how many of those materials will expire 30 days before the dates mentioned in their respective columns. whatsoever aid would do.

    • Hello!
      If I sympathise your job correctly, the following formula should work for you:

      =SUM(--(D1:D10<(TODAY()+30)))

      Hope this is what yous need.

  56. Ben says:

    Honey experts,
    I saw an article on getting distinct values. While i understand the assortment distinct formula, i am not able to sympathise the regular singled-out formula.
    MATCH(0, Alphabetize(COUNTIF($B$1:B1, $A$2:$A$x), 0, 0), 0))
    not sure why there is a index function as it always return a value of 1 instead of an array not matter what is the range of column "B". Instance MATCH(0, Alphabetize(COUNTIF($B$1:B3, $A$2:$A$x), 0, 0), 0))
    However, I tested this formula, it works. Merely practice not empathise the rationale behind how this works.

  57. Shashikumar H says:

    Dark Chocolate 25gm box 12 pcs
    Night Chocolate 20gm*24 box
    White Chocolate 15gm
    White Chocolate 25gm*24
    Biscuits W/Marshmallow300gm
    Chocolate 40gm
    Can some plz assistance to extract the numbers before "gm", for example : 25,20,15,25,300,40

  58. Sunil Pinto says:

    Dear Ablebits...
    Delight help me to gear up this task
    I have data in "A" cavalcade and input in "B" cavalcade and required effect is in " C" cavalcade.
    I already constitute the result is in "E" Column. But this result needs to fix the corresponding raw of the A Column.

    Data1 Data2 Required Result Formula
    i 2 1 1
    v five 7
    7 nine 7 11
    nine 16 11
    nine 25
    11 11 25
    eleven xi 33
    16 35
    sixteen 58
    25 25 sixty

    Array Formula in E2 Column is :=IFERROR(IFERROR(INDEX($A$2:$A$21, Modest(IF(COUNTIF($B$2:$B$21,$A$two:$A$21)=0, Lucifer(ROW($A$ii:$A$21),ROW($A$2:$A$21)), ""), ROWS($Due east$two:E2))), Alphabetize($B$2:$B$21, Minor(IF(COUNTIF($A$2:$A$21,$B$ii:$B$21)=0, Match(ROW($B$2:$B$21),ROW($B$2:$B$21)), ""), ROWS($Eastward$2:E2)-SUM((COUNTIF($B$2:$B$21, $East$2:$E2)=0)+0))))," ")

    • Hullo!
      I'm sad but your task is not entirely clear to me. What do y'all want to find with your formula? Could you please describe it in more detail? Thank you!

Post a comment

How To Count Unique Items In A Column In Excel Adjust For Data Filter,

Source: https://www.ablebits.com/office-addins-blog/2020/06/10/count-unique-values-excel/

Posted by: sylvestershent1937.blogspot.com

0 Response to "How To Count Unique Items In A Column In Excel Adjust For Data Filter"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel