Avatar of ssblue
Flag for United States of America asked on

Excel formula to show $0.00 if negative number.

I need the following formula to show $0.00 if it is a negative number, otherwise perform calculation.

="Avoided Spend w/ Reference = "&TEXT('SSG 2017 Orders'!AT2,"[$$ -409]#,##0.00")
Microsoft ExcelMicrosoft Office

Avatar of undefined
Last Comment
Frank Helk

8/22/2022 - Mon
Lee W, MVP

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question


pls try
="Avoided Spend w/ Reference = "&TEXT(A3,"[$$ -409]#,##0.00;""$ 0.00""") 

Open in new window


Lee, yours shows >0

Rgonzo, yours shows $0.00 all the time - it should show the calculation if it is a positive number.
Lee W, MVP

Had a typo - I corrected, try again.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck

corrected code
="Avoided Spend w/ Reference = "&TEXT('SSG 2017 Orders'!AT2,"[$$ -409]#,##0.00;""$0.00""") 

Open in new window


Frank Helk

How about

="Avoided Spend w/ Reference = "&IF('SSG 2017 Orders'!AT2<0,"0.0",TEXT('SSG 2017 Orders'!AT2,"[$$ -409]#,##0.00"))

Open in new window

Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.