Thread: "OR" in Formula
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default "OR" in Formula

Hi,

try this

=IF(OR(A2="BC",A2="WWW"),60,IF(OR(A2="fr",A2="fh") ,120,IF(OR(A2="SS",A2="PS",A2="AS"),200,"")))

all in 1 line
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Barb" wrote:

I'm trying to create a formula that basically says:
IF a2 = BC or WWW, then insert the number 60, else if a2 = FR or FH, then
insert the number 120, else if a2 = SS or BS or PS or AS, then insert the
number 200.

This has me totally confused... I've done other similar calculations but
never using 'OR'.
--
Thanks!
Barb