+ Reply to Thread
Results 1 to 6 of 6

Thread: #N/A Error for IF Statement With VLOOKUP Formula

  1. #1
    Registered User
    Join Date
    12-20-2011
    Location
    Oklahoma
    MS-Off Ver
    Excel 2007
    Posts
    3

    Question #N/A Error for IF Statement With VLOOKUP Formula

    I need help with a formula. I'm getting an #N/A error for the following formula: =IF($D$17=0,0,VLOOKUP($D$17,C20:F22,4,0)) This has me baffled. I attached the spreadsheet for review. I put arrows and notes on the sheet for quick identification of the issue. Let me give you a run down of the problem: when you put the flat polish price in. That price matches the lookup table and the Fab Prices table, but it’s giving an error.

    For example: If you look at the sheet I attached. Then set the mark up to 3. The left column of the lookup table should be .06, .15, and .12. If you enter .06 in the Flat Polish box the formula works. If you enter .15 in the Flat Polish box the formula doesn’t work. If you change the mark up and enter in the corresponding Flat Polish rate then you may have all three work or you may not.

    I really appreciate any help given as I have no idea how to correct it.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    12-14-2009
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    986

    Re: #N/A Error for IF Statement With VLOOKUP Formula

    Ignore this post
    Last edited by JieJenn; 12-20-2011 at 05:57 PM. Reason: Error
    To thank someone who has helped you, click on the star icon below their name.

    I hate reading

    Portfolio

    I need a job.
    I am young and incompetent

  3. #3
    Valued Forum Contributor
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    379

    Re: #N/A Error for IF Statement With VLOOKUP Formula

    From Excel help on VLOOKUP "...The values in the first column of table_array are the values searched by lookup_value. These values can be text, numbers, or logical values. ..." A formula (=T11) is not one of these values.

  4. #4
    Registered User
    Join Date
    12-20-2011
    Location
    Oklahoma
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: #N/A Error for IF Statement With VLOOKUP Formula

    Do you have any suggestions on how to make this work. Most all the cells in the spreadsheet have a formula. I'm lost , but if someone can point me in the right direction I can fix it.

  5. #5
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,608

    Re: #N/A Error for IF Statement With VLOOKUP Formula

    It has to do with Excel's precision in calculations...

    Perhaps change the formula =S11 to =ROUND(S11,2) and so in range C20:C22.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  6. #6
    Registered User
    Join Date
    12-20-2011
    Location
    Oklahoma
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: #N/A Error for IF Statement With VLOOKUP Formula

    Awesome!! It works! Thank you very much!! I really appreciate your help. I knew it had to be something simple, but had no idea.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0