+ Reply to Thread
Results 1 to 4 of 4

vlookup or index?

  1. #1
    Registered User
    Join Date
    08-08-2007
    Posts
    3

    vlookup or index?

    Im trying to get two values from one spreadsheet that is associated with a name and put it into the new spreadsheet. i.e. i have well data; well name, x coord, y coord in one spreadsheet and the lab values from samples in another spreadsheet and i need to add the x an ys to the new spreadsheet but the wells names are not in any order.

    any ideas?

    thanks

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    You should be able to use Vlookup for that.

    e.g.

    =Vlookup(A1,Sheet2!A1:C100,2,0) for x-coord

    and

    =Vlookup(A1,Sheet2!A1:C100,3,0) for y-coord

    where A1 houses well name on current sheet
    Sheet2!A1:C100 is the table of well data, where column B and C house the coordinates.

    adjust ranges, sheetname as needed.
    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
    Registered User
    Join Date
    08-08-2007
    Posts
    3
    i keep getting an error on the first A1

  4. #4
    Registered User
    Join Date
    08-08-2007
    Posts
    3

    Got it, thanks!

    It works, thanks

+ 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