+ Reply to Thread
Results 1 to 13 of 13

Long formula and #VALUE error

  1. #1
    Forum Contributor
    Join Date
    04-22-2017
    Location
    AU
    MS-Off Ver
    Microsoft 365
    Posts
    291

    Long formula and #VALUE error

    Hi

    Can anyone assist with a way to shorten the below formula and stop the #VALUE! error

    =IF(S59>=X59,$Z$22,IF(S59>=(X59*AD22),$Z$20,IF(S59<=(X59*AD20),$Z$19))),IF(S59>=W59,$Z$22,IF(S59>=(W59*AD22),$Z$20,IF(S59<=(W59*AD20),$Z$19))),IF(S59>=V59,$Z$22,IF(S59>=(V59*AD22),$Z$20,IF(S59<=(V59*AD20),$Z$19))),IF(S59>=U59,$Z$22,IF(S59>=(U59*AD22),$Z$20,IF(S59<=(U59*AD20),$Z$19)))

    Thankyou

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Long formula and #VALUE error

    Well... the formula is broken. So without knowuing what you EXPECT it to do.... it's more difficult to fix it.

    Please explain what you WANT it to do and...

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever). Please don't attach a picture of an Excel sheet (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,909

    Re: Long formula and #VALUE error

    Try:

    =IF(S59>=X59,$Z$22,IF(S59>=X59*AD22,$Z$20,IF(S59<=X59*AD20,$Z$19,IF(S59>=W59,$Z$22,IF(S59>=W59*AD22,$Z$20,
    IF(S59<=W59*AD20,$Z$19,IF(S59>=V59,$Z$22,IF(S59>=V59*AD22,$Z$20,IF(S59<=V59*AD20,$Z$19,IF(S59>=U59,$Z$22,
    IF(S59>=U59*AD22,$Z$20,IF(S59<=(U59*AD20),$Z$19))))))))))))

  4. #4
    Forum Contributor
    Join Date
    04-22-2017
    Location
    AU
    MS-Off Ver
    Microsoft 365
    Posts
    291

    Re: Long formula and #VALUE error

    Thankyou Phucam.
    The #Value! error is gone, but the calcs don't work. Would iFS work here? If so, how please?

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Long formula and #VALUE error

    So to repeat my Q. What do you EXPECT the formula to do???????

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Long formula and #VALUE error

    Your formula is not structured correctly, so it can't work!!

    =IF(S59>=X59,$Z$22,IF(S59>=(X59*AD22),$Z$20,IF(S59<=(X59*AD20),$Z$19))),

    IF(S59>=W59,$Z$22,IF(S59>=(W59*AD22),$Z$20,IF(S59<=(W59*AD20),$Z$19))),

    IF(S59>=V59,$Z$22,IF(S59>=(V59*AD22),$Z$20,IF(S59<=(V59*AD20),$Z$19))),

    IF(S59>=U59,$Z$22,IF(S59>=(U59*AD22),$Z$20,IF(S59<=(U59*AD20),$Z$19)))

    The values in U, V, W & x59 do NOT influence the outcome: in every case the output is Z19, Z20 or z22. So EXPLAIN what you want it to do... 'cos it isn't doing what you think it's doing!!

  7. #7
    Forum Contributor
    Join Date
    04-22-2017
    Location
    AU
    MS-Off Ver
    Microsoft 365
    Posts
    291

    Re: Long formula and #VALUE error

    The attached is hopefully designed to rate KPIs based on the levels of Accreditations

    Hoping for one formula which will cater for all levels.
    Attached Files Attached Files
    Last edited by VisionSmart; 11-18-2018 at 02:35 AM. Reason: Attached file

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Long formula and #VALUE error

    So what is your expected answer : one assessment (in which case how does Excel know if you want assessment of L1 or L2 or whatever??) or 4 assessments, one each (in which case how should this be presented).

    What is the expected answer for 100?

  9. #9
    Forum Contributor
    Join Date
    04-22-2017
    Location
    AU
    MS-Off Ver
    Microsoft 365
    Posts
    291

    Re: Long formula and #VALUE error

    I can now see why more questions as I have not explained this one very well.
    My expected answer is explained in the new attached WorkBook
    Has a ReadMe Tab - hopefully enough to assist please.
    Attached Files Attached Files

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Long formula and #VALUE error

    One way:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    deivers the correct result. Next the CF...

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Long formula and #VALUE error

    Now complete with the desired CF....

    Hopefully you see the value of an explanation, rather than a non-working formula!!
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    04-22-2017
    Location
    AU
    MS-Off Ver
    Microsoft 365
    Posts
    291

    Re: Long formula and #VALUE error

    Fantastic solution thankyou Glen.
    I would never have achieved that formula.

    FYI – attached is small changes in File Rev 1C with explanation.
    Attached Files Attached Files

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Long formula and #VALUE error

    Ah yes... I did get them the wrong way round!!! Glad to have got there in the end!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Formula too long gives me error
    By Matthewious2016 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-01-2016, 11:27 AM
  2. formula too long error
    By gn82 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-26-2011, 06:36 AM
  3. formula too long error?
    By dread in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-29-2006, 01:40 AM
  4. formula is too long error
    By w1nter11 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-13-2006, 08:10 PM
  5. [SOLVED] Formula too long error...
    By NWO in forum Excel General
    Replies: 3
    Last Post: 01-12-2006, 05:45 PM
  6. Error formula too long
    By JJT in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-23-2005, 12:10 PM
  7. [SOLVED] formula too long error
    By SB in forum Excel General
    Replies: 2
    Last Post: 12-19-2005, 06:00 PM

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