• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

conditional format of cell based on look up

torben

New Member
I would like to format a cell colour based on the value from a combobox.

Imagine a drop-down list with colour codes and cells adapting to your choice of colour.

Is that possible without scripts?

Many thanks!
 
Torben


Firstly, Welcome to the Chandoo.org forums


Yes, What you want is possible

Add a Combo box Control from the Developer Tab

Link it to a list of Colors or other words in a range

Link it to an Cell Link cell

Select the cells you want to color

Goto Conditional formatting (CF)

You will need to add a number of entries one for each color

Add a CF based on a formula

=CellLink = Value1

Set Format


Add the last two steps repeatedly for each of your selections in your Combo Box

For more about Combo Boxes read here:

http://chandoo.org/wp/2011/03/30/form-controls/


For more about Conditional Formatting read here:

http://chandoo.org/wp/2009/03/13/excel-conditional-formatting-basics/

http://chandoo.org/wp/2008/03/13/want-to-be-an-excel-conditional-formatting-rock-star-read-this/
 
Back
Top