+ Reply to Thread
Results 1 to 4 of 4

if cell > 150 then colour = red else colour green

  1. #1
    Registered User
    Join Date
    08-30-2009
    Location
    new york
    MS-Off Ver
    Excel 2009
    Posts
    2

    if cell > 150 then colour = red else colour green

    Hi,

    Just trying to work out a formula to use in excel for:
    if cell > 150 then colour = red else colour green

    Basically, its for a budget and i have three cells that i want to fill with green if the value of that cell is less than $150 or fill the value of that cell with red if the value is greater than $150..

    Some help please :D

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: if cell > 150 then colour = red else colour green

    This is conditional formatting (Format > Conditional Formatting).

    The formulas I would use are:
    Condition1: Formula Is: =AND(A1>0,A1>150)
    Format... Patterns: Red color

    Condition2: Formula Is: =AND(A1>0,A1<=150)
    Format... Patterns: Green color


    Of course, adjust the cell references to your actual cell(s)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    08-30-2009
    Location
    new york
    MS-Off Ver
    Excel 2009
    Posts
    2

    Re: if cell > 150 then colour = red else colour green

    Cheers mate

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: if cell > 150 then colour = red else colour green

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].


    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated)

+ 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