Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 119
Default TRYING TO COMBINE FORMULAS INTO AN "OR" FORMULA

Im trying to create a formula that combines and evaluates two sub-formulas
and returns a different result depending on which of the two evaluates to
true. Here is a description of the two conditions and the formulas that work
correctly for each condition:

1. If B1 is €œET€ or €œIT€, €œYES€ is returned in A1 (otherwise €œNO€)
=IF(OR(B1="ET",B1="IT"), "YES","NO")

2. If B1 is blank, then €œ-€ (that is just a dash) is returned in A1.
=IF((ISBLANK(B1)),"-")

What I cannot figure out is how to combine the two into one larger formula.
The combination needs to be some kind of OR formula since one or the other of
the two needs to calculate. Thanks for your assistance.

--
William
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 202
Default TRYING TO COMBINE FORMULAS INTO AN "OR" FORMULA

=IF(ISBLANK(B1),"-",IF(OR(B1="ET",B1="IT"), "YES","NO"))

"William" wrote:

Im trying to create a formula that combines and evaluates two sub-formulas
and returns a different result depending on which of the two evaluates to
true. Here is a description of the two conditions and the formulas that work
correctly for each condition:

1. If B1 is €œET€ or €œIT€, €œYES€ is returned in A1 (otherwise €œNO€)
=IF(OR(B1="ET",B1="IT"), "YES","NO")

2. If B1 is blank, then €œ-€ (that is just a dash) is returned in A1.
=IF((ISBLANK(B1)),"-")

What I cannot figure out is how to combine the two into one larger formula.
The combination needs to be some kind of OR formula since one or the other of
the two needs to calculate. Thanks for your assistance.

--
William

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 44
Default TRYING TO COMBINE FORMULAS INTO AN "OR" FORMULA

"William" wrote in message
...
I'm trying to create a formula that combines and evaluates two
sub-formulas
and returns a different result depending on which of the two evaluates to
true. Here is a description of the two conditions and the formulas that
work
correctly for each condition:

1. If B1 is "ET" or "IT", "YES" is returned in A1 (otherwise "NO")
=IF(OR(B1="ET",B1="IT"), "YES","NO")

2. If B1 is blank, then "-" (that is just a dash) is returned in A1.
=IF((ISBLANK(B1)),"-")

What I cannot figure out is how to combine the two into one larger
formula.
The combination needs to be some kind of OR formula since one or the other
of
the two needs to calculate. Thanks for your assistance.


=IF(ISBLANK(B1),"-",IF(OR(B1="ET",B1="IT"), "YES","NO"))


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 119
Default TRYING TO COMBINE FORMULAS INTO AN "OR" FORMULA

Thank you both very much!!
--
William


"Lorne" wrote:

"William" wrote in message
...
I'm trying to create a formula that combines and evaluates two
sub-formulas
and returns a different result depending on which of the two evaluates to
true. Here is a description of the two conditions and the formulas that
work
correctly for each condition:

1. If B1 is "ET" or "IT", "YES" is returned in A1 (otherwise "NO")
=IF(OR(B1="ET",B1="IT"), "YES","NO")

2. If B1 is blank, then "-" (that is just a dash) is returned in A1.
=IF((ISBLANK(B1)),"-")

What I cannot figure out is how to combine the two into one larger
formula.
The combination needs to be some kind of OR formula since one or the other
of
the two needs to calculate. Thanks for your assistance.


=IF(ISBLANK(B1),"-",IF(OR(B1="ET",B1="IT"), "YES","NO"))



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
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 08:05 PM
Combine logical formulas "if", "and", "or" pscu Excel Discussion (Misc queries) 5 November 2nd 06 08:43 PM
Combining formulas, "and" & "or" to verify content of multiple cel Shu of AZ Excel Discussion (Misc queries) 15 October 16th 06 12:22 AM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 03:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 11:02 PM


All times are GMT +1. The time now is 09:35 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"