+ Reply to Thread
Results 1 to 9 of 9

Count uniques matched on range, but if match reference is twice, count twice

  1. #1
    Registered User
    Join Date
    10-14-2017
    Location
    Miami, Florida
    MS-Off Ver
    2016
    Posts
    83

    Count uniques matched on range, but if match reference is twice, count twice

    Hi,

    I don't know how to figure it out the right formula, i thnk is complex what i need to solve,
    First let me explain the first ecenareo :
    I have numbers to be match (A1:E1)
    Need to count how many Uniques numbers from (A1:E1) are in Range ( A2:E4) Regardless if range have multiples matched duplicated.

    Example 1

    211 222 201 200 122 <-A1:E1 -- number to be match and count on Range A2:E4)

    121 211 302 100 210 <- range
    110 200 200 110 212 <- range
    101 212 203 201 211 <- range

    I use Countif nested, but give a wrong output ---> 5
    and i use Sumproduct/Countif, w wrong output --> 5

    Desired Output is -----------------------------------> 4
    This is why
    (A1) 211 is 1 time (matched in range)
    (B1) 222 is 1 time (NOT match in range)
    (C1) 201 is 1 time (matched in range)
    (D1) 200 is 1 time (matched in range)
    (E1) 122 is 1 time (NOT match in Range )

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.


    Example 2:

    Note that Numbers to be match and count 200 is twice, also is twice in the Range

    211 200 201 200 122 <- number to match/count

    121 211 302 100 210 <- range
    110 200 200 110 212 <- range
    101 212 203 201 211 <- range

    The Desired Outpout here need to be -> 4
    This is why
    (A1) 211 is 1 time (2 times in range but count as unique B/C is only 1 time in A1)
    (B1) 200 is 2 time (2 times in range AND count twice B/C is in B1 + D1)
    (C1) 201 is 1 time (1 time in range and 1 time in C1)
    (D1) 200
    (E1) 122 is 1 time (is NOT in Range, it doesn't match, not count )


    Thanks,

    Going to work now.. have a great day !!
    Last edited by AndyJr; 07-25-2019 at 02:36 PM. Reason: added a left bracket-> [B] (was missing)

  2. #2
    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,719

    Re: Sumproduct countif if match, its complex formula (i think)

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    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.

  3. #3
    Registered User
    Join Date
    10-14-2017
    Location
    Miami, Florida
    MS-Off Ver
    2016
    Posts
    83

    Re: Count uniques matched on range, but if match reference is twice, count twice

    Hi

    Sure, Thank you, i'll may doit from work


    Thanks

  4. #4
    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,719

    Re: Count uniques matched on range, but if match reference is twice, count twice

    That would help.

    I am now going to tidy up this thread by deleting the clutter above this.

  5. #5
    Registered User
    Join Date
    10-14-2017
    Location
    Miami, Florida
    MS-Off Ver
    2016
    Posts
    83

    Re: Count uniques matched on range, but if match reference is twice, count twice

    Hi,

    Please find my sample file for my tread.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-14-2017
    Location
    Miami, Florida
    MS-Off Ver
    2016
    Posts
    83

    Re: Count uniques matched on range, but if match reference is twice, count twice

    BUMP
    (sorry baout the BUMP)

  7. #7
    Registered User
    Join Date
    10-14-2017
    Location
    Miami, Florida
    MS-Off Ver
    2016
    Posts
    83

    Re: Count uniques matched on range, but if match reference is twice, count twice

    BUMP,
    Thanks

  8. #8
    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,719

    Re: Count uniques matched on range, but if match reference is twice, count twice

    Administrative Note:

    We don't expect you to bump threads more than once in 24 hours - it has been only a few hours since you posted. Please remember that those who help here do so voluntarily and of their own goodwill. They live in many different time zones and many will be out at work right now if they are not asleep on the other side of the globe. This is not a paid 'service': members will help when they are ready and able to do so, and not 'on demand'. Please do not try to put pressure of time on anyone here: if you get the help you need today, that's fine, but you really should not count on it. Thanks for your understanding and patience.

  9. #9
    Registered User
    Join Date
    10-14-2017
    Location
    Miami, Florida
    MS-Off Ver
    2016
    Posts
    83

    Re: Count uniques matched on range, but if match reference is twice, count twice

    Found the formula, work perfect!
    Please Login or Register  to view this content.

+ 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] Complex Countif formula
    By thedeadzeds in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-27-2014, 06:19 AM
  2. [SOLVED] Rank If/SumProduct complex formula
    By chatcher88 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-28-2013, 01:24 PM
  3. complex-ish formula for =SUMPRODUCT
    By mrmarchuk in forum Excel General
    Replies: 8
    Last Post: 06-04-2012, 03:50 PM
  4. Problem complex SUMPRODUCT formula
    By Bohk in forum Excel General
    Replies: 0
    Last Post: 05-02-2011, 04:40 PM
  5. Sumproduct, If, Sumif, Countif, Match??
    By Herman56 in forum Excel General
    Replies: 0
    Last Post: 03-30-2006, 08:40 AM
  6. [SOLVED] Help with Complex SUMPRODUCT formula
    By Murph in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-26-2005, 11:06 AM

Tags for this Thread

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