Conditional Formatting

Ian1976

Board Regular
Joined
Feb 4, 2016
Messages
139
Office Version
  1. 365
Platform
  1. Windows
Morning,

I have a cell which is formatted so when it goes into - (minus) figures it turns the cell red, i also have a drop down menu which if "X" is selected from the drop down menu it makes the cell display an "E" with a Green fill, my problem is that when the number is showing minus and i select "X" from the drop down i'm getting the E but with a minus next to it?

Is it possible to drop the minus next to the "E" when I select X from the drop down menu? I've tried playing with the priorities of the formats but I can't seem to get it to work?

Thanks
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
I would use cell formatting for this, not conditional formatting, where the custom format is:
Code:
[Blue]#,##0;-[Red]#,##0;-;@
Each ; separates between: {format for positive value}<format positive="" number="">; {format negative val}<format neg="" number="">; {format for 0}<format for="" 0="">; {format for text}
<format for="" text="">Where @ is "General" (I think)</format></format></format></format>
 
Last edited:
Upvote 0
Thanks but I've never come across doing this using that formula? Could you give me an example if the negative number is in I8 and my drop down is in E8 how do i implement that?

Thanks
 
Upvote 0
In Google: "Excel custom cell formats" returns:
https://www.google.com/search?q=exc...7j69i60j0l4.3198j0j7&sourceid=chrome&ie=UTF-8

When you right click on a cell, there is an option for cell formatting. Within this, are different formats, including custom and you add the suggested one to the custom list.

It's the difference between the true value the cell contains vs the number it displays. E.g. 1.5 and £1.50 are the same number, but one is represented as a mixed number, the other as a currency formatted number.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,821
Messages
6,181,163
Members
453,021
Latest member
Justyna P

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