+ Reply to Thread
Results 1 to 5 of 5

Conditional formatting: One cell based on the value of another

  1. #1
    Registered User
    Join Date
    12-15-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    16

    Conditional formatting: One cell based on the value of another

    Hi all,

    I am attempting to apply conditional formatting such that cell B3 is green if it is greater than or equal to cell B2, and red if less than cell B2. Then to apply this conditioning across the row of data (i.e. C3 >= C2 green, C3 < C2 red; D3 >= D2 green, D3 < D2 red; E3 >= E2 green, E3 < E2 red ... etc.).
    Needs to be formatted such that if I change the value in cell B2, the colour of B3 is automatically updated.


    Please find attached an example worksheet.


    Thank you for your time and assistance.
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: Conditional formatting: One cell based on the value of another

    would this work, colors you'll have to adjust...
    Attached Files Attached Files
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    04-28-2013
    Location
    Poznań/Poland
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Conditional formatting: One cell based on the value of another

    hello,

    1.select cells B3:E3
    2. click on HOME -> conditional formatting - > new rule
    3. activate option 'use a formula to determine which cells....'
    4. write following formula below:

    '=b3<b2' and click button to set the format (font color red) - this the way to determine the format of cells.

    If You want to define second rule (font color green) You must repeat steps (3-4) but in step number 4 write formula "=b3>=b2" and set another formatting of cells.

    regards.

  4. #4
    Registered User
    Join Date
    12-15-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Conditional formatting: One cell based on the value of another

    Thank you each for your time.

    Andrew, spot on, thank you very much.

  5. #5
    Registered User
    Join Date
    01-07-2014
    Location
    Milledgeville, GA, US
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Conditional formatting: One cell based on the value of another

    This info help me as well, thanks. I have a similar poser. I've managed to conditionally format an entire row based on the info in one cell, but I would like to apply the same rules to all rows individually. In other words, if the value in E2 is charge, then format the entire row red BUT if the value in E3 is prepay then format the entire row blue, etc. How would I do this without creating a new rule for each row?
    Attached Files Attached Files

+ 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. Conditional Formatting via VBA: Change formatting in range based on value of each cell
    By ralphjmedia in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2013, 10:37 AM
  2. [SOLVED] Conditional formatting based on cell value in row above
    By thadacto in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-14-2013, 04:07 PM
  3. Replies: 4
    Last Post: 01-06-2012, 05:07 PM
  4. Conditional Formatting based on value of last cell
    By Bret in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-08-2008, 12:44 PM
  5. [SOLVED] Conditional formatting based on another cell
    By Shaggyjh in forum Excel General
    Replies: 7
    Last Post: 02-10-2006, 12:10 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