Conditional formatting & number alignment

Klaas Vaak

New Member
Joined
Jan 4, 2017
Messages
2
Assume:
a cell with a number, center aligned
apply conditional format (CF) to the cell
If the condition is fulfilled, the CF will change the alignment to right aligned. This might not be visible immediately, but after saving, closing, reopening the file, the number is right aligned. When you check the formatting of the cell (CTRL+1), Alignment tab, you will notice the alignment is still right. But it is impossible to get Excel to display the number in the center.
Is this a bug (my impression) or is there a way to correct this?
 
Welcome to the Board!

I am not sure I understand. If there is Conditional Formatting that is Right Aligning the entry, you will not be able to override that and make the entry Center Aligned unless you remove the Conditional Formatting rule that is Right Aligning it. That is expected behavior. Conditional Formatting trumps anything manual.

If this is not what you are talking about, please explain in more detail and layout an exact example, complete with the value in the cell and what your Conditional Formatting conditions/formulas are.
 
Upvote 0
Thanks for your reply. CF was not put in there to right align the number - I don't even know if that would be possible.
No, before CF the cell has a number (value) in it, and the cell is formatted to center align the number. That works fine.
Then I apply CF to turn the number & background to red & pink respectively when the number rises above a threshold value. When that value does go above the threshold, the colours change. I save the file. Then when I reopen the file the number is aligned to the right, even though the format dialogue (CTRL+1), Alignment tab, still shows the alignment of the cell to be aligned to the right. There is no way to get Excel to display the cell contents (i.e. the number) center aligned.
 
Upvote 0

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