+ Reply to Thread
Results 1 to 4 of 4

Using Vlookup or Hlookup in one workbook to get data in another

  1. #1
    Registered User
    Join Date
    09-25-2013
    Location
    myob,ok
    MS-Off Ver
    Excel 2007
    Posts
    63

    Using Vlookup or Hlookup in one workbook to get data in another

    Workbook1.xlsxWorkbook2.xlsx

    Hello,

    I have attached an example of 2 workbooks I have. I am trying to use vlookup or hlookup to get the Status cell data that's in workbook2 to appear under the corresponding Status name in workbook1.

    I'm not sure If I made sense but if you look at my workbooks you might get what I'm trying to do. The vlookup function I have in workbook1 is wrong and I basically need help on it.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Using Vlookup or Hlookup in one workbook to get data in another

    In book1 cell B2


    =IFERROR(INDEX([Workbook2.xlsx]Sheet1!$B$2:$E$2,MATCH(A2,[Workbook2.xlsx]Sheet1!$B$1:$E$1,0)),"")


    OR HLOOKUP

    =HLOOKUP(A2,[Workbook2.xlsx]Sheet1!$B$1:$E$2,2,0)
    Last edited by AlKey; 02-13-2014 at 06:09 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    09-25-2013
    Location
    myob,ok
    MS-Off Ver
    Excel 2007
    Posts
    63

    Re: Using Vlookup or Hlookup in one workbook to get data in another

    That's awesome. Thank you.

    I used Hlookup because it seems easier for excel to compute.
    I added IFERROR to get rid of the N/A.

    =IFERROR(HLOOKUP(A2,[Workbook2.xlsx]Sheet1!$B$1:$E$2,2,0),"")

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Using Vlookup or Hlookup in one workbook to get data in another

    You're welcome and thank you for your feedback!

    Please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).

+ 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. vlookup and hlookup
    By slin in forum Excel General
    Replies: 2
    Last Post: 02-22-2011, 01:33 PM
  2. HLookup ? or use Vlookup?
    By Kenji in forum Excel General
    Replies: 3
    Last Post: 04-07-2010, 11:38 AM
  3. Vlookup And Hlookup
    By PhilD in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-20-2008, 08:54 AM
  4. Can vlookup or hlookup look to other worksheets within a workbook.
    By flgc54 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-11-2005, 09:06 PM

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