Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Spreadsheets (https://www.askmehelpdesk.com/forumdisplay.php?f=395)
-   -   How to Count Differences in Excel (https://www.askmehelpdesk.com/showthread.php?t=197005)

  • Mar 21, 2008, 08:34 AM
    JBeaucaire
    How to Count Differences in Excel
    I have to believe this is possible, but I'm stumped. If I have a list:

    Dog
    Dog
    Cat
    Cat
    Hamster
    Dog
    Cat
    Bird


    I want a formula that will search Column A and tell me how many different things are in there... in this instance Formula result = 4

    Any ideas?
  • Apr 16, 2008, 03:54 PM
    MaggieMouse
    you can look up help in excel-count unique value among duplicates.
  • Apr 17, 2008, 06:57 AM
    mdosh01
    Enter "Count unique values" in Excel help and you will get two different methods. One is to use a filter, but I'll assume you prefer to use a function. Their example is for comparing two lists. In this case we only have one so you can use the following:

    =SUM(IF(FREQUENCY(MATCH(B2:B9,B2:B9,0),MATCH(B2:B9 ,B2:B9,0))>0,1))

    This assumes your list is in cells B2 to B9. There cannot be any blanks in the list for this to work. Don't ask me how it works. I haven't bothered to figure it out.

  • All times are GMT -7. The time now is 12:02 PM.