Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
joanaww
 
Posts: n/a
Default Create a formula using if, and, or or.

The courses I took didn't cover multiple conditional statements. Can someone
help me as to the proper syntax to write these? I need to do conditions of
"and" and "or", acting on one or more cells and different columns.

Thank you.
  #3   Report Post  
Posted to microsoft.public.excel.misc
Jim May
 
Posts: n/a
Default Create a formula using if, and, or or.

two samples..
=If(AND(b1=3,c15),"Both Coditions exist","Neither Condition exists")
=If(OR(b1=3,c15),"Both Coditions exist","Neither Condition exists")



"joanaww" wrote:

The courses I took didn't cover multiple conditional statements. Can someone
help me as to the proper syntax to write these? I need to do conditions of
"and" and "or", acting on one or more cells and different columns.

Thank you.

  #4   Report Post  
Posted to microsoft.public.excel.misc
pinmaster
 
Posts: n/a
Default Create a formula using if, and, or or.


=IF(AND(conditions seperated by comas),if true,if false)
=IF(OR(conditions seperated by comas),if true,if false)

HTH
JG

"joanaww" wrote:

The courses I took didn't cover multiple conditional statements. Can someone
help me as to the proper syntax to write these? I need to do conditions of
"and" and "or", acting on one or more cells and different columns.

Thank you.

  #5   Report Post  
Posted to microsoft.public.excel.misc
joanaww
 
Posts: n/a
Default Create a formula using if, and, or or.


Yes. It only covers sincle conditions syntax.
"joanaww" wrote:

The courses I took didn't cover multiple conditional statements. Can someone
help me as to the proper syntax to write these? I need to do conditions of
"and" and "or", acting on one or more cells and different columns.

Thank you.



  #6   Report Post  
Posted to microsoft.public.excel.misc
joanaww
 
Posts: n/a
Default Create a formula using if, and, or or.

No, it only covers single condition syntax. (in error I posted the reply to
my own question, so I hope no one's confused.)

"Don Guillett" wrote:

have you looked in help for both?

--
Don Guillett
SalesAid Software

"joanaww" wrote in message
...
The courses I took didn't cover multiple conditional statements. Can
someone
help me as to the proper syntax to write these? I need to do conditions
of
"and" and "or", acting on one or more cells and different columns.

Thank you.




  #7   Report Post  
Posted to microsoft.public.excel.misc
joanaww
 
Posts: n/a
Default Create a formula using if, and, or or.

Thanks. Can we go one step farther, and combine the two? Use of brackets,
parentheses, etc. would be helpful in the combined statement. I am asking
the same question to pinmaster.

"Jim May" wrote:

two samples..
=If(AND(b1=3,c15),"Both Coditions exist","Neither Condition exists")
=If(OR(b1=3,c15),"Both Coditions exist","Neither Condition exists")



"joanaww" wrote:

The courses I took didn't cover multiple conditional statements. Can someone
help me as to the proper syntax to write these? I need to do conditions of
"and" and "or", acting on one or more cells and different columns.

Thank you.

  #8   Report Post  
Posted to microsoft.public.excel.misc
joanaww
 
Posts: n/a
Default Create a formula using if, and, or or.

Same question I added for Jim May's reply: Can we go one step farther, and
combine the two? Use of brackets, parentheses, etc. would be helpful in the
combined statement.

Thanks.
"pinmaster" wrote:


=IF(AND(conditions seperated by comas),if true,if false)
=IF(OR(conditions seperated by comas),if true,if false)

HTH
JG

"joanaww" wrote:

The courses I took didn't cover multiple conditional statements. Can someone
help me as to the proper syntax to write these? I need to do conditions of
"and" and "or", acting on one or more cells and different columns.

Thank you.

  #9   Report Post  
Posted to microsoft.public.excel.misc
Pete
 
Posts: n/a
Default Create a formula using if, and, or or.

I think this last example should be:

=If(OR(b1=3,c15),"One or both Conditions exist","Neither Condition
exists")

Pete

  #10   Report Post  
Posted to microsoft.public.excel.misc
joanaww
 
Posts: n/a
Default Create a formula using if, and, or or.



"Pete" wrote:

I think this last example should be:

=If(OR(b1=3,c15),"One or both Conditions exist","Neither Condition
exists")

Pete

I just tried this, but maybe I did something wrong. I'm actually using this statement as a condition for a sumif statement, where a column contains several dates, and either of two of them might qualify as criteria for a given time period. I can do this if I have only one month I'm searching for. Actually, I'm trying to sum up the amounts paid, which can come in any month, by time period (corresponding to meeting dates).



  #11   Report Post  
Posted to microsoft.public.excel.misc
joanaww
 
Posts: n/a
Default Create a formula using if, and, or or.



"joanaww" wrote:

I just tried this, but maybe I did something wrong. I'm actually using this statement as a condition for a sumif statement, where a column contains several dates, and either of two of them might qualify as criteria for a given time period. I can do this if I have only one month I'm searching for. Actually, I'm trying to sum up the amounts paid, which can come in any month, by time period (corresponding to meeting dates). (I'm having trouble using this form, as I don't know where I'm supposed to type my reply - there is no blinking cursor.)

"Pete" wrote:

I think this last example should be:

=If(OR(b1=3,c15),"One or both Conditions exist","Neither Condition
exists")

Pete

I just tried this, but maybe I did something wrong. I'm actually using this statement as a condition for a sumif statement, where a column contains several dates, and either of two of them might qualify as criteria for a given time period. I can do this if I have only one month I'm searching for. Actually, I'm trying to sum up the amounts paid, which can come in any month, by time period (corresponding to meeting dates).

  #12   Report Post  
Posted to microsoft.public.excel.misc
Dsuperc
 
Posts: n/a
Default Create a formula using if, and, or or.

try this link
http://www.personal-computer-tutor.com/if2.htm

"joanaww" wrote:


Yes. It only covers sincle conditions syntax.
"joanaww" wrote:

The courses I took didn't cover multiple conditional statements. Can someone
help me as to the proper syntax to write these? I need to do conditions of
"and" and "or", acting on one or more cells and different columns.

Thank you.

  #13   Report Post  
Posted to microsoft.public.excel.misc
joanaww
 
Posts: n/a
Default Create a formula using if, and, or or.

Thanks so much. I think this site will provide me with the information I
need to complete my project.
Joan

"Dsuperc" wrote:

try this link
http://www.personal-computer-tutor.com/if2.htm

"joanaww" wrote:


Yes. It only covers sincle conditions syntax.
"joanaww" wrote:

The courses I took didn't cover multiple conditional statements. Can someone
help me as to the proper syntax to write these? I need to do conditions of
"and" and "or", acting on one or more cells and different columns.

Thank you.

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
How can I create a formula for Salutation cs_vision Excel Discussion (Misc queries) 6 October 8th 05 12:31 AM
Create Formula for calculating Little League Age... Brent Excel Worksheet Functions 1 September 21st 05 01:19 AM
How to create specific formula STS Excel Worksheet Functions 4 May 2nd 05 01:44 AM
How do I create a formula that would allow me to subtract from a d Justlearning New Users to Excel 5 January 27th 05 09:47 PM
How do I create a formula in Excel that will countif or sumif bef. bkclark Excel Worksheet Functions 4 November 10th 04 05:30 PM


All times are GMT +1. The time now is 04:58 AM.

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"