Gradient Conditional formatting

ThatGirl

New Member
Joined
Oct 22, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
  2. Web
I would like to create Conditional formatting based on the text in each cell. Let's say that each cell contains a list of color names and cell background color should be some sort of gradient between them.


Let's say cell A1 value is "blue, green"
I want its color to be like in the photo below.

Is it possible? How can I implement it?
 

Attachments

  • images (1).jpeg
    images (1).jpeg
    1.6 KB · Views: 5

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
I'm not sure on whether it can be done with traditional conditional formatting without making a rule based on every possible permutation but it could certainly be done with VBA.

In VBA it would be as simple as reading the cells, splitting the string in each cells, checking them against a list of colours and applying the formatting. It wouldn't be that hard to do.
 
Upvote 0

Forum statistics

Threads
1,214,924
Messages
6,122,294
Members
449,077
Latest member
Rkmenon

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top