Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Altstatten
 
Posts: n/a
Default A little help with a conditional formula, please.

I understand the syntax for an IF formula. (IF(True, Then This, Otherwise
This)

Question is, can I make the first of the three variables an AND or an OR
statement? Have tried a few variations and can't get anything to work.

I'm after...IF(this OR this, then this, otherwiese, this)

Any help??

Thanks
Phillip
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Duke Carey
 
Posts: n/a
Default A little help with a conditional formula, please.

=if(or(a1="Altstatten",b1="Altstatten"),"Yes","No" )

"Altstatten" wrote:

I understand the syntax for an IF formula. (IF(True, Then This, Otherwise
This)

Question is, can I make the first of the three variables an AND or an OR
statement? Have tried a few variations and can't get anything to work.

I'm after...IF(this OR this, then this, otherwiese, this)

Any help??

Thanks
Phillip

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default A little help with a conditional formula, please.

Try this:
=IF(OR(first_test,second_test),then_this,otherwise _this)

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Altstatten" wrote:

I understand the syntax for an IF formula. (IF(True, Then This, Otherwise
This)

Question is, can I make the first of the three variables an AND or an OR
statement? Have tried a few variations and can't get anything to work.

I'm after...IF(this OR this, then this, otherwiese, this)

Any help??

Thanks
Phillip

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default A little help with a conditional formula, please.

Hi!

A simple example based on A1 *or* B1 being greater than 10:

=IF(OR(A110,B110),"Yes","No")

If *either* A1 or B1 is greater than 10 the formula returns Yes. If neither
is greater than 10 the formula returns No.

A simple example based on A1 *and* B1 being greater than 10:

=IF(AND(A110,B110),"Yes","No")

If *both* A1 and B1 are greater than 10 the formula returns Yes, otherwise,
returns No.

For more conditions you can get into:

=IF(OR(AND.....
=IF(AND(OR.....

Biff

"Altstatten" wrote in message
...
I understand the syntax for an IF formula. (IF(True, Then This, Otherwise
This)

Question is, can I make the first of the three variables an AND or an OR
statement? Have tried a few variations and can't get anything to work.

I'm after...IF(this OR this, then this, otherwiese, this)

Any help??

Thanks
Phillip



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Altstatten
 
Posts: n/a
Default A little help with a conditional formula, please.

All 3 of ya really oughta be watching a football game or something today, but
I'm glad you're not! :) Thank you very much!

Phillip

"Biff" wrote:

Hi!

A simple example based on A1 *or* B1 being greater than 10:

=IF(OR(A110,B110),"Yes","No")

If *either* A1 or B1 is greater than 10 the formula returns Yes. If neither
is greater than 10 the formula returns No.

A simple example based on A1 *and* B1 being greater than 10:

=IF(AND(A110,B110),"Yes","No")

If *both* A1 and B1 are greater than 10 the formula returns Yes, otherwise,
returns No.

For more conditions you can get into:

=IF(OR(AND.....
=IF(AND(OR.....

Biff

"Altstatten" wrote in message
...
I understand the syntax for an IF formula. (IF(True, Then This, Otherwise
This)

Question is, can I make the first of the three variables an AND or an OR
statement? Have tried a few variations and can't get anything to work.

I'm after...IF(this OR this, then this, otherwiese, this)

Any help??

Thanks
Phillip




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
need a conditional formula to generate numbers divisible by 4 between a given starting no. & end No. ramana Excel Worksheet Functions 5 October 21st 05 07:39 AM
Conditional formatting...cont. from 9/25 Guenzak Excel Discussion (Misc queries) 4 September 26th 05 10:55 PM
conditional formula Kari Excel Worksheet Functions 1 September 22nd 05 04:50 PM
Conditional Formatting formula not acceptable? Thief_ Excel Discussion (Misc queries) 4 July 19th 05 11:54 AM
Formula Dependant Conditional Formatting LDanix Excel Discussion (Misc queries) 1 January 13th 05 06:50 PM


All times are GMT +1. The time now is 08:14 PM.

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

About Us

"It's about Microsoft Excel"