+ Reply to Thread
Results 1 to 12 of 12

Count unique text values with criteria

  1. #1
    Forum Contributor
    Join Date
    01-19-2011
    Location
    Bucharest
    MS-Off Ver
    Excel 2016
    Posts
    133

    Count unique text values with criteria

    I need a little help.
    I'm trying to get the unique text values (column C of the attached file), depending on column B that contains numeric values - the calendar date.
    Finally, I want to get something like: for date 01/09/2017 - unique text values (name), for date 02/09/2017 - unique text (name), ..... etc.
    I tried the formula in this tutorial https://exceljet.net/formula/count-u...-with-criteria but something I get rid of ...
    Thanks for any help.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Count unique text values with criteria

    d7 =B7&C7

    e7 =IF(COUNTIF($D$7:$D7,$D7)=1,"yes","no")

    after that a pivot table.

    The result is 35 for 01-09 and the result is 35 for 04-09

    The above results are incorrect, I changed the solution in #4
    Last edited by oeldere; 09-10-2017 at 07:43 AM. Reason: The above etc
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor
    Join Date
    01-19-2011
    Location
    Bucharest
    MS-Off Ver
    Excel 2016
    Posts
    133

    Re: Count unique text values with criteria

    thx. but in september -01.09.2017 are 17 unic text value not 35 - see formula in f7.... i find this tutorial https://www.get-digital-help.com/201...eria-in-excel/ but i dont know how to adapt to my case.
    Last edited by andrugrasu; 09-10-2017 at 07:09 AM.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Count unique text values with criteria

    your right, my result is not OK.

    It should be 24 and 22.

    I added a slicer to get the result.

    Please explain why you think the result should be 17.

    Please show that 17 names manualy in your file.

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,907

    Re: Count unique text values with criteria

    Or try this:

    =SUM(IF(B7:B76=B4,1/COUNTIFS(B7:B76,B4,C7:C76,C7:C76)))

    Array formula.

  6. #6
    Forum Contributor
    Join Date
    01-19-2011
    Location
    Bucharest
    MS-Off Ver
    Excel 2016
    Posts
    133

    Re: Count unique text values with criteria

    You're right. My value is not correct. Your result is correct .... but how can I have the same result without pivot tables and slicer?

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Count unique text values with criteria

    @Phuocam

    You formula will work, but probably not in the Excel 2003 version, since countifs is not available in that version.

    @andrugrasu

    You are actualy using excel 2003?

  8. #8
    Forum Contributor
    Join Date
    01-19-2011
    Location
    Bucharest
    MS-Off Ver
    Excel 2016
    Posts
    133
    Quote Originally Posted by oeldere View Post
    @Phuocam

    You formula will work, but probably not in the Excel 2003 version, since countifs is not available in that version.

    @andrugrasu

    You are actualy using excel 2003?
    no ...i use excel 2016

  9. #9
    Forum Contributor
    Join Date
    01-19-2011
    Location
    Bucharest
    MS-Off Ver
    Excel 2016
    Posts
    133
    Quote Originally Posted by Phuocam View Post
    Or try this:

    =SUM(IF(B7:B76=B4,1/COUNTIFS(B7:B76,B4,C7:C76,C7:C76)))

    Array formula.
    thx. i will try your formula.

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Count unique text values with criteria

    Then please update your profile to excel 2016.

  11. #11
    Forum Contributor
    Join Date
    01-19-2011
    Location
    Bucharest
    MS-Off Ver
    Excel 2016
    Posts
    133

    Re: Count unique text values with criteria

    i have made the profile update. @Phuocam thx for formula. working perfect. thx oelder for your help.

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Count unique text values with criteria

    You're welcome. We appreciate the feedback!

    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

    It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Formula to count unique values & text with reference to two criteria
    By siddiq1212 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-25-2017, 01:00 AM
  2. [SOLVED] Count unique values if 2 other criteria are met
    By sted999 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-30-2014, 11:53 AM
  3. Count unique text values using criteria
    By roadbiker in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-27-2013, 12:13 PM
  4. Replies: 5
    Last Post: 05-31-2012, 08:48 AM
  5. Count unique text values in range with criteria
    By cdiaz in forum Excel General
    Replies: 3
    Last Post: 07-15-2011, 10:43 AM
  6. Count Unique Values with criteria
    By mashley in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-08-2010, 02:00 PM
  7. Replies: 17
    Last Post: 08-24-2009, 08:58 AM

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