+ Reply to Thread
Results 1 to 4 of 4

Color Code a Result

  1. #1
    Registered User
    Join Date
    03-14-2013
    Location
    las vegas
    MS-Off Ver
    Excel 2007
    Posts
    3

    Color Code a Result

    I would like to have a pct change formula that compares the values of two cells show up in green if the pct change is positive and in red if the pct change is negative.

    Any help would be appreciated.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,797

    Re: Color Code a Result

    how are you comparing the two cells

    Assuming comparisons are in B1 and B2
    and the result in A1

    so whats the % you are comparing

    the difference

    so (B1-B2)/B1

    si if +ve then Green
    if -ve then Red

    you could use conditional format and use a formulas in conditional format

    A1 < 0 then red
    A1> 0 then green

    what colour do you want if 0 ?
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,634

    Re: Color Code a Result

    with starting value in A1 and ending value in B1, put:
    In C1: =IF(A2="",0,(B2-A2)/A2)

    With C1 selected,
    1. Click Conditional Formatting, click Highlight cell rules, click "Greater than" and choose the desired color.
    2. Click Conditional Formatting, click Highlight cell rules, click "Less than" and choose the desired color.
    Ben Van Johnson

  4. #4
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Re: Color Code a Result

    Hi ppcbuilders,

    Do you mean you have 2 Columns with percentage numbers & you want to compare the change in value of the percentages in the same Row?

    If so, have a look at the attached file.
    Attached Files Attached Files
    Remember you are unique, like everyone else

+ 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. Generating a result from Cell Color?
    By RazedC in forum Excel General
    Replies: 1
    Last Post: 07-30-2013, 12:17 PM
  2. VBA code for comparing a worksheet with a column and show the result with a color
    By Derken73 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-20-2012, 08:46 PM
  3. Fill Cell with Color from Shape's color code
    By excelnewbie80 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-02-2012, 05:34 PM
  4. color the result
    By suzy~wow in forum Excel General
    Replies: 6
    Last Post: 12-22-2008, 09:29 AM
  5. [SOLVED] Comparison result changes font color
    By GScott in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-03-2006, 01:47 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