Excel change font color in formula

ssblue
ssblue used Ask the Experts™
on
I need the following formula to show in RED if it is a negative number.

="Budget Variance For Capital Project = "&TEXT('SSG 2017 Orders'!AY2,"[$$ -409]#,##0.00")
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
ShumsManaging Director/Excel VBA Developer
Distinguished Expert 2018

Commented:
Try below:
="Budget Variance For Capital Project = "&TEXT('SSG 2017 Orders'!AY2,"#,##0_ ;[Red]-#,##0 ")

Open in new window

ssblueCoordinator

Author

Commented:
Nope and it took away the dollar sign.
ShumsManaging Director/Excel VBA Developer
Distinguished Expert 2018

Commented:
Try below:
="Budget Variance For Capital Project = "&TEXT('SSG 2017 Orders'!AY2,"[$$-409]#,##0.00_ ;[Red]-[$$-409]#,##0.00 ")

Open in new window

Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

ssblueCoordinator

Author

Commented:
Sorry, got the dollar sign back but no red font.
ShumsManaging Director/Excel VBA Developer
Distinguished Expert 2018

Commented:
OK try this:
="Budget Variance For Capital Project = "&TEXT('SSG 2017 Orders'!AY2,"$ #,##0.00;[Red]-$ #,##0.00")
ssblueCoordinator

Author

Commented:
Still not turning red????
ShumsManaging Director/Excel VBA Developer
Distinguished Expert 2018

Commented:
Do not use text function, just use your normal formula:
="Budget Variance For Capital Project = "&'SSG 2017 Orders'!AY2
Then Format Cell to [$$-409]#,##0.00_ ;[Red]-[$$-409]#,##0.00
ssblueCoordinator

Author

Commented:
That's not working either.
ShumsManaging Director/Excel VBA Developer
Distinguished Expert 2018

Commented:
Other way would be;
Using your original formula:
="Budget Variance For Capital Project = "&TEXT('SSG 2017 Orders'!AY2,"[$$ -409]#,##0.00_ ;[Red]-[$$ -409]#,##0.00")
Conditional Formatting as below using formula =Left(H10,1)="-" then format as red font
Negative To Red
ShumsManaging Director/Excel VBA Developer
Distinguished Expert 2018

Commented:
Of course you need to change H10 as per your cell, where you are having the formula
ssblueCoordinator

Author

Commented:
Still not working for me. Not sure what is going on??
ShumsManaging Director/Excel VBA Developer
Distinguished Expert 2018

Commented:
Can you upload your file? or send me in pm
ssblueCoordinator

Author

Commented:
it works if I take out the text part of the formula.
ShumsManaging Director/Excel VBA Developer
Distinguished Expert 2018

Commented:
Finally. Thank God.
That what I proposed earlier:
Do not use text function, just use your normal formula:
="Budget Variance For Capital Project = "&'SSG 2017 Orders'!AY2
Then Format Cell to [$$-409]#,##0.00_ ;[Red]-[$$-409]#,##0.00
ssblueCoordinator

Author

Commented:
That doesn't work.  The only time I get RED is when there is NO text involved.
Managing Director/Excel VBA Developer
Distinguished Expert 2018
Commented:
Last try:
Please use your initial formula:
="Budget Variance For Capital Project = "&TEXT('SSG 2017 Orders'!AY2,"[$$ -409]#,##0.00_ ;[Red]-[$$ -409]#,##0.00")
Conditional format as below:
Negative To Red
ssblueCoordinator

Author

Commented:
Got it!  :)  Thanks!
ShumsManaging Director/Excel VBA Developer
Distinguished Expert 2018

Commented:
You're Welcome ssblue! Glad eventually I was able to help :)
ShumsManaging Director/Excel VBA Developer
Distinguished Expert 2018

Commented:
The problem was you were using ="Budget Variance For Capital Project = " at the beginning. Format Cell was not treating it as negative.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial