+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : VLOOKUP formula returning #N/A - even though value is in table

  1. #1
    Registered User
    Join Date
    06-27-2011
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    VLOOKUP formula returning #N/A - even though value is in table

    I have a formula as below:

    =VLOOKUP(B25,OverallRatings!A1:B500,2,FALSE)

    Where B25 is formatted to be a number restricted to two decimal points (ranging between 0.01 and 5.00), and is a calculation of other cells
    =(B15*D2)+(B24*C2)

    And the OverallRatings sheet has a full list of the range 0.01 to 5.00 sorted in order.

    In several instances the result returned is #N/A, yet not all.

    It appears from the Show Calculation Steps box that the issue is related to the formatting of the number. The box appears with the following Evaluation:

    VLOOKUP(3.0625,OverallRatings!A1:B500,2,FALSE)

    The actual cell is displaying 3.06, not 3.0625.

    Any advice on how to resolve this, would be greatly appreciated.

  2. #2
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: VLOOKUP formula returning #N/A - even though value is in table

    Hi

    Just because the cell is formatted to show 2 decimal places, does not mean that the underlying formula result is 2 places.

    Change
    =(B15*D2)+(B24*C2)
    to
    =ROUND(=(B15*D2)+(B24*C2),2)
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

  3. #3
    Registered User
    Join Date
    06-27-2011
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: VLOOKUP formula returning #N/A - even though value is in table

    Thanks Roger....this worked perfectly.

    Its such a delight to know an answer can be found so quickly.

+ 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.6.0 RC 1