We help IT Professionals succeed at work.

Excel formula with two ifs

127 Views
Last Modified: 2017-03-08
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"
Comment
Watch Question

CERTIFIED EXPERT

Commented:
How can D5="C" (a string value) and be greater than 0 (a numeric value)?
ShumsManaging Director/Excel VBA Developer
CERTIFIED EXPERT
Distinguished Expert 2018

Commented:
=IF(AND(D5="C",D5>0),(AV5-AW5),"N/A")
CERTIFIED EXPERT

Commented:
Sorry...ignore my post.  I misread the request.
ssblueCoordinator

Author

Commented:
Sorry, please check the formula again.
Managing Director/Excel VBA Developer
CERTIFIED EXPERT
Distinguished Expert 2018
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
CERTIFIED EXPERT

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

Commented:
OK... so I misread AND am slower than Shums!
ShumsManaging Director/Excel VBA Developer
CERTIFIED EXPERT
Distinguished Expert 2018

Commented:
LOL CompProbSolv
ShumsManaging Director/Excel VBA Developer
CERTIFIED EXPERT
Distinguished Expert 2018

Commented:
I was slow in her previous post :)

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions