Avatar of ssblue
ssblue
Flag for United States of America asked on

Excel formula with two ifs

I need the following put into a formula.

If D5 = "C"   and AV5  is greater then 0   then AV5 - AW5  otherwise put "N/A"

If D5 does not = "C" put "N/A"
Microsoft ExcelMicrosoft Office

Avatar of undefined
Last Comment
Shums Faruk

8/22/2022 - Mon
CompProbSolv

How can D5="C" (a string value) and be greater than 0 (a numeric value)?
Shums Faruk

=IF(AND(D5="C",D5>0),(AV5-AW5),"N/A")
CompProbSolv

Sorry...ignore my post.  I misread the request.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
ssblue

ASKER
Sorry, please check the formula again.
ASKER CERTIFIED SOLUTION
Shums Faruk

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
or
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
CompProbSolv

Shums is on the right track, but:
=IF(AND(D5="C",AV5>0),(AV5-AW5),"N/A")
should work.
CompProbSolv

OK... so I misread AND am slower than Shums!
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Shums Faruk

LOL CompProbSolv
Shums Faruk

I was slow in her previous post :)