ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How do I write a custom format to make a negative percentage red (https://www.excelbanter.com/excel-programming/385901-how-do-i-write-custom-format-make-negative-percentage-red.html)

Melissa

How do I write a custom format to make a negative percentage red
 
I need to write a custom format that will make a negative percentage number
red but keep the positive numbers black.

merjet

How do I write a custom format to make a negative percentage red
 
You don't need a custom format. Use the menu Format | Conditional
Formatting.

Merjet


Dave Peterson

How do I write a custom format to make a negative percentage red
 
You could also use the builtin numberformat:

0.00%;[Red]0.00%;0.00%;@
or
0.00%;[Red]-0.00%;0.00%;@

positive;negative;0;text

Melissa wrote:

I need to write a custom format that will make a negative percentage number
red but keep the positive numbers black.


--

Dave Peterson


All times are GMT +1. The time now is 03:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com