Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Excel


Vlookup Between Two Workbooks

I have looked through the forum and haven't been able to find an answer. I have two workbooks. One has a worksheet with two columns - the first column holds ID's, the second column has the names associated with them. My second workbook has a large table with many different fields and ID's only. I would like to use Vlookup to add the names to the second workbook.

View Complete Thread with Replies

Sponsored Links:

Related Forum Messages:
Vlookup For 2 Separate Workbooks
I have 2 separate workbooks and I would like the Vlookup function to look for the value in "DO" after matching the both "Job Sheet". I have attached 2 files for better understanding.

View Replies!   View Related
Inserting Vlookup Function In All Workbooks
I have around 700 workbooks in a folder on my PC.

My master file(master database.xlsx) is kept open from which i have to Vlookup the values into these 700 workbooks.

The "agent Id" column is common in both the master database.xlsx as well as those other workbooks also.

The thing i want to do is i need the data from the "reporting supervisor" which is in the master database.xlsx file to be available in the G column of the other 700 books ( i have attached only 4 sample books). The G column can be then named as "Reporting Supervisor". Since "Agent ID" is available in both files we can vlookup taking this as a base. I have attached the 4 sample files out of 700 as well as the master database file in a zip file.

View Replies!   View Related
VLOOKUP #N/A Error Between Workbooks On Separate Drives
I have 5 worksheets in file Z on drive J which are full of VLOOKUP formulas pulling data from several files on drive K. Each worksheet pulls data from it's own file on drive, worksheet AB pulls all of it's data from file AB_2008, etc. On worksheet CD there are two rows which populate with #N/A when I open file Z, but if I open file CD_2008, the #N/A's automatically populate with the correct values. Any ideas??? I am not a programer but I have pretty fair excel skills...but this one has stumped me.

Here's my formula:


View Replies!   View Related
Close Workbooks And Move In And Out Of Workbooks In VBA
Basically the main workbook opens 2 files at a time performs a calculate in the main workbook and then copies and pastes information in 3 ranges. Then closes the two open workbooks and loops and performs same operations until it hits the maximum loops. My macro is as follows and I have 3 question in capital letters.

View Replies!   View Related
VLOOKUP With INDIRECT (become Dynamic As The Table Array Part Of The Vlookup Will Change)
I have a Vlookup which I want to modify so that it can become dynamic as the table array part of the vlookup will change.

So the basic vlookup is as follows:
but the data I am looking for wont always be in the range M60:P73.

So I tried to make it dynamic by doing the following:
The idea being that U1 and V1 would be numbers that can change so in this case U1 would equal 60 and V1 would equal 73

This vlookup is giving me #N/A and no matter how I modify it I cannot get it to work.

View Replies!   View Related
Using Vlookup & Indirect To Ref List And Vlookup Files
I have a spreadsheet (Need Data.xls) that needs to be filled out with a couple columns of data.

This data lays within 338 spreadsheets which have many items and may only have 2, or 3, or 50 that belong on my Need Data.xls spreadsheet.

I have a tab in Need Data.xls named "DIR" which has a list of 336 excel files that need to vlookup'd into.(not a separate file) They're all setup with this format:

View Replies!   View Related
Hyperlinks And VLookup: VLookup To Find EMail And Web Addresses
I have a sheet using VLookup to find EMail and Web addresses. I can get the address to show up but not as an active URL address. Is it possible to have the address "active" so I can click on it and activate the EMail or Web Site?

View Replies!   View Related
Vlookup Across Sheets, Nested Vlookup Possibly?
I’m trying to develop a workbook which holds monthly data on loan information. It tracks the interest and balance on the loan. I want the first page to have a table displaying the interest payments for every individual tab. When I was brainstorming the idea, I was considering a sort of Vlookup function to find the tab the account is on and then a further function, possibly another vlookup which connects the month to that month’s interest payment. Can anyone help me figure this out?

The attached spreadsheet is obviously simplified, there are well over 30 tabs. But I would like it to, ideally, search the account number column, search the workbook for that account number, and then when on that page use the month at the top of the first page and retrieve the interest payment and put it back in the cell. It’d also be great if the formula can be transferred between workbooks. I’m not sure if that makes sense; basically if I were to copy that worksheet into the next months book, I would like that the formula read those tabs instead of becoming obsolete due to references from the first workbook.

View Replies!   View Related
Double VLookup (vlookup The Same Data From 2 Different Sheets)
I'm currently trying to vlookup the same data from 2 different sheets. Here is the code i've tried.

View Replies!   View Related
Vlookup Looping (for Vlookup Loop Technique
I have data in a pivottable which I want to compare with another table. The lastcolumn+1 of the pivottable needs to get data from another table. I have this for an example:

View Replies!   View Related
Vlookup Error Msg "unable To Get The VLookup Property Of The WorksheetFunction Class"
I am receiving a run-time error with following code. The error message is "unable to get the VLookup property of the WorksheetFunction class". I only receive the message when the lookup value is not found in the table.

I thought adding the "False" command at the end would return an "N/A" but it didn't. Is there anything I can add to avoid this error?

View Replies!   View Related
Vlookup + Vlookup Discounting Any #n/a
I'm taking a spreadsheet that I produce each month and creating a year to date spreadsheet in the same format. I'm using a vlookup to find the campaign name in each sheet and add up the totals. This works fine but sometimes a camapign ends and so the vlookup for that month will produce an #n/a value so will reduce the whole sum to #n/a.

The VLOOKUP + VLOOKUP + VLOOKUP I was using that produced an #n/a is shown below.

=VLOOKUP($A6,'[Margin by Site Net April 2008.xls]Brighton'!$A$5:$F$26,2,FALSE)+VLOOKUP($A6,'[Margin by Site Net May 2008.xls]Brighton'!$A$5:$F$26,2,FALSE)+VLOOKUP($A6,'[Margin by Site Net June 2008.xls]Brighton'!$A$5:$F$26,2,FALSE)

To get round it I've added in an IF statement combined with ISERROR as shown below. It works but is looking quite messy. Is there an easier way to do this ? (the formula below is from the cell below the one above so the look up value is one cell down)

View Replies!   View Related
Consolidation Of Workbooks
I still have a problem with consolidation of workbooks.


I am working in HQ and at the end of each month, every branch under my care will submit an excel workbook to me. Inside this are two worksheets (worksheet 1 and worksheet 2 for convenience). Both have standard headers and rows and rows of data. Upon receipt, I will keep all these files in a folder called "Oct06" (and Nov06 etc for future mths)


I'm not able to find an easy way to consolidate all the various worksheet 1 into one master worksheet. I need this so as to generate a pivot table. At the same time, I need to consolidate all the worksheet 2 also for the same purpose.

View Replies!   View Related
Merge All Workbooks In One
I have 5 worksheets, representing data from 5 days, M-F. On a weekly basis I open all 5 files and manually copy, and paste all into one large weekly file. Does not take very long so I am probably just being lazy but if I could find a simple solution to merge all 5 into one quickly it would be great.

The one solution I was planning on implementing was to cycle through all OPEN workbooks, copy the data into a new workbook, and close each workbook as the copy and paste is done. This will work but to me its 'dirty'. Each workbook only has one Worksheet.

View Replies!   View Related
Selecting Workbooks ...
I'm not sure why but Excel doesn't seem to like the following.

Workbooks("Bulk Forecast.xls").Worksheets("Bulk Forecast").Range("A1:C2").Copy

View Replies!   View Related
Collate Many Workbooks Into 1
we have 1500 workbooks where the format is the same but the data could be different. I have marked up in red which i would class as headings, the rest in black are varibles

sheet 2 is how i would like it if possible. please note the file name is need to be in column A

can a macro be written to get all 1500 files into one. all the files are in one folder

View Replies!   View Related
Consolidating Workbooks
I have 85 workbooks in the same folder with a sheet in each workbook called "Budgets". Its the same template in each workbook with different data. I need to create a Summary master file of all my budgets so in the end I will have 1 Workbook with the 85 copies of the "Budgets" Worksheets. Does anyone know the VBA for this?

View Replies!   View Related
CLosed Workbooks
Is it possible to search all closed workbooks in a folder in a range B13:B33 for a particular word?

All closed workbooks have only 1 sheet in them this sheet is always named the same but the workbooks are named sequentially, eg 1, 2, 3 etc.

View Replies!   View Related
Using Buttons Over 2 Workbooks...
I currently have a sheet (SHEET-A) which pulls in a figure from a cell (CELL-G) in another workbook sheet (SHEET-B), and displays the value in CELL-X.

CELL-X then is used for a series of calculations on SHEET-A.

CELL-Y is adjacent to CELL-X and can have a number entered into it which is then used instead of CELL-X for the calculations on SHEET-A. (It is also incidently displayed over CELL-Gs value in CELL-X)

I would like to have a button next to CELL-Y which upon click alters the value of CELL-G in SHEET-B to that of CELL-Y in SHEETA.

View Replies!   View Related
Back And Forth Between Workbooks
Copying information from various sheets from one workbook to paste into similar sheets in another workbook? It would involve switching back and forth between workbooks.

View Replies!   View Related
Switching Between 2 Workbooks
From a workbook, I need to open a further workbook called 'transfer' and then switch back to the original workbook. Presumably I need to save the current workbook name to a variable, open transfer with Workbooks.Open Filename:="c:debworkTRANSFER.xls"
then switch back to the original

How do i pass the original workbook name to a variable, and then reactivate it. I have tried numerous options but just cannot get it to work. Do i reactivate with workbook. activate or windows.activate

View Replies!   View Related
Formulas Across Two Workbooks
In Workbook 1 O1, I need a formula that will, if Workbook 1 M1 = "Yes", find the value from Workbook 1 N1 anywhere in Workbook 2 Column E, and when it is found, look at the value 2 columns to the right in Workbook 2. If there is a value in this cell, return "Yes" in Workbook 1 O1. If there is no value in this cell, return "No" in Workbook 1 O1. If Workbook 1 M2 = "No", the formula should return "No".

View Replies!   View Related
Open Several Workbooks
I have a macro on a workbook that when I run it, it's supposed to open a workbook, but it opens another workbook also.

How do I prevent this behavior?

View Replies!   View Related
Comparing 2 Workbooks
I have got 2 excel workbooks with multiple worksheets (around 6 megs in size). Is there a way i can do a quick comparison which will point out the differences between the cells?

there is a difference in dize, 200 KB

View Replies!   View Related
Link To Other Workbooks
If you are working in an excel spreadsheet that is linked to other excel files, when you double click on the cell that is linked to another workbook, it immediately opens the linked workbook if your settings are correct. How do you change your settings to enable this functionality?

View Replies!   View Related
Linking Workbooks ...
I run a number of spreadsheets each 4 week period and these are stored in a folders named after the period. ie Period 10 will contain workbookA10wk1, workbookA10wk2, workbookA10wk3 and workbookA10wk4,

Period 11 will contain the same workbooks but named workbookA11wk1 etc.

The data from the workbooks is then used in graphs / tables for each year.

I always pick up the same cell ref in each workbook to compare each week and my table is set out with heading of period and wk.

Is it possible to use the table headings to produce the names of the workbooks that you wish to reference, ie: ='Period 13[workbookA13wk1.xls]Sheet1!$D$17 to appear under Period 13, wk1

View Replies!   View Related
Hlookup In Different Workbooks
I used the following formula when the worksheet was in the same workbook.


The information in cell B14 is the same as the target sheet name.

I want to move the target sheet to another workbook.

How would i need to adjust the formula in order to return the same information from this new workbook?

View Replies!   View Related
Workbooks Count
I have a script running on a worksheet that checks that a name of a workbook is open or not

What happens is, it doesn't recognize that the workbook is open even when it is. When there are 2 workbooks and i msgbox workbooks(2).name, it gives me an error.

Private Sub Worksheet_Activate()

numofbooks = Workbooks.Count
j = 1
Bid1 = Sheets("Bid Summary").Range("B2").Value
For i = 1 To numofbooks
If Workbooks(i).Name = Bid1 Then
j = 0
Goto leave
End If
Next i '

If j = 0 Then
Sheets("Main").Range("L9").Value = "Checked"
Sheets("Main").Range("L9").Value = "Check Failed"
End If

End Sub

View Replies!   View Related
Referencing Workbooks ..
I have this excellent code which I found on here that looks at the data in column A, looks at the data in column B & then returns the differences ie.

John________Jimi_________________Not in A_______Not in B

Here is the code ....

View Replies!   View Related
LOOKUP For 2 Different Workbooks
LOOKUP for 2 different workbooks. I have been using the following codes to do the task.

View Replies!   View Related
Using If Formula Across Different Workbooks
I was just wondering if it was possible to do an If statment that looks at a cell in another workbook?

View Replies!   View Related
Emailing Workbooks
I am attaching workbooks which reflect my original work. I have some questions :

1. How can I allow users to view this with everything working fine? (zipping and emailing was suggested, but I am getting some errors)

2. How can I ensure that the viewing format remains same for everyone viewing it?Al colleague of mine, tried and the formatting is wierd for him

View Replies!   View Related
Switching Between Workbooks
I'm trying to write a piece of VBA code which will switch back and forth between 2 workbooks, but I was hoping that I would not have to name both workbooks in my code.

So far I have been able to name the second file as a variable, open it and copy the data I need, but I now need to switch back to the original file. Is there any way of doing this without hard coding the file name?

View Replies!   View Related
Macro Available To All Workbooks
I would like to create a module for spreadsheet and I want it to be included in all excel files, i.e. whenever you open any excel file that vba module should be included

View Replies!   View Related
Sum Several Workbooks
I've got a workbook for every department which is used to make a weekly status. Each of these workbooks contains a sheet with the 'weekly statuses over time', i.e. a table showing the weekly status for the department for week 1, week 2, week 3 etc. I've attached the file to make it easier to understand what I'm talking about, see Weekly_Test. Currently I can only see the performance of each department but I would like to be able to see the total performance for all departments, i.e. have a 'Total workbook' where all the weekly statuses are summed up weekly.

In the Weekly_Test file you can see the code which is used to generate the 'weekly status' sheets (also inserted at the end of this post). All workbooks for the departments are the same, apart from the file name which is the name of the department and this does not change. The weekly status is generated in the following way:

In the sheet 'Indtastning' (data entry) you enter the data and the date. Then click 'Update'. The sheet is then copied to a new sheet with the date and all data is copied to the table in the 'his.status' sheet. Now, I would like to add some code so that when I click 'Update' the data which is copied to the table in the 'his.status' sheet is also copied to a similar table in the 'Total' workbook.

Dim indtastArk
Dim arkDato
Public Sub Opdater()
arkDato = Cells(1, 1)

' nulStilIndtastning
End Sub
Private Sub OpretDatoArk()
With ActiveSheet
End With

ActiveWorkbook.Sheets.Add Before:=Sheets(4)......................

View Replies!   View Related
Macro To Work Across Many Workbooks?
I need to remove hyperlinks across probably 30-40 workbooks, is there a way of doing creating a macro that would do this across many instead of 1 at a time?

View Replies!   View Related
Compare Data With Different Workbooks
i had received a new project. i want to compare the data among 2 different workbooks. there are book1 and book2 which i attach at here. if there are 1 cells is different with both workbooks, then the whole row will copy and paste to a new workbook "output.xls".

i also attach the "output.xls" at here.

the background color i highlighted which data is different, just for easy to view. so can ignore the color.

View Replies!   View Related
Multiple Excel Workbooks Into One
I have a folder where we get 10-15 workbooks and we need to convert these workbooks into one. Currently we manually copy from these individual workbooks and then paste it to the one which we want to have all the data from all the workbooks. This is really time consuming. Can anyone of you help me with creating a Macro which will do the job?

View Replies!   View Related
Opening Workbooks In A Folder
Is there a way to use a for next loop to open a workbook that is in a folder, then save and close the workbook then open the next workbook in the folder and do the same routine till all the workbooks have been updated?

View Replies!   View Related
Fetch Rows From Workbooks
copied some of the code from this website. but still i am struggling with coding. it gives error subscript out of race of my sheet name
what is wrong in it

/tag acccounts = ActiveSheet.Name
TempSh = ActiveSheet.Name
Application.ScreenUpdating = True
For Each f1 In fc
With Sheets("accounts")"/tag

View Replies!   View Related
References By Using Paths To Other Workbooks
is it possible to use references and concatenate them together that they are still references?

i have in:

A1: 'C:Infonic[file2.xls]sheet2'

A1: test

what i need is in sheet2 of file1

the value of file2.xls!sheetY!A1 = test
the problem is that i need to use the path to file2!sheet2 of the cell A1 in sheetX

is it possible to use sheetXA1 together with sheetYA1 as reference in sheet 2 so that i get back test as value.

View Replies!   View Related
Master And Slave Workbooks
I have a Master workbook that contains the complete sales for the entire business. This is based on input from 12 different departments. These 12departments have their own slave Excel workbook that they enter information into. The 13 files are all located in the same directory on a network folder.

What I want to do is to automatically gather all the entries from the 12 slave workbooks to the master workbook whenever the macro I am trying to create is run. There is no way of knowing how many new entries each workbook will contain and they have to be added so that that they don't overwrite eachother and so that they are put in sequence after the last row in the master workbook.

Now the information to be gathered is located on the first worksheet in all the three workbooks. The destination sheet in the Master workbook is also the first worksheet in the workbook. The structure of the information that I want to copy is equal on all the worksheets. How would I go about doing so?

View Replies!   View Related
One Workbook Affects All Workbooks
I have made a workbook file which is a form. I deleted all tool bars except "Print" and "save as". And I have saved this workbook. When I startup XL again to do other work It brings up my same bar arangement as my form. When I change it back it also changes my form file. How do I keep my form arrangement seperate from the standerd excel set up?

View Replies!   View Related
Combine Data From Different Workbooks
Is it possible too do this if they are on the same computer. Lets say I want all the data on page3 in one workbook, data on page2 in another and have it show up in another workbook. If this can be done can it delete cell entry that match?

View Replies!   View Related
Get Data From All Workbooks In Folder
A while back someone helped me out with a code to pull data out of all workbooks in a folder.

View Replies!   View Related
Matching Records In Two Workbooks
In Excel 2003, I need a macro to do the following:

For each record in column F (starting at row 2) (workbook: CATS LITTERS LISTS AS AT 01 FEB 10.xls) (worksheet: RAKE)

Find a matching record in another open workbook (workbook: DOG TRAINING v 3.xls) that has multiple worksheets as

follows: ...

View Replies!   View Related
Linking To Other Workbooks W/ IF Statements
I have created a link in workbook "A" to another workbook "B" by copying the cell in workbook "B" and using "Paste Special" and "Paste Link" in workbook "A". I did this for 1,000 rows so that when I update the workbook "A", it will take in any new data.

However, if a cell does not have a value in it, the cell in workbook "A" returns a "0".

To avoid this, I figured I could use a statement like =IF('C:[B.xls]tabname'!A45="","",'C:[B.xls]tabname'!A45).

It worked in the case of worksheets, but in others, it only returns "#########". If I hit "F9" it doesn't refresh the data to return the value, so I assume something silly is going on here.

View Replies!   View Related
Apply Macro To All Workbooks
Could somebody update the below code so that it actions all open workbooks except the master (Book2). Also, so that it appends the data (which is basically 2 neighbouring colums of data) to the Master starting in column A

Sub Format_RAW()
' Format_RAW Macro
' Keyboard Shortcut: Ctrl+s
ActiveSheet.Range("$A$1:$P$5105").AutoFilter Field:=7, Criteria1:=Array( _
"H1", "H2", "H3", "H4"), Operator:=xlFilterValues
ActiveSheet.Range("$A$1:$P$5105").AutoFilter Field:=1, Criteria1:= _
Range(Selection, Selection.End(xlDown)).Select
End Sub

View Replies!   View Related
Protecting Workbooks More Conveniently
Protecting and unprotecting a key wookbook is becoming tedious!

I want to unprotect a workbook, work on it and when it comes time to close it I want the protection to automatically kick in upon closure rather than having to re-enter and confirm the password again (and again).

View Replies!   View Related
Summary Report Of Workbooks
I have been asked to create grand summary workbook that basically copy and paste from a few workbooks in different folders location in a network drive in this grand summary. The sheet to copy from these other workbooks is named as "summary" and the location and filenames are as follow:

P:Section 1RegisterNorth.xls,
P:Section 2RegisterSouth.xls,

The data can be found from A7 to R7 downwards in the "Summary" sheet tab in each of the workbook above.

The data are updated every week and as such I hope to have a macro create to first clear the old data and update the new data.

View Replies!   View Related
Copyright © 2005-08, All rights reserved