+ Reply to Thread
Results 1 to 5 of 5

Thread: Fetch values from one table to another using VLOOKUP

  1. #1
    Registered User
    Join Date
    01-16-2012
    Location
    Stockholm
    MS-Off Ver
    Excel 2007
    Posts
    2

    Unhappy Fetch values from one table to another using VLOOKUP

    I'm about to go completely insane over this... I've been looking at countless tutorials, since there's apparently 100 different ways of doing this. I just can't get it to work.

    I don't think I'm attacking the problem from the right angle.

    My problem is the following:

    Look in the attached spreadsheet. *attachment removed*

    Columns A and B contains a DUNS number and an ID number, which all are related to each other.

    I need a way to find each DUNS number in column D, "fetch" the corresponding DUNS number and put it into column E.

    I've tried all different Excel functions you can possible imagine, but I just can't get it to work. It's probably really easy, but I'm just stuck, and it's driving me insane...

    It probably takes less than 2 minutes to solve if you only have a proper understanding of the VLOOKUP function, which I don't...

    Any help would be greatly appreciated!
    Last edited by Henrik_; 01-16-2012 at 10:34 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    6,224

    Re: Need help with VLOOKUP (I think)

    Please read and adhere to these simple rules!

    1. Use concise, accurate thread titles. Your post title should describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change the title of the thread, click EDIT on the original post, then click the Go Advanced button, then change the title. If two or more hours have passed, the EDIT button will not appear, and you need to ask a moderator to change the title.
    "Relax. What is mind? No matter. What is matter? Never mind!"

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

    Re: Need help with VLOOKUP (I think)

    It seems your column A data are really Text entries while your column D data are Numeric.

    Try either:

    Select column A and go to Data|Text to Columns and then click Finish... then use formula: =VLOOKUP(D2,A:B,2,FALSE)

    or just simply use formula: =VLOOKUP(""&D2,A:B,2,FALSE)

    copied down.
    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.

  4. #4
    Registered User
    Join Date
    01-16-2012
    Location
    Stockholm
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Need help with VLOOKUP (I think)

    I finally got it to work! :D

    I used this formula:

    =VLOOKUP(D:D;A:B;2;FALSE)

    I can't believe it took me so long to get it right... Thanks for your help!

  5. #5
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    W Europe
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    465

    Re: Need help with VLOOKUP (I think)

    Although working with complete columns works with XL2007 I would suggest limiting your ranges, otherwise you might encounter very slow calculations in the future
    Cheers - THE WARNING I RECEIVED WAS NOT JUSTIFIED

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