+ Reply to Thread
Results 1 to 6 of 6

Can anyone tell me what's wrong with this formula?

  1. #1
    Linda
    Guest

    Can anyone tell me what's wrong with this formula?

    Can anyone tell me what's wrong with this formula:
    =IF(D5=517,8,IF(D5=520,8,IF(D5=521,8,IF(D5=522,8,IF(D5=523,8,IF(D5=524,8,IF(D5=567,8,IF(D5>24,0,D5))))))))
    I get an error message and I do not know why? Please help!

  2. #2
    Niek Otten
    Guest

    Re: Can anyone tell me what's wrong with this formula?

    http://www.cpearson.com/excel/nested.htm

    --
    Kind regards,

    Niek Otten

    "Linda" <[email protected]> wrote in message news:[email protected]...
    > Can anyone tell me what's wrong with this formula:
    > =IF(D5=517,8,IF(D5=520,8,IF(D5=521,8,IF(D5=522,8,IF(D5=523,8,IF(D5=524,8,IF(D5=567,8,IF(D5>24,0,D5))))))))
    > I get an error message and I do not know why? Please help!




  3. #3
    Bob Phillips
    Guest

    Re: Can anyone tell me what's wrong with this formula?

    I don't, but it could be simpler

    =IF(OR(D5=517,D5=520,D5=521,D5=522,D5=523,D5=524,D5=567),8,IF(D5>24,0,D5))

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "Linda" <[email protected]> wrote in message
    news:[email protected]...
    > Can anyone tell me what's wrong with this formula:
    >

    =IF(D5=517,8,IF(D5=520,8,IF(D5=521,8,IF(D5=522,8,IF(D5=523,8,IF(D5=524,8,IF(
    D5=567,8,IF(D5>24,0,D5))))))))
    > I get an error message and I do not know why? Please help!




  4. #4
    Dana DeLouis
    Guest

    Re: Can anyone tell me what's wrong with this formula?

    > =IF(D5=517,8,IF(D5=520,8,IF(D5=521...etc

    Would this work?

    =IF(OR(D5={517,520,521,522,523,524,567}),8,IF(D5>24,0,D5))

    --
    HTH. :>)
    Dana DeLouis
    Windows XP, Office 2003


    "Linda" <[email protected]> wrote in message
    news:[email protected]...
    > Can anyone tell me what's wrong with this formula:
    > =IF(D5=517,8,IF(D5=520,8,IF(D5=521,8,IF(D5=522,8,IF(D5=523,8,IF(D5=524,8,IF(D5=567,8,IF(D5>24,0,D5))))))))
    > I get an error message and I do not know why? Please help!




  5. #5
    ah
    Guest

    RE: Can anyone tell me what's wrong with this formula?

    The last part of the formula overides all the other if statements and you
    have too many nested if statements, You can only have 7. You could solve this
    with a lookup table or here is another way
    =IF(OR(D5=517,D5=520,D5=521,D5=522),8,"")
    --
    thanks

    ah


    "Linda" wrote:

    > Can anyone tell me what's wrong with this formula:
    > =IF(D5=517,8,IF(D5=520,8,IF(D5=521,8,IF(D5=522,8,IF(D5=523,8,IF(D5=524,8,IF(D5=567,8,IF(D5>24,0,D5))))))))
    > I get an error message and I do not know why? Please help!


  6. #6
    ChE_maynard
    Guest

    Re: Can anyone tell me what's wrong with this formula?


    Linda Wrote:
    > Can anyone tell me what's wrong with this formula:
    > =IF(D5=517,8,IF(D5=520,8,IF(D5=521,8,IF(D5=522,8,IF(D5=523,8,IF(D5=524,8,IF(D5=567,8,IF(D524,0,D5))))))))
    > I get an error message and I do not know why? Please help!


    Look at the fifth "IF", there's a space between the "I" and the "F".
    Hope this it!
    maynard


    --
    ChE_maynard

+ 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