+ Reply to Thread
Results 1 to 3 of 3

Need formula to show trending to color a cell green, red, or blue

  1. #1
    Registered User
    Join Date
    04-02-2013
    Location
    california, usa
    MS-Off Ver
    Excel 2010
    Posts
    33

    Need formula to show trending to color a cell green, red, or blue

    I am trying to figure out a formula that states the following, for example If D4 is greater than D3, then make the cell green. If D4 is less than D3, then make the cell red. And if D4=D3, then make the cell blue.
    Is this possible to do? I have tried several if functions.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Need formula to show trending to color a cell green, red, or blue

    hi ekr. there's a shorter method in Excel 2007 & above using all the common features. but here's the formula way of doing it where you can use all sorts of formulas:
    select the range you want to apply to (say D4)
    go to Home -> Conditional Formatting -> New Rule -> Use a formula to determine which cells to format -> Format values where this formula is true:
    =D4>D3
    format green

    repeat the steps & change the formula:
    =D4<D3
    Red

    =D4=D3
    blue

    the shorter step is go to Home -> Conditional Formatting -> Highlight Cell Rules. then you have a bunch of common things people use. Greater than, Less Than, Equal to. then simply put the cell reference in

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: Need formula to show trending to color a cell green, red, or blue

    Apply CF using these 3 formulae (in any order)
    =D4=D3 (Format blue)
    =D4<D3 (Format red)
    =D4>D3 (Format green)
    -----------------------------------
    Any good? Wave it, click the little star at the bottom left of my responses

+ 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: 1
    Last Post: 07-16-2013, 01:16 PM
  2. Replies: 12
    Last Post: 09-18-2012, 03:13 PM
  3. [SOLVED] Excel: want neg numbers to show red/pos green via if-then formula
    By Jim in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-15-2006, 06:30 PM
  4. Replies: 1
    Last Post: 05-16-2006, 05:20 AM
  5. how to change a color of cell 2a to blue if 2b contains a value?
    By Jon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-04-2005, 11:25 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