Conditional Formatting changes number format

bigmyk2k

Board Regular
Joined
Feb 9, 2012
Messages
104
I am trying to conditionally format the fill of the cells in a table based on the value in them.
The values are percentages based on another cells relative value to a reference cell (eg. Cell C1 shows 120%, because B1 is 1.2 and A1 is 1.0).
I want numbers above 100% to be grades of red based on how far above 100%, and grades of green based on how far below 100%.
I can get the shading just fine, but it changes the number format to currency (120% becomes $1.20).
No matter what I try I can't change the format back to percentage.
To be clear, I am trying every number format change I can think of, and every combination of formatting settings.
Thoughts?
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
It sounds like that you have a Conditional Formatting rule that is applying that number formatting.
Note that a single CF rule can both change colors AND change number formatting. So perhaps you inadvertantly set the number formatting on one of your rules (or you have an extra rule in there that shouldn't be there).
You need to find it and alter or remove it.

The only other thing I can think of that would not allow you to change it back is if you have some automated VBA code (event procedure code).
 
Last edited:
Upvote 0
It sounds like that you have a Conditional Formatting rule that is applying that number formatting.
Note that a single CF rule can both change colors AND change number formatting. So perhaps you inadvertantly set the number formatting on one of your rules (or you have an extra rule in there that shouldn't be there).

As far as I can tell, there is no Font formatting with this CF.
IfIHXgF.jpg


IfIHXgF


The only other thing I can think of that would not allow you to change it back is if you have some automated VBA code (event procedure code).

Also, pretty certain that there is no VBA in this workbook. Other thoughts?
D0cVMEl.jpg
 
Upvote 0
Its not Font Formatting, it is Number Formatting.
Check the Number tab on each of your Conditional Formatting rules.
 
Upvote 0

Where is the Number tab?
The dropdown that shows "Number" has the three other options of Percent, Formula, and Percentile.
None of those options change the number format, and also don't let me set the center of the range at 100%.
 
Upvote 0
Which version of Excel are you using?
How are you setting up the Conditional Formatting?
I prefer to use the Formula option, as it is easier to me to follow and see what is going on.

What I might recommend to you is to clear ALL Conditional Formatting rules, and start over. Try adding them back, one at a time, and test after each one. Then, if there is an issue, you should be able to identify which rule is causing issues.
 
Upvote 0
Which version of Excel are you using?
How are you setting up the Conditional Formatting?
I prefer to use the Formula option, as it is easier to me to follow and see what is going on.

I am using Excel within Office 365, build 8528.2147.
I am putting in the Conditional Formatting by using the CF dropdown on the Home tab, selecting Color Scales.

What I might recommend to you is to clear ALL Conditional Formatting rules, and start over. Try adding them back, one at a time, and test after each one. Then, if there is an issue, you should be able to identify which rule is causing issues.

I have previously done this several times, and this is the only conditional formatting rule in the entire workbook.
 
Upvote 0
If you remove ALL Conditional Formatting, are you able to manually change the formatting of those cells?
If so, then the Conditional Formatting is the issue.
 
Upvote 0
Yes, on both counts.

Also, with the CF in place, the formatting for the cells still shows as it should, in the "Number" dialogue box, but still displays incorrectly in the cells.

e0ZSqqC.jpg


If I copy the conditional fomatting to another column, sometimes it shows up as percent, sometimes as currency, and every time I paste it into another column, the frequency of the latter changes (increases) in the previous columns, if it wasn't already the whole column. If I go to another sheet in the workbook, and click back to the original sheet, every cell with the formatting shows as currency, and remains that way, unless I undo all previous steps to remove it.

Pasted here (formatting correct):
1Yohpiw.jpg

And, then pasted again:
XFoOBwZ.jpg


Clearly, the CF is the problem. What I am trying to get help with, is what with CF is the problem, and how do I fix it.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,287
Members
452,631
Latest member
a_potato

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