If and AND function together

shonu1320

Board Regular
Joined
Mar 10, 2011
Messages
54
I am trying to construct a formula using If and AND function together and needs help with the same.

I want to say IFA5="NO", AND A7>0 and A8>0, then output "Check", Otherwise leave it blank

A5, A7, and A8 also have a If formula nested in them.

It sounds simple and I have done couple of arguments but I am only getting error.

Here are my try's
=IF(A5)="NO",AND(A7>0,A8>0),"CHECK","" I got errors on this formula
OR
=IF(AND(A5="NO",(A7>0,A8>0)),"CHECK","")
This formula said CHECK even when A5 is not equal to NO, said TRUE when both the conditions were true(but I want it to say check instead of true)and said FALSE when IF condition met but AND condition did not meet(I want it to leave the cell blank instead of calling it false.
What am I doing wrong and how can I fix it? Please Help!
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Well Andrew's formula worked perfectly..so I will leave it to that. Thank you so much again for your help and making me understand Countif function which I think I can use at one another place to get a better output. I have never used Countif but with your formula earlier, I think I got an idea of how to use it. Thanks so much :)
 
Upvote 0
Well Andrew's formula worked perfectly..so I will leave it to that. Thank you so much again for your help and making me understand Countif function which I think I can use at one another place to get a better output. I have never used Countif but with your formula earlier, I think I got an idea of how to use it. Thanks so much :)
Good deal. Thanks for the feedback! :cool:
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,877
Members
452,949
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top