+ Reply to Thread
Results 1 to 3 of 3

Finding duplicate value based on multiple criteria from another column

  1. #1
    Registered User
    Join Date
    04-14-2021
    Location
    Canada
    MS-Off Ver
    Office 365
    Posts
    5

    Finding duplicate value based on multiple criteria from another column

    Hello fellow Excel users,


    I was hoping I would be able to find some support here with a formula I am hoping to find that solves my issue.


    I want to find duplicates in one column (A) based on the criteria (CA or US, NOT UK) in another column (B) and I want the result to show in column C. See example photo below (having issues uploading excel workbook):

    Sample data for Excel issue.JPG

    The issue is, I don't want to see a duplicate if that duplicate is only present within US (ex. row 3 & 4) and rather only if the duplicate is found both in US and CA. I also don't want to a duplicate to pop up if the value in column B is UK (ex. row 7 serial number is a duplicate, but the country sale is UK and NOT CA or US).

    Any help would be appreciated.

    I have also posted this question on another site, as finding the result is time sensitive. I will however remove this post ASAP if my question is answered on the other forum (tech community Microsoft forum).
    Attached Files Attached Files
    Last edited by Excelfresh; 04-14-2021 at 09:50 PM.

  2. #2
    Registered User
    Join Date
    06-23-2014
    Location
    Mexico
    MS-Off Ver
    2013
    Posts
    22

    Re: Finding duplicate value based on multiple criteria from another column

    Hi, use this formula in cell C2 and fill it down:
    =IF(B2="UK","N",IF(COUNTIFS($A$2:$A$7,A2,$B$2:$B$7,"<>"&B2,$B$2:$B$7,"<>UK")>0,"Y","N"))

    Basically, just exclude UK from the countifs, then evaluate the countifs.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-14-2021
    Location
    Canada
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Finding duplicate value based on multiple criteria from another column

    This was actually quite an elegant way of solving this issue. I appreciate the quick response on the time sensitive problem I was facing

+ 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. Finding Duplicate accounts in column A matching criteria column B
    By Tgandhi in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-24-2020, 02:47 PM
  2. Replies: 12
    Last Post: 10-14-2019, 09:10 AM
  3. [SOLVED] Finding values based on criteria from more than one column
    By milkychips in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-08-2015, 02:57 PM
  4. Finding duplicate rows based on values in multiple columns
    By jamie1985 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-03-2014, 08:21 AM
  5. [SOLVED] Finding Nth ranking value based on multiple criteria
    By scaffdog845 in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 04-26-2013, 01:00 PM
  6. Replies: 11
    Last Post: 01-02-2013, 10:14 AM
  7. Finding Avg. Based on Criteria Found in a Second Column
    By Alhazred in forum Excel General
    Replies: 5
    Last Post: 02-07-2008, 04:17 PM

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