+ Reply to Thread
Results 1 to 6 of 6

or()

  1. #1
    nick
    Guest

    or()

    can anyone tell me if i could do the following:
    A1 A2
    1 =IF(OR(A1=1,2,3,4,5),"x","?")
    2
    3
    4
    5
    If the above is incorrect, can someone tell me how to put the values in an
    or statement with out typing A1 all the time forall the values...Thanks in
    advance

  2. #2
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    Nick,


    =IF(OR(A1={1,2,3,4,5}),"x","?")

    HTH

    Steve

  3. #3
    Bob Phillips
    Guest

    Re: or()

    =IF(OR(A1={1,2,3,4,5}),"x","?")


    --

    HTH

    Bob Phillips

    (remove nothere from the email address if mailing direct)

    "nick" <[email protected]> wrote in message
    news:[email protected]...
    > can anyone tell me if i could do the following:
    > A1 A2
    > 1 =IF(OR(A1=1,2,3,4,5),"x","?")
    > 2
    > 3
    > 4
    > 5
    > If the above is incorrect, can someone tell me how to put the values in an
    > or statement with out typing A1 all the time forall the values...Thanks in
    > advance




  4. #4
    Ron Coderre
    Guest

    RE: or()

    Try this:

    A2: =IF(OR(A1={1,2,3,4,5}),"x","?")

    Note the braces { } above

    Does that help?
    ***********
    Regards,
    Ron

    XL2002, WinXP


    "nick" wrote:

    > can anyone tell me if i could do the following:
    > A1 A2
    > 1 =IF(OR(A1=1,2,3,4,5),"x","?")
    > 2
    > 3
    > 4
    > 5
    > If the above is incorrect, can someone tell me how to put the values in an
    > or statement with out typing A1 all the time forall the values...Thanks in
    > advance


  5. #5
    Biff
    Guest

    Re: or()

    Hi!

    Try one of these:

    =IF(OR(A1={1,2,3,4,5}),"x","?")

    =IF(ISNUMBER(MATCH(A1,{1,2,3,4,5},0)),"X","?")

    F1:F5 = 1;2;3;4;5

    =IF(ISNUMBER(MATCH(A1,F1:F5,0)),"X","?")

    Array entered using the key combination of CTRL,SHIFT,ENTER:

    =IF(OR(A1=F1:F5),"x","?")

    Biff

    "nick" <[email protected]> wrote in message
    news:[email protected]...
    > can anyone tell me if i could do the following:
    > A1 A2
    > 1 =IF(OR(A1=1,2,3,4,5),"x","?")
    > 2
    > 3
    > 4
    > 5
    > If the above is incorrect, can someone tell me how to put the values in an
    > or statement with out typing A1 all the time forall the values...Thanks in
    > advance




  6. #6
    nick
    Guest

    Re: or()

    Thank you all...it worked!

    "SteveG" wrote:

    >
    > Nick,
    >
    >
    > =IF(OR(A1={1,2,3,4,5}),"x","?")
    >
    > HTH
    >
    > Steve
    >
    >
    > --
    > SteveG
    > ------------------------------------------------------------------------
    > SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
    > View this thread: http://www.excelforum.com/showthread...hreadid=542264
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1