+ Reply to Thread
Results 1 to 5 of 5

How to change cell colour, if the colour is based on value from formula?

  1. #1
    Registered User
    Join Date
    04-19-2016
    Location
    London
    MS-Off Ver
    10
    Posts
    3

    How to change cell colour, if the colour is based on value from formula?

    Hi guys,
    I am trying to accomplish the following.

    Tab 2: The priority of a service is determined (1,2,3 or 4), see L11-L14.
    Tab 5: The value calculated in tab 2 L11-L14 is linked and displayed in tab 5 B7-B10. I now want to use the value displayed in B7-B10 to determine the colour changes in C7-C10, D7-10, E7-E10, F7-F10 as shown in the attachment. I looked up the conditional formatting rules for it but unfortunately I did not work as excel does not recognise the number in the cell but the formula.

    I attached the file at it probably explains it better than I ever could in words. I coloured in the cells how I would like them in tab 5.

    It is frustrating as I know exactly what I want to do and where the problem lies but I can't come up with the solution.
    Has anyone of you an idea how to accomplish the colour change?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: How to change cell colour, if the colour is based on value from formula?

    you can do with conditional formatting
    instead of cell reference use val(cell reference)

    Kind regards
    Leo

  3. #3
    Registered User
    Join Date
    04-19-2016
    Location
    London
    MS-Off Ver
    10
    Posts
    3

    Re: How to change cell colour, if the colour is based on value from formula?

    Dear Leo,
    Thank you for your answer.
    Could you maybe elaborate a bit on your answer as I am still unable to get it to work.
    I am 100% certain that I am the problem and not excel but I seem to be unable to figure out what I am doing wrong.
    Thank you very much in advance.

  4. #4
    Registered User
    Join Date
    04-19-2016
    Location
    London
    MS-Off Ver
    10
    Posts
    3

    Re: How to change cell colour, if the colour is based on value from formula?

    Quote Originally Posted by LeoTaxi View Post
    you can do with conditional formatting
    instead of cell reference use val(cell reference)

    Kind regards
    Leo
    Dear Leo,
    Thank you for your answer.
    Could you maybe elaborate a bit on your answer as I am still unable to get it to work.
    I am 100% certain that I am the problem and not excel but I seem to be unable to figure out what I am doing wrong.
    Thank you very much in advance.

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: How to change cell colour, if the colour is based on value from formula?

    This solution uses four CF rules for columns C:F respectively: =VALUE(B7)=1 Red =VALUE(B7)<=2 Orange =VALUE(B7)<=3 Pink =VALUE(B7)<=4 Green
    Below is a copy of your file with the conditional formatting rules applied.
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Replies: 6
    Last Post: 04-11-2016, 09:48 AM
  2. Replies: 2
    Last Post: 02-22-2015, 11:52 AM
  3. Change colour of cells based on another cell's colour (Not value)
    By LTrain89 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-25-2013, 08:44 PM
  4. Colour change column chart based on cell colour
    By Alice21 in forum Excel General
    Replies: 11
    Last Post: 04-05-2011, 10:10 AM
  5. How to make row change colour based on text colour in row?
    By Joanna13 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-02-2010, 04:39 PM
  6. conditional formatting to change colour of cell based on formula result
    By gideong in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-15-2009, 09:35 AM
  7. Change cell colour based on formula result
    By fixednfinal in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-29-2005, 05:29 PM

Tags for this Thread

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