+ Reply to Thread
Results 1 to 3 of 3

Conditional formatting to highlight duplicates based on multiple criteria

  1. #1
    Registered User
    Join Date
    06-30-2010
    Location
    swindon, england
    MS-Off Ver
    Office 365
    Posts
    90

    Conditional formatting to highlight duplicates based on multiple criteria

    I am trying to create a formula within conditional formatting, which will highlight data that is duplicated within a separate report.

    I've attached a file to help explain what I am trying to achieve.

    Columns A to C represent a database from which I am looking up data to complete a report. The report is represented in columns F to H.

    The report lists part codes in column A and an order number in cell H2.
    In column G, there is a SUMPRODUCT formula used, to look up the Order number in column B, and part code in column A, and return the Unit price from column C.

    I'd like to use conditional formatting to highlight in column F, when a part code appears multiple times in a specific order in the database data, columns A to C.

    If anyone could help me with this, it would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Conditional formatting to highlight duplicates based on multiple criteria

    You have virtually done it yourself lose column c from your formula it will count instances if >1 then duplicate

    =SUMPRODUCT(($H$2=$B$3:$B$15)*($F4=$A$3:$A$15),$C$3:$C$15) add >1 delete this and use as formula for conditional format

    =SUMPRODUCT(($H$2=$B$3:$B$15)*($F4=$A$3:$A$15)) >1

    a countifs would do the same thing as well
    Last edited by davsth; 02-04-2021 at 08:03 AM.

  3. #3
    Registered User
    Join Date
    06-30-2010
    Location
    swindon, england
    MS-Off Ver
    Office 365
    Posts
    90

    Re: Conditional formatting to highlight duplicates based on multiple criteria

    Thanks very much for this. It's really appreciated.

    So often the case I end up overthinking these things, when the answer is staring me in the face.

+ 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-20-2018, 05:38 PM
  2. [SOLVED] Conditional Formatting formula to highlight a column if multiple criteria are not met.
    By KMJ256388 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-15-2018, 09:36 AM
  3. [SOLVED] Conditional Formatting - Highlight cell based on two criteria
    By HomerGuy in forum Excel General
    Replies: 3
    Last Post: 01-26-2015, 03:50 PM
  4. [SOLVED] A conditional formatting rule that will highlight a cell based on certain criteria/date
    By FEL2014 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-24-2014, 03:51 PM
  5. [SOLVED] Matching duplicates based on multiple criteria, conditional formatting?
    By Jaqjaq in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-23-2013, 02:42 PM
  6. Replies: 3
    Last Post: 05-31-2013, 08:03 AM
  7. Using conditional formatting to highlight multiple duplicates
    By JONNY981 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-28-2010, 03:24 AM

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