1

I have a table that could have any number of "Regions", almost in any order. I'm wondering if there's a way to use some sort of "lookup table" that looks to a region, then fills the cells with a color.

Example data:

Name    Region  Value
Chuck   East    213
Josh    East    321
Jeri    North   1232
Noel    South   329

My idea is to use a table like below, so anytime a region is matched, the cells in the table above are filled with that color:

Region  HEX Color
East    #87F1A8
North   #8962D8
South   #D49362

The idea is I can easily/quickly change a fill color, add/remove regions to fill, etc. without having to go in to the Conditional Formatting thing and manually do so. If I had only three regions, I can make those manually, but if I have over 20+ regions, I'd love to not have to make 20 separate entries, and update them all when wanted.

(So in my data table, all the rows with East as a region, should be filled with hex color #87F1A8.)

This could be done in VBA, but I'm hoping there's a non-VBA option. For the purposes of my question, VBA wouldn't be considered a solution. I am able to add helper columns, if that ...helps.

Edit: I have thought about this but can't think of where to begin, so don't have any formulas to share yet, which is why I asked here on SuperUser and not StackOverflow. If it's not possible without VBA, that's fine, just wondering if there's a non-VBA way.

3
  • There's a few individual steps to start with: lookup tables are pretty common. Translating cell text to actionable code is going to be another step I'm less familiar with and may be capable with a formula, but should definitely be possible with VBA, but should give something to start with, research-wise. Commented 2 days ago
  • 1
    Dynamic mapping like this is not possible with conditional formatting alone. It would be a nice feature, however VBA is required for it. Commented 17 hours ago
  • 1
    @Nigel - Yeah, I figured it's not possible without VBA. I'll keep open a few more days justtttt in case, but I am 90% sure that my question requires VBA. Commented 5 hours ago

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.