+ Reply to Thread
Results 1 to 7 of 7

Changing cell colour by entering 1 in cell

  1. #1
    Registered User
    Join Date
    09-23-2017
    Location
    Shropshire England
    MS-Off Ver
    Excel 2007
    Posts
    4

    Question Changing cell colour by entering 1 in cell

    How do I change cell colour when I put say 1 in the cell? I'm making a chart where I have the months of the year along the top and various activities on the side. By typing in 1 in the appropriate cell I want that cell to turn a specified colour, say green. Can I do this with Excel 2007?

  2. #2
    Registered User
    Join Date
    12-16-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Changing cell colour by entering 1 in cell

    Chose target cell
    Go to conditional formatting
    Goto new rule
    Select use a formula to determine.....
    Go to box of cell collection
    Example:
    M4
    Add equation

    =$M4<>""
    Go to formats in the same box
    Select fill
    Chose your colour
    Green
    ok
    Again ok
    Under this window
    You can select all cells you need to include in the rule.

    I hope it done ��

  3. #3
    Registered User
    Join Date
    09-23-2017
    Location
    Shropshire England
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Changing cell colour by entering 1 in cell

    Many thanks x_ampl1 for quick response. I have a problem. This solution only works on individual cells. Does this mean I have to format every individual cell? I've got a lot of them.

  4. #4
    Registered User
    Join Date
    12-16-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Changing cell colour by entering 1 in cell

    Thanks 😊

    Read my last three lines
    This window will add all range of cells do you want to follow the rule.

  5. #5
    Registered User
    Join Date
    09-23-2017
    Location
    Shropshire England
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Changing cell colour by entering 1 in cell

    Many thanks again x_ample1. It's quite easy when you know how.😀 My problem is now sorted.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,959

    Re: Changing cell colour by entering 1 in cell

    Of course, if you want to restrict it to shading ONLY those cells containing a 1 (ignoring text and other numbers, use

    =B1=1 as the CF formula.

    Does it work properly with the $ before the column letter, as suggested at Post #2??
    Last edited by Glenn Kennedy; 09-29-2017 at 08:04 AM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  7. #7
    Registered User
    Join Date
    09-23-2017
    Location
    Shropshire England
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Changing cell colour by entering 1 in cell

    Hello Glen,
    Many thanks for reply.
    I've tried x_ample1's solution without $ sign and it works. Your solution needs the $ sign unless I'm doing it wrong.🙂

+ 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. Changing chart colour to reflect colour of cell
    By hillwalker11 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-13-2016, 03:12 AM
  2. Changing the colour of a cell based on the colour of another cell
    By Pete2931 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-11-2012, 03:35 AM
  3. Replies: 5
    Last Post: 06-20-2012, 08:39 AM
  4. Changing line colour when entering specific text
    By jonreddi in forum Excel General
    Replies: 1
    Last Post: 07-17-2011, 09:23 AM
  5. VB Code to change cell colour by entering a word
    By Twaddy in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-24-2010, 07:38 AM
  6. Changing a cell's colour basing on other cells' colour
    By rhua5436 in forum Excel General
    Replies: 11
    Last Post: 09-23-2010, 05:49 AM
  7. [SOLVED] change a cell colour when entering a letter
    By paul42770 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 06-27-2005, 04:05 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