Excel IF Function

W

WombatMan99

I am using the =IF function in Excel 2000. I want to write a cod
something like this =IF(A=B) AND (C=D) THEN OPTION 1 ELSE OPTION 2.
Every time I try to write it I get an Invalid message. Please help
 
B

Bob Phillips

=IF(AND(A=B,C=D),OPTION1,OPTION2)

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
W

WombatMan99

Bob Phillips, I just tried your suggestion and guess what IT WORKED!!!.
Thanks for replying
 
B

Bob Phillips

Had me worried for a bit there<g>

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
S

Soo Cheon Jheong

ry,

=IF((A=B)*(C=D),OPTION1,OPTION2)


--
Regards,
Soo Cheon Jheong
_ _
^ ^
v
 

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