+ Reply to Thread
Results 1 to 4 of 4

I want to compare the values(negative & postive both) and produce result accordingly

  1. #1
    Registered User
    Join Date
    07-02-2012
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    I want to compare the values(negative & postive both) and produce result accordingly

    Hi everyone,

    my problem is that i want to compare the values in 2 different column and if the difference is greater than 100 then the result should be highlighted as green and if the difference is less than -100 than the cell should be highlighted as red.

    for ex if the comparing values are 2245, 2645 then 2645-2245=400 which is greater than 100 so the column should be highlighted as green

    but if we reverse the values and take difference i.e. 2245-2645= -400 which is less than -100 so the resulted column should be red.

    Please help.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: I want to compare the values(negative & postive both) and produce result accordingly

    Use two conditions in conditional formatting,

    1. if result is greater than 100, green
    2. if result is less than -100, red
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: I want to compare the values(negative & postive both) and produce result accordingly

    See attached example. Using formula to determine which cells to format.
    Attached Files Attached Files
    If I helped, please don't forget to add to my reputation. (click on the star below the post)

    If the problem is solved, please: Select Thread Tools (on top of your 1st post) -> Mark this thread as Solved.

    Failure is not falling down but refusing to get up.

  4. #4
    Registered User
    Join Date
    07-02-2012
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: I want to compare the values(negative & postive both) and produce result accordingly

    Thanks Russel & Ace_XL but actually what i am trying to do is compare the value of a single metric from 2 different tables (i am using vlookup to get the same metric compared) and depending upon the difference i want to show my result only in the form of red/green arrow (not the values itself).
    Is it possible to compare the values and show results in a single column?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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