+ Reply to Thread
Results 1 to 3 of 3

if two cells match show value and then conditionally format.

  1. #1
    Forum Contributor
    Join Date
    03-05-2015
    Location
    Playa Del Carmen, Mexico
    MS-Off Ver
    2016
    Posts
    111

    if two cells match show value and then conditionally format.

    Values are sapphire, ruby, emerald or diamond.

    If a2 & b2 match show same value in cell c2. If true d2 is conditionally formatted dependent on the value, if not true c2 is blank and no color fill in d2

    if sapphire & sapphire d2 is blue, if ruby & ruby red, if emerald & emerald green, if diamond & diamond gray.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: if two cells match show value and then conditionally format.

    C2=if(A2=B2,A2,"")
    Not sure why you want to CF a blank cell, why not CF C2? Either way, you will need a rule for each color/match...

    1. highlight the range you want to apply the conditional formatting to
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =C2="saphire" format fill BLUE

    Repeat 3 and 4 for each color that you have
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: if two cells match show value and then conditionally format.

    Happy to help and thanks for the feedback

+ 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] if two cells match show value and then conditionally format.
    By M12NIX in forum Excel General
    Replies: 2
    Last Post: 02-24-2017, 02:04 AM
  2. Replies: 1
    Last Post: 01-20-2016, 08:56 AM
  3. [SOLVED] Getting Blank Cells to Conditionally Format
    By heresteve2 in forum Excel General
    Replies: 4
    Last Post: 09-28-2015, 02:56 PM
  4. Using COUNTIF to Conditionally Format Cells
    By brreaves in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-05-2014, 12:33 AM
  5. Conditionally format IF, ISNUMBER, MATCH
    By mpendle in forum Excel General
    Replies: 2
    Last Post: 01-14-2009, 01:34 PM
  6. Replies: 2
    Last Post: 04-06-2006, 11:10 AM
  7. [SOLVED] conditionally format cells
    By elad in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-13-2005, 01:06 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