Multiple IF Statements

  • Thread starter Thread starter wfgfreedom
  • Start date Start date
W

wfgfreedom

Is there a way to have a double condition If Statement?

Eg. If x = 0 and X > Y Then...

I am getting an error trying this. Please help!

Frank
 
hi frank

where do you need it? In a formula, in VBA?

In vba it would look like you wrote it:

if x = 0 and x>y then
'whatever you want to do, do it here
end if

in a formula it would be:
=if(and(x=0,x>y))

hth
Carlo
 
hi frank

where do you need it? In a formula, in VBA?

In vba it would look like you wrote it:

if x = 0 and x>y then
   'whatever you want to do, do it here
end if

in a formula it would be:
=if(and(x=0,x>y))

hth
Carlo






- Show quoted text -


I don't know what I did wrong, but it seems to work now.

Thanks for your help.

Frank
 

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

Back
Top