+ Reply to Thread
Results 1 to 8 of 8

Need help with a conditional formatting formula

  1. #1
    Forum Contributor
    Join Date
    01-14-2011
    Location
    New York City, USA
    MS-Off Ver
    Excel 2010
    Posts
    194

    Need help with a conditional formatting formula

    Can anyone help me with an if/else conditional formatting statement. I want text to be red if A1 < A2 and green if A1=< A2.


    Thank you,

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Need help with a conditional formatting formula

    There is not much difference between those 2 statements
    CF formula for red color =A1<A2
    CF formula for green color =A1<=A2
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Need help with a conditional formatting formula

    Is it supposed to be green if A1 is greater than or equal to A2? Because right now you have as green if A1 is less than or equal to A2. And with the red one being A1 less than A2, the only greens will be those where A1 is exactly equal to A2.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Contributor
    Join Date
    01-14-2011
    Location
    New York City, USA
    MS-Off Ver
    Excel 2010
    Posts
    194

    Re: Need help with a conditional formatting formula

    I want green if A1 is greater than A2 and red if it's less. Nothing if it's the same (black). How can I do that? Thanks!

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

    Re: Need help with a conditional formatting formula

    Two conditions

    =A1>A2
    format green

    =A1<A2
    format red
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  6. #6
    Forum Contributor
    Join Date
    01-14-2011
    Location
    New York City, USA
    MS-Off Ver
    Excel 2010
    Posts
    194

    Re: Need help with a conditional formatting formula

    conditional formatting 2.xlsx

    but how do I write than in an Excel formula, how do I separate those two statements? attaching a worksheet for example. I want A1 to be green and A2 to be red.

    -thanks

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

    Re: Need help with a conditional formatting formula

    See attached
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    01-14-2011
    Location
    New York City, USA
    MS-Off Ver
    Excel 2010
    Posts
    194

    Re: Need help with a conditional formatting formula

    Sorry I wasn't clear but you changed the metrics. I want A1 to be 1,000, A2 to be 2,000, B1 to be 2,000 and B2 to be 1,000. Just need a simple formula to make data in column A red/green if it's less/greater to B.

+ 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