+ Reply to Thread
Results 1 to 6 of 6

Select duplicates in 1 column based on criterias in other

Hybrid View

crazym12 Select duplicates in 1 column... 02-06-2018, 11:04 AM
63falcondude Re: Select duplicates in 1... 02-06-2018, 11:06 AM
crazym12 Re: Select duplicates in 1... 02-07-2018, 04:07 AM
63falcondude Re: Select duplicates in 1... 02-07-2018, 11:18 AM
63falcondude Re: Select duplicates in 1... 02-07-2018, 11:48 AM
leelnich Re: Select duplicates in 1... 02-07-2018, 07:52 PM
  1. #1
    Registered User
    Join Date
    02-06-2018
    Location
    Prague, Czech Republic
    MS-Off Ver
    MS Office 365 ProPlus
    Posts
    2

    Select duplicates in 1 column based on criterias in other

    Hello everyone,

    seeking anyones help with following task. I am searching for duplicated values in 1 column based on preset conditions in a different column.
    Example as below
    Capture.PNG

    From picture I need to search for duplicates in first column based on conditions in the last columns (for example in this case MS to be always prefered and flag the SW as duplicate)
    Any help would be very appreciated.

    Thank you,
    Martin.
    Attached Files Attached Files
    Last edited by crazym12; 02-07-2018 at 04:05 AM.

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

    Re: Select duplicates in 1 column based on criterias in other

    Hello and welcome to the forum.

    Attach a sample workbook (not just a screenshot).

    Make sure there is just enough data to demonstrate your need.

    Make sure your desired results are shown, mock them up manually if necessary.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    02-06-2018
    Location
    Prague, Czech Republic
    MS-Off Ver
    MS Office 365 ProPlus
    Posts
    2

    Re: Select duplicates in 1 column based on criterias in other

    Hello Falcondude,

    Thank you, I have attached a simplified example document.

    Regards,
    Martin

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

    Re: Select duplicates in 1 column based on criterias in other

    Based on the sample workbook that you shared in post #1, I see that condition "C" has precedence (i.e. will not get marked as "Yes" unless all are "C") over any other conditions.

    My only questions here are:
    1) Why should row 6 be marked as "Yes" instead of row 7?
    2) Why should row 9 be marked as "Yes" instead of row 8?

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

    Re: Select duplicates in 1 column based on criterias in other

    Try this in C2:

    =IF(OR(COUNTIFS(A$2:A2,A2,B$2:B2,"C")>1,COUNTIFS(A$2:A2,A2,B$2:B2,"<>C")>1,AND(COUNTIFS(A:A,A2,B:B,"C")>0,B2<>"C")),"Yes","")

  6. #6
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Select duplicates in 1 column based on criterias in other

    Or this ARRAY FORMULA* in C2, copied down:

    =IF(ROWS(A$2:A2)=MATCH(1,(A$2:A$9=A2)*IF(COUNTIFS(A$2:A$9,A2,B$2:B$9,"C"),B$2:B$9="C",1),0),"","Yes")

    *Always press CTRL+SHIFT+ENTER to confirm entry after pasting or editing an ARRAY FORMULA in the Formula Bar.
    When copying the formula to other cells, make sure the copied cell is not part of the Paste Area.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

+ 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: 2
    Last Post: 07-13-2017, 10:33 AM
  2. [SOLVED] Add up quantitites in Column E based on duplicates in Column A, then delete duplicates
    By eli-vergara in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-02-2016, 05:44 PM
  3. Return 1st value of duplicates based on multiple criterias
    By Dahlia in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-31-2015, 04:09 AM
  4. [SOLVED] Summing a column based on two criterias (tried using sumif)
    By Dbauddls90 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-12-2014, 01:39 PM
  5. [SOLVED] Return Column Number Based on Two Criterias
    By taccoo73 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-14-2014, 02:51 PM
  6. [SOLVED] Return first value (duplicates) based on multiple criterias
    By krdka in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-15-2013, 06:11 PM
  7. Return first value (duplicates) based on multiple criterias
    By krdka in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-15-2013, 04:46 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