conditional formatting or custom formatting?

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi
If I want to format a cell so if the user enter number like -10000 then excel change it right away to -10,000 in Red color. Is that conditional formatting or custom formatting.

Also I have seen in custom formatting a code like this #,##0 what does the 0 mean here? and what i have 2 ## after the comma? why not ### or what is the difference. Thank you so much.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Do you want to change all negative numbers? If so you can use custom formatting. If there are other conditions then use conditional formatting.
Be aware there are different section of the format

_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)

When the number is positive; when the number is negative; when it is zero; when there is text
Note that if you leave a section with no format it will show as blank so
Code:
;[Red]-#,##0;
Would not show positive numbers in the cell, you could see the number in the formula bar and it is the cell you just don't see it. and negative number would be -7


The # is for optional display, if there is a number there display but if there is not do not display anything. So #,##0 would display 700 as 700 instead of 0,700(how it would display if you used 0,000). 0 is to display the digit even if empty (leading zeros).
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,961
Messages
6,175,651
Members
452,664
Latest member
alpserbetli

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