+ Reply to Thread
Results 1 to 4 of 4

If(and spread sheet syntax

  1. #1
    Forum Contributor
    Join Date
    02-19-2004
    Location
    San Francisco Bay Area
    MS-Off Ver
    Microsoft 365 Aps for enterprise.
    Posts
    241

    If(and spread sheet syntax

    Hello All,
    I am trying to test a range of values in a cell:

    if(and("a1" is 0 to 10, "Jack"), if("a1" is 10001 to 11000, "Jim), if("a1" is 11000 to 12000, "Joe')

    Can anyone give me the correct systax or any other way to test this?
    Thank you
    Syed

  2. #2
    Aladin Akyurek
    Guest

    Re: If(and spread sheet syntax

    Better to invoke a LOOKUP formula, something like:

    =LOOKUP(A1,{0,2.229E-308,11,10001,11000},{"","Jack","","Jim","Joe"})

    saziz wrote:
    > Hello All,
    > I am trying to test a range of values in a cell:
    >
    > if(and("a1" is 0 to 10, "Jack"), if("a1" is 10001 to 11000, "Jim),
    > if("a1" is 11000 to 12000, "Joe')
    >
    > Can anyone give me the correct systax or any other way to test this?
    > Thank you
    > Syed
    >
    >


  3. #3
    RagDyer
    Guest

    Re: If(and spread sheet syntax

    One way:

    =IF(AND(A1>=0,A1<=10),"Jack",IF(AND(A1>=10001,A1<=11000),"Jim",IF(AND(A1>=11
    001,A1<=12000),"Joe","No Match")))
    --
    HTH,

    RD
    ==============================================
    Please keep all correspondence within the Group, so all may benefit!
    ==============================================



    "saziz" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hello All,
    > I am trying to test a range of values in a cell:
    >
    > if(and("a1" is 0 to 10, "Jack"), if("a1" is 10001 to 11000, "Jim),
    > if("a1" is 11000 to 12000, "Joe')
    >
    > Can anyone give me the correct systax or any other way to test this?
    > Thank you
    > Syed
    >
    >
    > --
    > saziz
    > ------------------------------------------------------------------------
    > saziz's Profile:

    http://www.excelforum.com/member.php...fo&userid=6350
    > View this thread: http://www.excelforum.com/showthread...hreadid=475212
    >



  4. #4
    Forum Contributor
    Join Date
    02-19-2004
    Location
    San Francisco Bay Area
    MS-Off Ver
    Microsoft 365 Aps for enterprise.
    Posts
    241
    Thank you Aladin & RD.
    Syed

+ 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