Use IF function for two conditions

W

wuwu

How can I use IF function for two conditions in a cell like below:

Cell A1 contains data ABC
Cell A2 contains data 500


I would like to set a IF function in cell A3 that IF A1=ABC and A2=500,
then A3 changes to "50KGS"
 
J

JulieD

Hi

in A3
=IF(AND(A1="ABC",A2=500),"50KGS","")

the AND says both conditions have to be true for true to be returned.

Cheers
JulieD
 
B

Bob Phillips

A3: =IF(AND(A1="ABC",A2=500),"50KGS","")

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top