+ Reply to Thread
Results 1 to 5 of 5

Nested If Formula #VALUE! Error!

  1. #1
    Forum Contributor
    Join Date
    01-07-2012
    Location
    Bangalore
    MS-Off Ver
    Office 365
    Posts
    368

    Smile Nested If Formula #VALUE! Error!

    Dear Experts,

    Need your valuable support to understand and clear below stated issue!

    The Reason for me to post this thread on our forum is…. I am into supply chain team in one of the big Manufacturing Unit and handling more than 10,000 items. I am suppose to have a close track and present detailed summary like

    What and all the parts are:-

    1. Available with us (On Hand)
    2. Date confirmed by supplier is Okay
    3. Critical (or) Very Critical
    4. Transit Etc………………..,

    For all 10K items, manually If I go and check above said category and update the status for each item. It may take more than a Day to complete this task.

    Thus, with my available knowledge in Excel; I designed the Nested If function. Which keep gets updated automatically based on inputs (like Receipts date, Qty, Etc.,). Please open the attached file for your further Reference.

    The formula which is there in “Column M” works extremely well except one condition. That is, when the “Receipts ~ 1” (Column C) is having any Text it provides #VALUE! Error.

    Can you please help me get this issue cleared? so that it will help me a lot!

    Immediate help is Really Appreciated, Looking forward great suggestion from your end!

    Thanks & Regards,
    Rajeshkumar R

    Attached Files Attached Files
    Last edited by Rajeshkumar R; 06-01-2013 at 06:40 AM. Reason: Query Resolved

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Nested If Formula #VALUE! Error!

    you could wrap the whole thing into an iferror( which looks for #N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, or #NULL!.

    so this is the formula you have
    =IF(ETA_1="NR","NR",IF(SHORTAGE_1>=0,"On Hand",IF(ISBLANK(ETA_1),"ETA To Be Updated",IF(AND(SHORTAGE_1+ETA_1>=0,OR(REF_1="T",ETA_1="Receiving",ETA_1="ST",ETA_1="IGI")),"Transit",IF(OR(ETA_1="NO PO",REF_1="L"),"Okay",IF(AND(SHORTAGE_1+QTY_1>=0,OR(ETA_1<=TARGET_1)),"Okay",IF(REF_1="E","Very Critical",IF(AND(SHORTAGE_1+QTY_1>=0,OR(ETA_1>TARGET_1,ETA_1="TBA",ETA_1="IGI Rejected")),"Critical",IF(AND(SHORTAGE_1+QTY_1<0,SHORTAGE_1+QTY_1+QTY_2>=0,ETA_2<=TARGET_1),"Okay",IF(AND(SHORTAGE_1+QTY_1<0,SHORTAGE_1+QTY_1+QTY_2>=0,OR(ETA_2>TARGET_1,ETA_2="TBA")),"Critical",IF(AND(SHORTAGE_1+QTY_1<0,SHORTAGE_1+QTY_1+QTY_2+QTY_3>=0,ETA_3<=TARGET_1),"Okay",IF(AND(SHORTAGE_1+QTY_1+QTY_2<0,SHORTAGE_1+QTY_1+QTY_2+QTY_3>=0,OR(ETA_3>TARGET_1,ETA_3="TBA")),"Critical",IF(AND(SHORTAGE_1+QTY_1+QTY_2+QTY_3<0,SHORTAGE_1+QTY_1+QTY_2+QTY_3+QTY_4>=0,ETA_4<=TARGET_1),"Okay",IF(AND(SHORTAGE_1+QTY_1+QTY_2+QTY_3<0,SHORTAGE_1+QTY_1+QTY_2+QTY_3+QTY_4>=0,OR(ETA_4>TARGET_1,ETA_4="TBA")),"Critical",IF(AND(SHORTAGE_1+QTY_1+QTY_2+QTY_3+QTY_4<0,SHORTAGE_1+QTY_1+QTY_2+QTY_3+QTY_4+QTY_5>=0,ETA_5<=TARGET_1),"Okay",IF(AND(SHORTAGE_1+QTY_1+QTY_2+QTY_3+QTY_4<0,SHORTAGE_1+QTY_1+QTY_2+QTY_3+QTY_4+QTY_5>=0,OR(ETA_5>TARGET_1,ETA_5="TBA")),"Critical",IF(SHORTAGE_1+QTY_1+QTY_2+QTY_3+QTY_4+QTY_5<0,"ETA Qty Not Enough")))))))))))))))))

    now add

    =IFERROR (

    your formula

    , "what to do if an error returned")

    see attached spreadsheet with iferror added
    Attached Files Attached Files
    Last edited by etaf; 05-30-2013 at 08:41 AM.

  3. #3
    Forum Contributor
    Join Date
    01-07-2012
    Location
    Bangalore
    MS-Off Ver
    Office 365
    Posts
    368

    Re: Nested If Formula #VALUE! Error!

    Hello etaf,

    Thanks for your instant replay! Hope it was my mistake I have not explained well in previous post!

    My concern in the Formula is “Not to give any signal like Error in Cell”. Instead my real concern was like when there is a text in Receipts ~ 1 Column, as per my Nested IF Formula it suppose to do some calculation and give an output like “Critical” or something else. This is not happening in the existing formula.

    Can you please do suggest getting a calculated output instead of a #VALUE! Error?

    Thanks & Regards,
    Rajeshkumar R

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Nested If Formula #VALUE! Error!

    if its got text in the field then you are not goingto be able to do a calculation on that field
    if you want the word "critical" just replace in my formula

    "what to do if an error returned"

    with
    "Critical"

    so if the whole formula you have results in #Value this will resolve that
    OR

    do you think there is an error in your formula anyway

    =IFERROR(


    IF(ETA_1="NR","NR",

    IF(SHORTAGE_1>=0,"On Hand",

    IF(ISBLANK(ETA_1),"ETA To Be Updated",

    IF(AND(SHORTAGE_1+ETA_1>=0,OR(REF_1="T",ETA_1="Receiving",ETA_1="ST",ETA_1="IGI")),"Transit",

    IF(OR(ETA_1="NO PO",REF_1="L"),"Okay",

    IF(AND(SHORTAGE_1+QTY_1>=0,OR(ETA_1<=TARGET_1)),"Okay",

    IF(REF_1="E","Very Critical",

    IF(AND(SHORTAGE_1+QTY_1>=0,OR(ETA_1>TARGET_1,ETA_1="TBA",ETA_1="IGI Rejected")),"Critical",

    IF(AND(SHORTAGE_1+QTY_1<0,SHORTAGE_1+QTY_1+QTY_2>=0,ETA_2<=TARGET_1),"Okay",

    IF(AND(SHORTAGE_1+QTY_1<0,SHORTAGE_1+QTY_1+QTY_2>=0,OR(ETA_2>TARGET_1,ETA_2="TBA")),"Critical",

    IF(AND(SHORTAGE_1+QTY_1<0,SHORTAGE_1+QTY_1+QTY_2+QTY_3>=0,ETA_3<=TARGET_1),"Okay",

    IF(AND(SHORTAGE_1+QTY_1+QTY_2<0,SHORTAGE_1+QTY_1+QTY_2+QTY_3>=0,OR(ETA_3>TARGET_1,ETA_3="TBA")),"Critical",

    IF(AND(SHORTAGE_1+QTY_1+QTY_2+QTY_3<0,SHORTAGE_1+QTY_1+QTY_2+QTY_3+QTY_4>=0,ETA_4<=TARGET_1),"Okay",

    IF(AND(SHORTAGE_1+QTY_1+QTY_2+QTY_3<0,SHORTAGE_1+QTY_1+QTY_2+QTY_3+QTY_4>=0,OR(ETA_4>TARGET_1,ETA_4="TBA")),"Critical",

    IF(AND(SHORTAGE_1+QTY_1+QTY_2+QTY_3+QTY_4<0,SHORTAGE_1+QTY_1+QTY_2+QTY_3+QTY_4+QTY_5>=0,ETA_5<=TARGET_1),"Okay",

    IF(AND(SHORTAGE_1+QTY_1+QTY_2+QTY_3+QTY_4<0,SHORTAGE_1+QTY_1+QTY_2+QTY_3+QTY_4+QTY_5>=0,OR(ETA_5>TARGET_1,ETA_5="TBA")),"Critical",

    IF(SHORTAGE_1+QTY_1+QTY_2+QTY_3+QTY_4+QTY_5<0,"ETA Qty Not Enough"))))))))))))))))),

    "Critical")

    OR are you looking for someone to check out ALL the IFs you have

    This part
    =AND(SHORTAGE_1+ETA_1>=0,OR(REF_1="T",ETA_1="Receiving",ETA_1="ST",ETA_1="IGI"))

    produces a #Value error

    and its this part of the formula
    =SHORTAGE_1+ETA_1>=0
    as you are checking a text value for a number value , using >0

    see attached
    column O and P
    Attached Files Attached Files
    Last edited by etaf; 05-31-2013 at 07:19 AM.

  5. #5
    Forum Contributor
    Join Date
    01-07-2012
    Location
    Bangalore
    MS-Off Ver
    Office 365
    Posts
    368

    Re: Nested If Formula #VALUE! Error!

    Hi etaf,

    Thanks for your clarification, I could able to Resolve the issue with your inputs!

    Thanks & Regards,
    Rajeshkumar R

+ 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