+ Reply to Thread
Results 1 to 5 of 5

Conditional formatting in a formula

  1. #1
    Registered User
    Join Date
    01-03-2014
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    4

    Conditional formatting in a formula

    Hello,

    I'm working on a file now where I have compare competitors.

    Let say I have this information


    A B C
    1 name 1 10 20
    2 name 2 20 10
    3 name 3 10 20

    Now I would like to hightlight cell a1 blue if cell b1 is the highest and red if c1 is the highest.

    Is this even possible>

    Please help!

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Conditional formatting in a formula

    Hi, try select A1:A3 and create 2 conditional formatting formulas:
    1. =max(b1:c1)=b1 format with blue
    2. =max(b1:c1)=c1 format with red

  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
    53,048

    Re: Conditional formatting in a formula

    Hi and welcome to the forum

    You can do this with 2 simple Conditional Formatting rules...

    1. highlight the range you want to apply the conditional formatting to the ranger in column A)
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =B1>C1 format fill BLUE

    Repeat 3 and 4 with =C1>B1 format fill RED
    What would you want to do if they are the same?
    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

  4. #4
    Registered User
    Join Date
    01-03-2014
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Conditional formatting in a formula

    Thank you both! This really helped me!

  5. #5
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Conditional formatting in a formula

    Thank you for your feedback, you're welcome



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

+ 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: 3
    Last Post: 11-28-2013, 02:11 AM
  2. Replies: 1
    Last Post: 07-19-2012, 05:37 AM
  3. IF Formula with Conditional Formatting
    By AznDragon533 in forum Excel General
    Replies: 5
    Last Post: 07-06-2011, 11:29 AM
  4. Help with conditional formatting formula
    By Marlowe Nots in forum Excel General
    Replies: 4
    Last Post: 03-05-2010, 09:27 AM
  5. Replies: 6
    Last Post: 03-12-2006, 06:30 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