Mar 22 2023 07:06 PM
I want to set a cell's fill color according to its content's character and case. Something like:
a Red
A Orange
b Yellow
B Green
c Blue
C Purple
What's a simple way to do this?
Mar 23 2023 12:41 AM
One simple way to set conditional formatting based on text and case in Excel is to use a formula with the SEARCH function.
You can follow these steps:
You can repeat these steps for other letters and colors as well.
…or Format cells by using color scales
Color scales can help you understand data distribution and variation, such as investment returns over time. Cells are shaded with gradations of two or three colors that correspond to minimum, midpoint, and maximum thresholds.
Select the range of cells, the table, or the whole sheet that you want to apply conditional formatting to.
On the Home tab, click Conditional Formatting.
Conditional Formatting
Point to Color Scales, and then click the color scale format that you want.
The top color represents larger values, the center color, if any, represents middle values, and the bottom color represents smaller values.
Hope I could help you with these information / links.
I know I don't know anything (Socrates)
Mar 23 2023 03:40 AM - edited Mar 23 2023 04:36 AM
Mar 23 2023 03:40 AM - edited Mar 23 2023 04:36 AM
SolutionThe function EXACT will also give a case sensitive match, so the conditional formatting could be based upon the formulas
= EXACT(B2,"a")
= EXACT(B2,"A")
= EXACT(B2,"b")
= EXACT(B2,"B")
= EXACT(B2,"c")
= EXACT(B2,"C")
which return TRUE or FALSE.
Mar 23 2023 07:28 AM
Mar 23 2023 07:31 AM
Mar 23 2023 03:40 AM - edited Mar 23 2023 04:36 AM
Mar 23 2023 03:40 AM - edited Mar 23 2023 04:36 AM
SolutionThe function EXACT will also give a case sensitive match, so the conditional formatting could be based upon the formulas
= EXACT(B2,"a")
= EXACT(B2,"A")
= EXACT(B2,"b")
= EXACT(B2,"B")
= EXACT(B2,"c")
= EXACT(B2,"C")
which return TRUE or FALSE.