+ Reply to Thread
Results 1 to 9 of 9

Count in the given range with 1 condition duplicate as unique

  1. #1
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    657

    Count in the given range with 1 condition duplicate as unique

    Hello Friends

    Please find the attached excel 2010 file.

    I need to values in column B for the given date range by making duplicates as unique.

    For the given example the result should be 5 since 72405, 74717, 73478, 79830, 76063.

    For the same value date will not vary i.e, even 76063 may repeats 4 times then the date for 76063 will be same for 4 places.

    thanks in advance.
    Sekar

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: Count in the given range with 1 condition duplicate as unique

    what about 73921
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    657

    Re: Count in the given range with 1 condition duplicate as unique

    Sorry,

    The result should be 6 including 73921 please read as `For the given example the result should be 6 since 72405, 74717, 73478, 79830, 76063, 73921.'.

    thanks for the qry.

  4. #4
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    657

    Re: Count in the given range with 1 condition duplicate as unique

    Sorry,

    The result should be 6 including 73921 please read as `For the given example the result should be 6 since 72405, 74717, 73478, 79830, 76063, 73921.'.

    thanks for the qry.

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: Count in the given range with 1 condition duplicate as unique

    then try below array formula (Shift+Ctrl+Enter)
    =SUM((FREQUENCY(IF($C$2:$C$36>=$E4,IF($C$2:$C$36<=$F4,MATCH($B$2:$B$36,$B$2:$B$36,0))),ROW($B$2:$B$36)-MIN(ROW($B$2:$B$36))+1)>0)+0)
    Please Login or Register  to view this content.

  6. #6
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Count in the given range with 1 condition duplicate as unique

    Try with in "G4"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Array formula (SHIFT+CTRL+ENTER)


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  7. #7
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Count in the given range with 1 condition duplicate as unique

    Try with in "G4"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Array formula (SHIFT+CTRL+ENTER)

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

    Re: Count in the given range with 1 condition duplicate as unique

    Try this ...

    =SUM(IF((C2:C36>=E4)*(C2:C36<=F4),1/COUNTIFS(C2:C36,C2:C36,B2:B36,B2:B36)))

    Array formula, enter with Ctrl+Shift+Enter.
    Last edited by Phuocam; 01-25-2017 at 07:56 AM.

  9. #9
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    657

    Re: Count in the given range with 1 condition duplicate as unique

    Hello Siva, AVK, Phuocam

    All of your array formulas working well. Thanks for this formula which is saving my manual calculation work.

+ 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] Count Unique Values in a Range with Condition
    By vij8y in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-28-2015, 05:45 AM
  2. [SOLVED] Count then Delete Duplicate Values and put count next to now unique value
    By flipjarg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-12-2014, 04:22 PM
  3. Replies: 0
    Last Post: 08-11-2014, 12:52 PM
  4. Count unique value in a range of cell with a given condition
    By Kehjz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-29-2014, 01:21 AM
  5. Count unique values within a range that meet a specific condition
    By CSS in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 06-24-2013, 02:00 PM
  6. [SOLVED] Challange - Need to count # of unique names in a range WITH A CONDITION
    By vij8y in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-11-2013, 05:14 PM
  7. [SOLVED] count duplicate (or, inversely, unique) entries, but based on a condition
    By markx in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-08-2005, 03:06 PM

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