+ Reply to Thread
Results 1 to 3 of 3

Nested IF statements that involve #N/A errors from vlookups

  1. #1
    Registered User
    Join Date
    07-02-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    2

    Nested IF statements that involve #N/A errors from vlookups

    Hi,

    I have a spreadsheet that looks up a product and returns an associated dollar discount value. There are 3 possible outcomes of the lookup. The product is not on the discount list and so returns an #N/A error. The product is on the discount list and returns a discount value greater than zero The product is on the discount list but the value of the discount is zero.

    Depending on the result of the lookup I want a nested if formula that inserts a designated narration in another separate column. I've made some headway but I've no idea how to handle the #N/A errors that come up. An example of what I want is in the attached file.

    Thank you!Book2.xlsx

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Nested IF statements that involve #N/A errors from vlookups

    hi there, welcome to the forum. perhaps you should do this for your VLOOKUP formulas for it to look neater:
    =IFERROR(VLOOKUP formula,"")
    then in C2:
    =IF(B2="","Not in Discount List",IF(B2>0,"Yes","NO - Zero Discount"))

    if you want to keep the N/A there, then in C2:
    =IF(ISNA(B2),"Not in Discount List",IF(B2>0,"Yes","NO - Zero Discount"))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    07-02-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Nested IF statements that involve #N/A errors from vlookups

    Thank you so much for the prompt response and the tips. Your suggestion worked a treat! This formula will help me save so much time now.

+ 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