+ Reply to Thread
Results 1 to 6 of 6

VLOOK UP Issue - Works on some cells, but not on others!

  1. #1
    Registered User
    Join Date
    06-20-2014
    Location
    London
    MS-Off Ver
    Office 2007
    Posts
    45

    Angry VLOOK UP Issue - Works on some cells, but not on others!

    Hi Everyone,

    I have sat for days and days trying to figure this issue out and it is beyond me.

    I have created a mock spreadsheet, which I have attached. This mimics the problem I am having with vlookup. So basically, we have a product weight, on which we add 0.015kg to get postage weight. We then use this postage weight, to vlookup the postage cost.

    So this seems to work for some weights, but not others. Ie. For postage weight of 0.225kg it returns #N/A, but for many other it would actually return a weight. In the 0.225kg, if I type in 0.225kg instead of having this generated as a formula, then it returns a postage cost. However, for the others even with the formula to generate the postage weight it still populated a postage cost.

    It sounds confusing, but please review the spreadsheet, it is very easy to get your head around. I have tried everything, from changing formatting of cells, to trimming it etc. Ultimately we want it to work for all cells with formula. I am completely baffled as to why this is happening.

    Thank you in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: VLOOK UP Issue - Works on some cells, but not on others!

    It has to do with Excel Floating Point Arithmetic and possible inaccuracies... see here: https://support.microsoft.com/en-ca/kb/78113

    Then try:

    =VLOOKUP(ROUND(B2,3),Sheet2!A:B,2,FALSE)
    Where there is a will there are many ways.

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

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

  3. #3
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: VLOOK UP Issue - Works on some cells, but not on others!

    The numbers are not the same even though they look the same.
    If you go to cell B67 and manually type 0.225 and hit enter your formula works.

    Alternatively you can try the following and never think of it again.
    Please Login or Register  to view this content.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  4. #4
    Registered User
    Join Date
    06-20-2014
    Location
    London
    MS-Off Ver
    Office 2007
    Posts
    45

    Re: VLOOK UP Issue - Works on some cells, but not on others!

    Thanks so much, this works!

    However, is there anyway, I can get the postage weight which already is being populated by a formula to round instead?

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

    Re: VLOOK UP Issue - Works on some cells, but not on others!

    Yes, try:

    =ROUND(A2+0.015,3)

  6. #6
    Registered User
    Join Date
    06-20-2014
    Location
    London
    MS-Off Ver
    Office 2007
    Posts
    45

    Re: VLOOK UP Issue - Works on some cells, but not on others!

    Hello,

    Thanks for this, I managed to crack this one myself, but you are a star! Much appreciated.

+ 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. issue with my macro - need serious help - tab through works, but the button doesn't
    By rgiglio7489 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-27-2015, 03:43 AM
  2. simple vlook up issue...cannot figure out
    By putitwhere in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-02-2013, 01:25 PM
  3. [SOLVED] Vlook up and #N/A issue
    By Markarmi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-17-2013, 12:02 PM
  4. Vlook up issue
    By ashinSydney in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-13-2013, 10:39 AM
  5. Help with multiple vba loop issue please - one part works, one does not
    By dawatcher in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-25-2012, 09:11 PM
  6. Function issue/bug works sometimes.
    By Cicada in forum Excel General
    Replies: 0
    Last Post: 09-12-2011, 05:41 PM
  7. Vlook up issue
    By toronto747 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-28-2007, 06:12 AM

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