+ Reply to Thread
Results 1 to 4 of 4

Change cell text depending on colour of a cell

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-08-2006
    Location
    UK
    MS-Off Ver
    2013
    Posts
    204

    Change cell text depending on colour of a cell

    Hi all,

    I have cell A6 which has a number between 1 and 10 and changes colour depending on the number value of that cell (using conditional formatting) (red if less than 3, orange if between 3 and 7 and green if more - I know there are numbers to these but I can't remember them!).

    What I want to do is to have text in another cell (A9) and for the cell in that text to be dependant on what colour the cell A6 is.

    So if cell A6 has a value of 2 and is therefore red, I would want cell A9 to have the text "Value below tolerance".

    Any help appreciated (I searched for an answer but scenarios are different to mine and can't adapt them).

    Many thanks.

  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
    48,304

    Re: Change cell text depending on colour of a cell

    Why can't you use the same conditions as your conditional formatting?

    A9: =IF(A6<3,"Value below tolerance",IF(A6<8,"Value ...","Value ..."))

    Regards

  3. #3
    Forum Contributor
    Join Date
    02-08-2006
    Location
    UK
    MS-Off Ver
    2013
    Posts
    204

    Re: Change cell text depending on colour of a cell

    Do you know when you can't see the forest for the trees.....I feel rather daft now!

    Thanks

  4. #4
    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
    48,304

    Re: Change cell text depending on colour of a cell

    Oh yes, been there, done that. Missed a job because, in the interview, I was trying to provide an aethetically pleasing and technically scaleable solution ... and they were looking for the simple (and obvious) answer. C'est la vie

    Regards

+ 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