+ Reply to Thread
Results 1 to 7 of 7

=#VALUE! Error

  1. #1
    Registered User
    Join Date
    02-22-2013
    Location
    UK
    MS-Off Ver
    Excel Mac 2011
    Posts
    2

    =#VALUE! Error

    When I type in the following nested IF I get a =#VALUE! Error after the spreadsheet has been saved and reloaded. The contents of the cell are as I expected but the formula has gone and been replaced by =#VALUE!.

    The formula is
    =IF(B4=21,"£21 Subscription",IF(B4=42,"£42 Subscription",IF(B4=44.5,"£42 + £2.50 joining fee",IF(B4=23.5,"£21 Subscription + £2.50 joining fee",IF(B4=26.5,"£24 Subscription + £2.50 joining fee",IF(B4=14.5,"£12 Subscription + £2.50 joining fee",IF(B4=8.5,"£6 Subscription + £2.50 joining fee",IF(B4=26,"£23.50 Subscription + £2.50 joining fee",IF(B4=52,"£49.50 Subscription + £2.50 joining fee","Check this")))))))))

    If I remove two of the nested IF statement if works as can be saved and reloaded. Have I reached a maximum length or depth for the IF statement?

    Is there a better way of doing this? I test the contents of B4 for 7 valid responses, if they are not 21 or 42 then I need to split off the 2.50 joining fee. If not one of the 7 valid resp
    onses then I need an error prompt

    Thanks
    David

  2. #2
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: =#VALUE! Error

    Prior to Excel 2007, Excel formulas were limited to seven levels of nesting. In Excel 2007 and 2010, the maximum number of levels of nesting that a formula can have has been raised to 64. A related issue is that in Excel 2003 and earlier, formulas were limited to 255 characters; they are now limited to 1,023 characters in Excel 2007.

    I put the formula in Excel 2010 and had no errors
    Click on star (*) below if this helps

  3. #3
    Registered User
    Join Date
    02-22-2013
    Location
    Costa Rica
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: =#VALUE! Error

    I need to create a drop down menu that also allow me to enter some just a couple words and it has to narrow down the options.
    Please I need some help with that

  4. #4
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: =#VALUE! Error

    Francelita do not hijack someone else's thread. Start you own thread/question

  5. #5
    Registered User
    Join Date
    02-22-2013
    Location
    UK
    MS-Off Ver
    Excel Mac 2011
    Posts
    2

    Re: =#VALUE! Error

    Thanks for pointing me in the right direction. I am using Excel Mac 2010 but need to save it as a .xls version to pass on to a user who has an older version, hence the limitation comes into play. That explains why is works until it is saved and reloaded.

    Thanks again.

    David

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: =#VALUE! Error

    Thanks K m.

    Francelita,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  7. #7
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: =#VALUE! Error

    DavidStewardUK,

    If this answers, please change the Title by adding [SOLVED] and click on the star to provide feedback

+ 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