Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Multiple IF Statements

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 367
Default Multiple IF Statements

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 xy then
'whatever you want to do, do it here
end if

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

hth
Carlo


On Jan 22, 10:03*am, wrote:
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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Multiple IF Statements

On Jan 21, 8:23*pm, carlo wrote:
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 xy then
* *'whatever you want to do, do it here
end if

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

hth
Carlo

On Jan 22, 10:03*am, wrote:



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- Hide quoted text -


- Show quoted text -



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

Thanks for your help.

Frank
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple IF statements looking up multiple ranges. mike Excel Worksheet Functions 7 August 9th 07 04:55 PM
Multiple AND & OR statements [email protected] Excel Worksheet Functions 6 May 17th 07 06:22 AM
Multiple if statements with multiple conditions egarcia Excel Discussion (Misc queries) 4 January 29th 07 10:46 PM
Multiple IF Statements [email protected] Excel Discussion (Misc queries) 3 December 28th 06 02:33 PM
Using multiple IF statements Jshendel Excel Discussion (Misc queries) 8 August 29th 06 09:04 PM


All times are GMT +1. The time now is 12:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"