+ Reply to Thread
Results 1 to 16 of 16

Count unique value in range based on another range

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Count unique value in range based on another range

    Hi,
    I have a range sheet1 d10:d300

    If i input a unique value in range sheet2 f10:f1000
    Then count the unique value
    For example
    In sheet1 d10:d300 i have 1'2'3'7

    I input some value
    Sheet2 f10:f1000 = 12345679

    Now count the unique value
    Answer is = 4 (4'5'6'9)
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Count unique value in range based on another range

    I am not clear concerning the relative layouts and cell contents in your description.

    It would save time and clarify if you upload a sample Excel file.

    Given you have over 1500 posts I'll assume you already know how to do this.
    Dave

  3. #3
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Count unique value in range based on another range

    Here is screenshot
    1.JPG
    2.JPG

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Count unique value in range based on another range

    Edit: Deleted
    Last edited by 63falcondude; 06-16-2017 at 01:17 PM.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Count unique value in range based on another range

    Try array entering this formula in E4 of Sheet2. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Count unique value in range based on another range

    Another way non array entered.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Count unique value in range based on another range

    HI,
    thank you for the reply

    i used your formula in this way in range O4
    Please Login or Register  to view this content.
    i have no value in range f10:f1000 and entry!d10:d300
    but its showing in O4=991?

    i need as a result o4 = 0

    if i add unique value in range f10:f1000 which one is not in the list of ENTRY!D10:D300 then count that value in range O4


    thank you

  8. #8
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Count unique value in range based on another range

    I Think i was asking a wrong question about my need

    i want to count of list f10:f1000 only value which one are not available in range ENTRY! D10:D300

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Count unique value in range based on another range

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  10. #10
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Count unique value in range based on another range

    Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  11. #11
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Count unique value in range based on another range

    sample workbook is here
    Attached Files Attached Files

  12. #12
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Count unique value in range based on another range

    sorry again wrong question asked by me

    actually i want to compare two list from different sheets
    list1 and list2

    count WHAT?

    Count those values of list1 which are not in list2

    list1 = 1,2,3,4,5

    list2 = 1,2,3,4,5,6,7

    now if we compare list1 and list2

    in list two 6,7 is not in list1
    and this is the answer

    count = 2

    thank you
    hope you will understand

  13. #13
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Count unique value in range based on another range

    Try

    H3
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  14. #14
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Count unique value in range based on another range

    Please ignore blank cells if i increase range of formula

    Please Login or Register  to view this content.
    this formula counting blank cells too

  15. #15
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Count unique value in range based on another range

    Try

    H13
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  16. #16
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Count unique value in range based on another range

    Ek Dum Perfect

    thank you very very much for your precious time

    dear

+ 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. Replies: 14
    Last Post: 03-19-2017, 08:11 AM
  2. Adding a date range to a unique data count based on multiple criteria
    By Matthew_Smith86 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-10-2015, 08:50 AM
  3. [SOLVED] count based on range and unique value
    By boltsg4 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-07-2015, 07:44 AM
  4. [SOLVED] Count unique text values within a range based on another column
    By Sebastes in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-14-2014, 01:38 PM
  5. [SOLVED] COUNT unique reference numbers based dates in a specified date range
    By 3PDM in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-14-2012, 08:50 AM
  6. Replies: 6
    Last Post: 03-31-2009, 11:17 AM
  7. count unique cells in range based on date
    By leedsd75 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-09-2007, 02:04 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