Conditional Formatting- Text with Multiple Colors?

pmpkinspice97

New Member
Joined
Oct 21, 2024
Messages
6
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Is there a way to set up conditional formatting to make a text multiple colors?
Below is an example of my current conditional formatting setup. I have it set up to make the text and arrow red if the volume decreased and green if increased.

20 21↑ 19↓ 20↑

What I am wanting to do is make it so the number stays black, but the arrows are colored.

20 21 19 20

Is this possible?
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Hi pmpkinspice97,

you can use Conditional Formatting.

I assume that you entered the first 20 in B10 then you will need to apply the following 2 FCs for the C10:E10 range:

FC type -> uses a formula to determine which cells to format
Format -> Char Bold and green or red


FC Mask Rule_and Sheet Screenshot.png


Try it and let us know.

Bye
 
Last edited:
Upvote 0
Is there a way to set up conditional formatting to make a text multiple colors?
Below is an example of my current conditional formatting setup. I have it set up to make the text and arrow red if the volume decreased and green if increased.

20 21↑ 19↓ 20↑

What I am wanting to do is make it so the number stays black, but the arrows are colored.

20 21 19 20

Is this possible?
Take a look at the Icon Sets. They have arrows with colors and it doesn't change the color of the cell values.
This site has some examples to check out how they work.
 
Upvote 0
One thing to note is:

1735945918421.png

Source: Redirecting
This is also the behavior I'm seeing when testing your four numerical values.
However, it might be possible to use a formula... within the Icon Sets settings, but I'm not entirely sure what formulas it will accept.
 
Upvote 0
I tried playing around with a few options, but I can't get the Icon Sets to work 100%.
VBA Testing.xlsm
ACADAEAF
1320211920
1425252428
1530192631
1635363534
Count
Cells with Conditional Formatting
CellConditionCell FormatStop If True
AD13:AF16Cell Value>OFFSET(INDIRECT(ADDRESS(ROW(), COLUMN())),0,-1)textNO
AD13:AF16Cell Value=OFFSET(INDIRECT(ADDRESS(ROW(), COLUMN())),0,-1)textNO
AD13:AF16Cell Value<OFFSET(INDIRECT(ADDRESS(ROW(), COLUMN())),0,-1)textNO
AD13:AF16Other TypeIcon setNO

1735949958906.png


I applied CFR to highlight cells to compare if cells get the correct arrows.
I was practicing with the following formula to check if the cell value to the left was higher, lower or the same.
Some are good, but not all...
It returns the value of the cell to the left, so I tried that in the Icon Sets options.
VBA Code:
=OFFSET(INDIRECT(ADDRESS(ROW(), COLUMN())),0,-1)

1735949662988.png
 
Upvote 0
If you don't arrive at a solution, I'm thinking that vba may be able to do this based on the arrow character ascii value. It would be a bit of a challenge if it would work. Not so much to colour the character, but to first determine if the prior value is greater or less than the new value, then apply the formatting accordingly.
 
Upvote 0

Forum statistics

Threads
1,225,623
Messages
6,186,065
Members
453,336
Latest member
Excelnoob223

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