+ Reply to Thread
Results 1 to 9 of 9

Vlookup Formula does not return value

  1. #1
    Registered User
    Join Date
    05-02-2007
    Location
    US
    MS-Off Ver
    2000 @work, 2003 @home
    Posts
    23

    (Bump) Vlookup Formula does not return value

    Hello all,

    I realize that this may be a simple solution but I can't find it.
    I am using vlookup, have been using it for about 2 years, so I feel that I have some good knowledge on it, but when this happens, it makes it hard.

    I am comparing the quantities on two seperate spreadsheets in the same workbook, I have in the "Current" tab to compare the values in column C in both sheets based on the criteria from column B.
    .. I then use the conditional formatting to show me if there is any differences in the values and if so then highlight them.

    On Row 4, in both tabs, the value in Column B is the same, these sheets are copied from another workbook that is always the same. I have looked at the formatting and they are the same.
    ..Can anyone shed some light? Why did I have an #N/A appear when there is the number ? And I copied down on the vlookup formula so everything is the same.
    Attached Files Attached Files
    Last edited by dcraker; 04-09-2008 at 03:16 PM. Reason: adding bump

  2. #2
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    On the current tab, the number in B4 has one space at the end, so the that cell doesn't really match what's in Previous.

  3. #3
    Registered User
    Join Date
    05-02-2007
    Location
    US
    MS-Off Ver
    2000 @work, 2003 @home
    Posts
    23
    ahh,

    Thank you darkyam, I missed that entirely. I really do appreciate you pointing that out to me, now I can adjust around it. I have seen threads that relate to that.

    darkyam, keep it up, I am sure that many people here appreciate your help as well as the others that volunteer their time as well.

    Have a wonderful day.
    David

  4. #4
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    You're very welcome. Thanks for the feedback.

  5. #5
    Registered User
    Join Date
    05-02-2007
    Location
    US
    MS-Off Ver
    2000 @work, 2003 @home
    Posts
    23
    Okay, I was playing with it some more and, it worked the first time but then it didn't.
    ..It still does the same thing, I even used the format painter to double check this. And as it goes in the future, it may become a problem... so unless there is something that I am missing.
    ..What happens is, that when the number is, let's say, retyped, then the formula will then return a #N/A value. As it stands, the numbers are set in General format, nothing has been updated, when the numbers are set up to be pasted into the spreadsheet.

    I noticed this.
    From the regular pasting, the numbers in column B will have the Horizontal alignment to the left, when the number is retyped, it will move to the right. Viewing the Format settings, it is still General in all respects of the cell formatting. There was nothing different with the exception of it being pasted by macro and then retyped by hand. The icons for the Left and Right alignment is not affected either, showing that everything is still General.

    Keep in mind, that the spreadsheet is still to be user friendly with everything capable of editing by the user.

    Hope that makes sense, and sorry about bringing the thread back up to the top again, especially when I thought it was solved. Which at first glance, it was, but now it's not.

    Thanks,
    David

  6. #6
    Registered User
    Join Date
    05-02-2007
    Location
    US
    MS-Off Ver
    2000 @work, 2003 @home
    Posts
    23

    Question (Bump) Vlookup Formula does not return value

    I didn't want to bump this thread, but it happened to me again on this error. I use a macro to load the spreadsheets (macro in seperate workbook) and all but one works.
    I have one that will give me the #N/A error. And when I retype the cell in the range to be looked up, it will work properly.

    I was wondering if there is something that I can have that will keep all formatting the same? As mentioned by darkyam, there was a space in the cell contents, which is not viewable by the eye. And when you look for it, it really isn't there either.

    Thanks for any assistance on this.
    sorry about the bumping, but I need to figure this out.

    the sample that I had provided in the original post is still valid for this request.

    David

  7. #7
    Registered User
    Join Date
    05-02-2007
    Location
    US
    MS-Off Ver
    2000 @work, 2003 @home
    Posts
    23

    (Solved)

    I had to find the answer to this thread, so I went to Oz for help on it.

    I was given a solution there.
    Thanks for the help here, it did point me a direction, I just couldn't see it.

    See thread here.

    Thank you,
    David

  8. #8
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    Sorry, David, I totally missed your responses. I'm glad you got it all straightened out and thanks for posting a link to your solution.

  9. #9
    Registered User
    Join Date
    05-02-2007
    Location
    US
    MS-Off Ver
    2000 @work, 2003 @home
    Posts
    23
    darkyam

    it's alright, I know that it is hard to keep up with the number of people in these forums. We try where we can. I have seen your responses in a number of threads from here and others, I do enjoy reading the ones that I have seen, so I know you are one of the good guys (not that there is any bad ones).

    have a great day,
    David

+ 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