+ Reply to Thread
Results 1 to 3 of 3

Duplicates Highlight with condition from second column

  1. #1
    Registered User
    Join Date
    04-08-2022
    Location
    Rotterdam
    MS-Off Ver
    2019
    Posts
    1

    Duplicates Highlight with condition from second column

    Hello world,
    so I have the sheet as seen in the attachment (I have included a picture in case one cannot see the attachment)
    I have 2 columns, A for machines, B for products. I want to highlight those products that are created from both machines , so something like if duplicate and column A in the range of the duplicates contains both A1 and A2, highlight the range/cell, or something that identifies that.
    Is that possible?
    Thanks!
    Example Pic.png
    Attached Files Attached Files

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Duplicates Highlight with condition from second column

    based on your sample you could use something like

    C2: =IF(A2&B2=A1&B1;C1;COUNTIF(B:B;B2)<>COUNTIFS(A:A;A2;B:B;B2))

    the initial test in the IF is just there to limit how many times you conduct the COUNTIF <> COUNTIFS test, to extent possible.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: Duplicates Highlight with condition from second column

    Or:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    gives TRUE/FALSE

    False indicates multiple sources.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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] Match values of A column with B column if condition meet then highlight
    By keshavtale in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-02-2021, 09:49 PM
  2. Highlight Duplicates - Column
    By snuffnchess in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-28-2019, 03:06 PM
  3. HIGHLIGHT DUPLICATES in COLUMN C across 14 worksheets
    By Triscia in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-24-2019, 10:59 PM
  4. vba to ONLY highlight contiguous duplicates in one column
    By terryhenderson in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-23-2014, 04:59 PM
  5. Compare Column A to Column B then highlight/format any duplicates
    By BigExcelBaby in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-17-2014, 06:51 PM
  6. highlight duplicates in column when selected
    By Doug W in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-05-2011, 10:43 AM
  7. Replies: 3
    Last Post: 08-07-2009, 12:03 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