+ Reply to Thread
Results 1 to 4 of 4

Cell coloring condition

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    05-12-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    219

    Cell coloring condition

    Hi,

    I need a formula or macro that can help me with: I have a cell A1, if the user enters a number greater than or equal to 2 and less than or equal to 6 then turn that cell to green (2≤x≤6), if less than 2 then turn yellow, and greater than 6 turn red.
    Thanks

    VBisgreat

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,962

    Re: Cell coloring condition

    Have you looked at Conditional Formatting?

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Cell coloring condition

    Hi VB,

    Use Conditional Formatting for this. See here for some basic examples:

    http://www.contextures.com/xlcondFormat01.html

  4. #4
    Forum Contributor
    Join Date
    05-12-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    219

    Re: Cell coloring condition

    thank you for your helps.

+ 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