+ Reply to Thread
Results 1 to 8 of 8

Formula for highlighting duplicates with value in different column

  1. #1
    Registered User
    Join Date
    10-10-2014
    Location
    Dublin Ireland
    MS-Off Ver
    Microsoft 365 MSO (Version 2309 Build 16.0.16827.20130)
    Posts
    36

    Formula for highlighting duplicates with value in different column

    Im looking for all the instances where there is a 2 in column i (MPN) and the matching value in column e (code) has a duplicate.
    I would then like to highlight the duplicates in column e.

    Im using Excel 2010

    Any help appreciated
    Attached Files Attached Files
    Last edited by antoinb; 08-30-2020 at 09:05 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,008

    Re: Duplicates

    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. Tell us what you are trying to do, not how you think it should be done.

    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    10-10-2014
    Location
    Dublin Ireland
    MS-Off Ver
    Microsoft 365 MSO (Version 2309 Build 16.0.16827.20130)
    Posts
    36

    Re: Formula for highlighting duplicates with value in different column

    Title edited, sorry but struggling to put in to words what im trying to do.
    Have included sample spreadsheet with before and after, after is what im trying to achieve

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,008

    Re: Formula for highlighting duplicates with value in different column

    Better - thanks.

  5. #5
    Registered User
    Join Date
    10-10-2014
    Location
    Dublin Ireland
    MS-Off Ver
    Microsoft 365 MSO (Version 2309 Build 16.0.16827.20130)
    Posts
    36

    Re: Formula for highlighting duplicates with value in different column

    I have edited the sample worksheet to something simpler??
    Ive not had any replies so i think what im asking for help with might not be possible.

    Im looking for a formula that would find "2" in column I
    Then check the corresponding code in column E.
    If the code in E has a duplicate then hopefully the formula would return a value in column L.
    Hope that makes sense..
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    3,219

    Re: Formula for highlighting duplicates with value in different column

    Maybe put this in L14 and copy down?

    =IF(AND(COUNTIFS($I$14:$I$19,2,$E$14:$E$19,E14)>0,I14<>2),1,"")

    To highlight column E, select E14:E19 an go to Conditional Formatting. In the formula, enter:
    =AND(COUNTIFS($I$14:$I$19,2,$E$14:$E$19,E14)>0,I14<>2)
    and then format appropriately.

    This will highlight the same cells that have a "1" in column L

  7. #7
    Registered User
    Join Date
    10-10-2014
    Location
    Dublin Ireland
    MS-Off Ver
    Microsoft 365 MSO (Version 2309 Build 16.0.16827.20130)
    Posts
    36

    Re: Formula for highlighting duplicates with value in different column

    Thank You so much Gregb11 that works perfectly, i cant thank you enough

  8. #8
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    3,219

    Re: Formula for highlighting duplicates with value in different column

    Glad it worked!

+ 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: 6
    Last Post: 11-27-2018, 07:17 AM
  2. [SOLVED] Identification of duplicates numbers in a column and print as duplicates with that number
    By kswapnadevi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-16-2017, 05:25 AM
  3. [SOLVED] Macro to find duplicates, concatenate cells, then delete old duplicates (2)
    By cny in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2016, 06:05 AM
  4. Replies: 1
    Last Post: 07-30-2014, 02:37 PM
  5. Replies: 2
    Last Post: 12-27-2013, 09:24 AM
  6. [SOLVED] Macro to find duplicates, concatenate Unique Values, then delete old duplicates
    By lesoies in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-17-2013, 04:32 PM
  7. Replies: 3
    Last Post: 03-09-2011, 07:00 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