Avatar of ssblue
ssblueFlag for United States of America

asked on 

Excel change font color in formula

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")
Microsoft ExcelMicrosoft Office

Avatar of undefined
Last Comment
Shums Faruk
Avatar of Shums Faruk
Shums Faruk
Flag of India image

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

Open in new window

Avatar of ssblue
ssblue
Flag of United States of America image

ASKER

Nope and it took away the dollar sign.
Avatar of Shums Faruk
Shums Faruk
Flag of India image

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

Open in new window

Avatar of ssblue
ssblue
Flag of United States of America image

ASKER

Sorry, got the dollar sign back but no red font.
Avatar of Shums Faruk
Shums Faruk
Flag of India image

OK try this:
="Budget Variance For Capital Project = "&TEXT('SSG 2017 Orders'!AY2,"$ #,##0.00;[Red]-$ #,##0.00")
Avatar of ssblue
ssblue
Flag of United States of America image

ASKER

Still not turning red????
Avatar of Shums Faruk
Shums Faruk
Flag of India image

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
Avatar of ssblue
ssblue
Flag of United States of America image

ASKER

That's not working either.
Avatar of Shums Faruk
Shums Faruk
Flag of India image

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
User generated image
Avatar of Shums Faruk
Shums Faruk
Flag of India image

Of course you need to change H10 as per your cell, where you are having the formula
Avatar of ssblue
ssblue
Flag of United States of America image

ASKER

Still not working for me. Not sure what is going on??
Avatar of Shums Faruk
Shums Faruk
Flag of India image

Can you upload your file? or send me in pm
Avatar of ssblue
ssblue
Flag of United States of America image

ASKER

it works if I take out the text part of the formula.
Avatar of Shums Faruk
Shums Faruk
Flag of India image

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
Avatar of ssblue
ssblue
Flag of United States of America image

ASKER

That doesn't work.  The only time I get RED is when there is NO text involved.
ASKER CERTIFIED SOLUTION
Avatar of Shums Faruk
Shums Faruk
Flag of India image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of ssblue
ssblue
Flag of United States of America image

ASKER

Got it!  :)  Thanks!
Avatar of Shums Faruk
Shums Faruk
Flag of India image

You're Welcome ssblue! Glad eventually I was able to help :)
Avatar of Shums Faruk
Shums Faruk
Flag of India image

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

Microsoft Excel topics include formulas, formatting, VBA macros and user-defined functions, and everything else related to the spreadsheet user interface, including error messages.

144K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo