+ Reply to Thread
Results 1 to 7 of 7

Change cell color when numbers, dates or text are entered. How?

  1. #1
    Registered User
    Join Date
    03-19-2008
    Posts
    28

    Change cell color when numbers, dates or text are entered. How?

    (1) Is there a way to change the color of a specfic cell when a number or date is entered? (text also, but not priority)

    AND

    (2) Is there way to change other designated cells color when entry is made into the one specific cell in the same row?

    Initially I am trying to color out (maybe gray) events as they are accomplished when entered as a number (weight) or date into the proper cells and upon last date entry this would color out the whole row of anything not perviously colored out.

    Thanks

  2. #2
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    1 - in conditional format of the cell in the formula section (assuming a1 for example)

    type in "formula" =a1<>"" and choose the colour you want
    If you found the solution to your question. Mark the thread as "Solved"
    Thank everyone that helped you with a valid solution by clicking on their

    There is no such thing as a problem, only a temporary lack of a solution

  3. #3
    Registered User
    Join Date
    03-19-2008
    Posts
    28

    Reply to Portuga, Thanks, more please.

    Thanks, that works for the one cell, just what I needed.

    Now, can other cells in the same row be formatted to change color when this cell changes or data is entered?

    Example: a1, b1, c1, d1, e1, f1, no color or white.
    Enter date or number into g1 changes to gray with conditional formatting "formula" =a1<>"" .

    How can I make a1:f1 also change to gray?

  4. #4
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    If you want the whole row to change colour when A1 has data you can use the formula in a1

    =$a$1<>""

    and copy the formats of cell A1 to the whole row, everytime A1 has data, all the others will change colour, but if A1 has no data, and B1 has data for example, then B1 will stay the same.


    if you want cell b1 to change either when A1 has data or when B1 has data, you can use the following in a1 and copy formats to the same cells in the row:

    =OR($A$1<>"";A1<>"")
    Last edited by Portuga; 03-26-2008 at 06:05 PM.

  5. #5
    Registered User
    Join Date
    03-19-2008
    Posts
    28

    Smile Works, Thanks

    Thank you.

  6. #6
    Registered User
    Join Date
    05-08-2013
    Location
    Greenwich
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Change cell color when numbers, dates or text are entered. How?

    Does anyone know what formula to enter so that I can apply the above principle to a whole column? I want to be able to get a row to change colour when a particular cell is entered. The formula above works but I now want to know how to apply that formula to a whole column so, for e.g. when I enter text in cell A1, the whole of row A will change colour but when I enter text in cell B1, I want row B to change colour, C1 for the whole of row C etc. etc. How can I do this without having to create a new rule for each row?

  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Change cell color when numbers, dates or text are entered. How?

    Blogspot,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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