+ Reply to Thread
Results 1 to 5 of 5

IF + AND string - Help!

Hybrid View

  1. #1
    Registered User
    Join Date
    03-30-2004
    Posts
    31

    IF + AND string - Help!

    if(and(i4<1500,i4>1400),1.039, if(and(i4<1400,i4>1300), 1.082, if(i4<1300,i4>1200),1.132, if(and(i4<1200,i4>1100),1.185,if(and(i4<1100,i4>1000),1.262,1))))
    I'm getting an error indicator at 1.132. I thought I could nest 7 IF statements together? What am I missing?

  2. #2
    Stefi
    Guest

    RE: IF + AND string - Help!

    You missed AND in the second line:

    > > if(AND(i4<1300,i4>1200),1.132,


    Stefi

    „BigDave” ezt *rta:

    >
    > > if(and(i4<1500,i4>1400),1.039, if(and(i4<1400,i4>1300), 1.082,
    > > if(i4<1300,i4>1200),1.132,
    > > if(and(i4<1200,i4>1100),1.185,if(and(i4<1100,i4>1000),1.262,1))))

    >
    > I'm getting an error indicator at *1.132*. I thought I could nest 7 IF
    > statements together? What am I missing?
    >
    >
    > --
    > BigDave
    > ------------------------------------------------------------------------
    > BigDave's Profile: http://www.excelforum.com/member.php...fo&userid=7741
    > View this thread: http://www.excelforum.com/showthread...hreadid=471726
    >
    >


  3. #3
    Registered User
    Join Date
    03-30-2004
    Posts
    31
    BigDave = idiot

    Thanks

  4. #4
    Stefi
    Guest

    Re: IF + AND string - Help!

    Don't be so rude to yourself! It can happen to anybody. Somtimes a fresh eye
    catches sight more easily.
    Stefi


    "BigDave" wrote:

    >
    > BigDave = idiot
    >
    > Thanks
    >
    >
    > --
    > BigDave
    > ------------------------------------------------------------------------
    > BigDave's Profile: http://www.excelforum.com/member.php...fo&userid=7741
    > View this thread: http://www.excelforum.com/showthread...hreadid=471726
    >
    >


  5. #5
    carl.manaster@gmail.com
    Guest

    Re: IF + AND string - Help!

    You're missing an "and" - the 1300, 1200 comparision needs to be
    wrapped with and().

    Peace,
    --Carl


+ 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