Execl 2013 - IF Statements

II am working with an Excel 2013 document and trying to filter the list to provide me with the following:  The data in my two columns (N and O) have numeric values or they are blank.  I am trying to filter the list to show me the following:  If column "N" has a numeric value >1 AND column "O" has a numeric value >1 - then enter the words 'Has Both" in column "P".  I was thinking I might be able to use an IF statement but not quite sure how to set up the IF statement or should I be using a nested IF statement - or maybe some other function of Excel.  Your assistance is appreciated.  Thanks
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

KoenChange and Transition ManagerCommented:
use following function:

=If (and (N1;O1)>1;"Has Both"; "") in column P

you might need to replace the ; with , depending of the regional settings...
mmj1Author Commented:
Thank you for your quick response.
I tried your formula and had an error - so I replaced all the semicolons with commas:

=IF(AND(N1,O1)>1,"Has Both","")

the result in column P shows:  #VALUE!

any further help is appreciated.
Saqib Husain, SyedEngineerCommented:
=IF(AND(N1>1,O1>1),"Has Both","")
OWASP Proactive Controls

Learn the most important control and control categories that every architect and developer should include in their projects.

Saqib Husain, SyedEngineerCommented:
or maybe better

=IF(AND(ISNUMBER(N1),ISNUMBER(O1),N1>1,O1>1),"Has Both","")
I think Ghinstek meant:

=if(and(n1>1, o1>1), "Has both","")

(with semi colon or comma as needed)

Saqib has also provided a solution which will take account of a text value rather than a number which can also cause #value errors

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
KoenChange and Transition ManagerCommented:
yes, my bad, too fast, too sloppy... sorry bout that.
mmj1Author Commented:
Thank you all very much.
I did use the following from regmigrant:
=if(and(n1>1, o1>1), "Has both","") - and it worked great!

Thanks again to all.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.