Conditional formating - Number

zapppsr

Board Regular
Joined
Aug 19, 2010
Messages
189
Hi.

I have this problem:

I have a table, when sometimes the values in a cell will change and will have different formats:

Eg.: A1 can be % ou can be U$.

I made a conditional formating:
if A2 is "P", then format A1 number as %
if A2 is "U", then format A1 number as U$

When I change some criteria and it matches a condition that A2 is "P", it changes the format of A1 to %, but when it comes to "U" it does not come back to U$.

I think it is a bug, because the first one that matches change, and after that it does not change again...

Any hint or other way to change the number format in a cell according to a criteria?

Thanks in advance!
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi zapppsr,

It appears that if you type "U" directly in Cell A2, the U$ format displays immediately. If "U" becomes the value of Cell A2 as the result of a formula, the U$ format will display after the next calculation.

So it looks like the format change is happening, just not displaying immediately.

That is surprising. :eeek:
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,504
Messages
6,179,144
Members
452,891
Latest member
JUSTOUTOFMYREACH

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