Vlookup That Will Use Data In Another Workbook

Apr 28, 2009

I am trying to create a vlookup that will use data in another workbook. The workbook that should be used will change based on a cell in my current workbook (cell A2). So in cell A2 it will have Plan1, Plan2, etc.

This is what my formula looks like right now.
=VLOOKUP(A3,Plan1.xlsx!old, 4,FALSE)

Is there a way to make the table_array a formula so it will take cell A2 and string it together with .xlsx!old?

View 9 Replies


ADVERTISEMENT

Userform VBA - VLookup Data Range From One Workbook And Populate Into Another Workbook

Feb 9, 2013

what VBA is required to have a combo box in a userform look up data in a different workbook, then populate that data into the drop down list of that combo box for a user to select.

I have managed to successfully create a vlookup for a combo box in a userform that looks up data in a named range in another worksheet within the same workbook and then populate that data into a field in a worksheet within the same workbook. However, I want to change this so the combo box on a userform (in one workbook) will look up data from a named range in a second workbook without opening the second workbook. At the moment, the code I have that will 'submit' the user selected data from the combo box drop down list works.

The code that has worked so far to vlookup data for the combo box from a worksheet within the same workbook is:

Code:
Private Sub UserForm_Initialize()
Dim pName As Range
Dim ws As WorksheetSet ws = Worksheets("vlookupsheet")
For Each pName In ws.Range("ProjectName")
With Me.cboProjectName
.AddItem pName.Value
End WithNext pName
Me.cboProjectName.SetFocus
End Sub

Do I need specify the file path of the second workbook that will contain the data for the combo box as well as the name of the worksheet and named range in that second workbook?

View 4 Replies View Related

Using VLOOKUP To Get Data From Another Workbook

Apr 26, 2013

I have a problem to use vlookup in excel. I have an excel to run macro and other than i have two excel. One of them is list just a column which includes SAPkeys of people it looks like

SAP Key
xxxx
yyyy
xxxx

and i have another excel which i use as database. in this database sap keys of all people are written in "C" column. and there are other information about that person is written in "D", "E" and "F" columns.

what i want is bringing all information belong to sap key is written in different sheet. it would be like that after the macro run

SAP Key Name Location
xxx john london
yyy
zzzz hanks berlin

View 6 Replies View Related

VLOOKUP To Find Data In Another Workbook

Mar 18, 2008

The table to the right is actually in another workbook, both workbooks will be linked. What I'm trying to achieve is a vlookup formula that will count the items in the left table that have numbers entered into them. (This table will be located within a different workbook).

View 9 Replies View Related

Using VLOOKUP With LEFT To Extract Data To Another Workbook

Aug 20, 2014

I have a workbook which has data from 2 different time points (6 and 12 months) and this is signified by a prefix to an ID number which is a letter (A or B) and a number:

I need to analyse data separately so I'd like to create 2 separate workbooks, once which imports all of the 6 month data (1 row per case) and one for the 12 month data.

I thought that this would be based around a VLOOKUP of the first 1 or 2 characters but I can't work out how to integrate this with an 'IF' and link it to another workbook.

View 4 Replies View Related

VLookup- Invoice Data Extracted From SAP And The Other Is A Workbook

Dec 24, 2007

I have 2 Workbooks. One is invoice data extracted from SAP and the other is a workbook I have to send to the client (has about 10 worksheets containing 5-10 different branches in each worksheet). The layout of the one I send to the client can not change so I am trying to import the values form the 1st workbook (SAP) into the 2nd workbook. What I do now is copy the first 4 columns of data for each branch and paste it into the 2nd workbook.

I was playing with a VLookup formula but I don’t think that is the correct formula. I need the second workbook to be populated with all the invoice info (Number, Type, Date, Balance) that appears in the raw data workbook.

=VLOOKUP(H14,'[abcbank raw data sample.xls]Sheet1'!$A:$A+'[abcbank raw data sample.xls]Sheet1'!$A:$E,4)

H14 is the branch number on the client sheet (I cut the column containing the branch # on the raw data and inserted it before column A).

Raw Data From SAP

View 13 Replies View Related

Write VLookup Where Data Array Changes Each Time VLookup Used

Oct 29, 2012

I'm trying to do a Vlookup on a file that gets automatically downloaded to the computer from a website. The data is in lots of different data sets, like so:

Loans to countries
Mar
Apr
May
Jun

Loans to banks
Mar
Apr
May
Jun

Every month a new row of data gets added to each table, meaning the start and end cells of the array also shift each time.

View 4 Replies View Related

Double VLookup (vlookup The Same Data From 2 Different Sheets)

Jul 13, 2009

I'm currently trying to vlookup the same data from 2 different sheets. Here is the code i've tried.

View 4 Replies View Related

VLOOKUP Within Same Workbook?

Apr 11, 2002

I am trying to use vlookup within the same workbook (different worksheet) and i get nothing, what i am doing:

=VLOOKUP(c2,'filename'!'cellname'3)

View 7 Replies View Related

Vlookup Several Sheets In Another Workbook

Apr 22, 2009

I have another query now, similar to the one above. This relates to our Purchase invoice board.

All of our invoices are internally numbered, the info is entered onto the attached spreadsheet. A register, source of all Purchase information. (this sheet was not created by me by the way, its really old and my manager does not want to change it )

I would like to create a spreadsheet of the invoices that i have placed under query, i have set out a simple template at the moment which i use. But i have to input all the info from the invoice on this sheet, I can't help but wonder if the vlookup functon would work on for this.

I would like to enter our internal invoice no into my query spreadsheet and with the vlookup function i would like to retrieve the info from our purchase invoice spreadsheet

Only thing is, our invoice num are continously rolling throughout the year. New numbers are not created for the month, it continues from the last invoice number. However our invoices are filed on a monthly basis (hence the month tabs below).

Is there a way that a lookup function can be retrieve info from several worksheets at the same time in a different workbook?

View 11 Replies View Related

VLOOKUP Refernce From Workbook

Jul 4, 2008

On a workbook named "Main Book" I have my whole inventory list on this sheet.
totaling over 200,000 items with 4 colums per row
Material # - Description - Family # - Price
(seeing how there is only 65,536 rows I have this list across over 20 colums)

So what I want is to have a VLOOKUP referncing this workbook

example:

material # / description / price
H047071504 / plate 1" mt box / $650.29
H152369500 / burst disk 5000psi / $45.65

manual enter / auto fill / auto fill

In a different Workbook when I type the "Material #" I want the next column to automatically fill in with the information (Description/Price) referenced from "Main Book"

View 9 Replies View Related

Vlookup Slowing Down Workbook

Jun 28, 2007

I would like to make a file that can calculate the quantity that need for the bakery shop, it's just my example. The customers can order the number of layers of the cake and that is related to the quantity from the table. I would like to looking for the 3 ingredients and the quantity in grams, and afterwards create a pivot table to sum by each type of the ingredients. The orders is about 3000 rows and ingredients are about 20 columns, If I use IF() and Vlookup() or put in Array formula, my program will be very very slow. Can I use others function to get the ingredients and the quantities? I have attached the file belows.

Please also make some suggestion, or something to read more, about the way I use the funtion like I use IF()+IF() or IF()&IF() instead of IF(,,IF). Does it make any different?

View 9 Replies View Related

Use Cell Value As Workbook Name In Vlookup Range?

Dec 19, 2013

I have the following formula that works. However, I would like to automatically change a portion of it depending on the cell value. Let's say in cell A1 the user types in "IS 12-19-13" I would like to change the workbook name "IS 12-18-13" in the formula.

=IFERROR(VLOOKUP(BQ17,'[IS 12-18-13.xlsm]Summary'!$B$3:$D$21,3,FALSE),0)

View 3 Replies View Related

Vlookup On Different Workbook With Variable Sheet Name?

May 28, 2014

I just started venturing into VBA. I'm trying to pull the data from a different workbook that will have the previous month as the sheet's name. I can't get the dynamic part of the code.

[Code] .....

View 5 Replies View Related

Referencing Variable Workbook Tab In VLookup?

Nov 29, 2012

I have a challenge with Vlookups!

I have one workbook called Ratecards, which contains various tabs which are named based on a client code. e.g. ABC02

I then have another workbook which has employees in column B and the client code in C3.

The current Vlookup is =VLOOKUP(B8,'[ratecards.xlsx]ABC02'!$A$5:$N$168,4,false) which works fine for one client.

I want to substitute the ABC02 in the vlookup for cell ref C3, as the contents of C3 is variable and I want it to tell the sheet which ratecard to refer to.

View 3 Replies View Related

VLookup From Other Workbook / Save Value Only Not Formula

Jul 8, 2013

How to get a macro that can do a VLookup on a different workbook, and then paste only the value (not the formula) in a cell.

I.e.

Sub CopyData()
Worksheets("Week 1").Range("G23").Value = _
"=VLOOKUP(""Total A"",'[Cycle.xlsx]Week 2'!R1C1:R90C15,5,FALSE)"
End Sub

but that only puts the formula in that cell. Any way to get it to paste only the value?

View 2 Replies View Related

Vlookup In A Different Workbook But Multiple Sheets

Jan 18, 2007

I have this one sheet (File 1) where I have the unique codes of people and am trying to perform a vlookup() for a value by specifying the lookup in a dfferent workbook (File 2) but multiple sheets. In other words the data (unique codes) is scattered in different sheets in that workbook (File 2). I need to perform a vlookup() wherein the codes finds a match in whichever sheet in File 2 and the value in the specified column be entered against the respective cell in File 1.

I tried selecting all the sheets in the formula but it does not return a value for all the inactive sheets in File 2. Vlookup() works fine for the Active sheet only.

View 9 Replies View Related

Vlookup References A Table In Another Workbook

Jul 7, 2007

In trying to construct a Vlookup formula that references a table in another workbook, I find that when I double click on the tab in the source workbook to insert the name, and then complete the formula with the column reference and a False statement, I keep getting an “Invalid” statement in the fx wizard when I try to solve this problem. By entering the name range by typing, I get a “#NAME?” error when I go to the wizard to see what I’ve done wrong.

This issue was addressed in the link that I searched for in the old help files and submit in this question. It seems that the issue was never resolved in that posting and I can’t figure out how to resolve this matter.

View 9 Replies View Related

VLOOKUP Closed Workbook Macro

Nov 14, 2006

I'm trying to Access data from an XL file without actually opening the file. In an XL spreadsheet I type in a cell: =VLOOKUP("A", 'C:[Book2.xls]Sheet1'!$A$1:$B$10,1) and get an answer without a problem. In VBA, I try the line of

Current = Application.VLookup("A", Range("'C:[Book2.xls]Sheet1'!$A$1:$B$10"), 1)

and get an error that says Method 'Range' of object '_Global' failed

View 2 Replies View Related

Vlookup & Concatenate (Vlook A Value From A Cell In Another Workbook)

Mar 20, 2009

I want to Vlook a value from a cell in another workbook then before I get the formula result I would like it to concatenate the result with another cell.
I have attached an example

AlEXAMPLE.xls

View 2 Replies View Related

Macro With VLookup Pointing To A Closed Workbook

Feb 4, 2010

The following code shows the result/formula that is generated in a particular cell when I run Macro2:

View 2 Replies View Related

Excel 2007 :: Vlookup And Copy Value From Another Workbook?

Apr 15, 2014

Excel 2007

I have a workbook (book1) that is modifying multiple other workbooks (book2). I need to do a vlookup of a sheet in book1 from a value in book2. I then need to insert the value found by the lookup into G7:H7 (merged cells) of book2.

value is in column B of page "Routes" of book1. Found by value B3:C3 of book2. The vlookup looks in column A of book1. The found value is put into G7:H7 of book2.

In a step by step, to possibly make this more clear:

1) check value of B3:C3 in book2
2) find value in Routes sheet of book1, column A
3) upon match, grab the value of column B
4) insert that value into G7:H7 of book2

[URL]

View 3 Replies View Related

VLOOKUP To Find And Replace For Entire Workbook?

May 13, 2014

I have a very large spreadsheet that I am using to track/analyze enterprise roles and the permissions that go along with each role. On the first sheet, I have a list of all employees (Name, Title, Department, etc) and on another sheet, I have a list of all Security Groups and Distribution Lists (with Members.) What I need to do is create a vba script that completes (1) a VLookUp using the Name column of the Employee sheet as the Criteria and then check against the first column in the Groups/Lists sheet for the matching name. If the employee's name from the Name column is found in the Group/Lists column, replace that name with the employee's Title from the Employee sheet. I then need this process to loop and continue through each column of the Groups/Lists sheet until all columns have completed. The end result should be that all names on the Groups/Lists sheet have been replaced with the corresponding Title found on the Employee sheet.

View 14 Replies View Related

VLookup Didn't Work In Master Workbook?

Jun 13, 2014

I used vlookup function in cell C3 to find ID of employees in Sheet 1 in source workbook and then, I imported the Sheet 1 in master workbook.

The vlookup didn't work in master workbook. The cell C3 in sheet 1 that I imported is blank.

The original got the ID in cell C3, then I don't see the value in cell C3 in master workbook.

View 1 Replies View Related

Vlookup Macro: Highlight The Cells In The In The Workbook

Jan 12, 2009

I have created a macro to open a workbook from another workbook and do a vlookup against the data in the source workbook. I then wanted to highlight the cells in the in the workbook that I'm doing the vlookup from, and to unhighlight any empty cells. I did this all without code using the macro recorder so that I could then study the code and learn something.

View 2 Replies View Related

VLOOKUP From Main Workbook To An Employee Timesheet

Feb 22, 2010

I have a timesheet worksheet - and the employees fill it in against project numbers. The cell to the right of each "item" has the total number of hours spent on that project.

However, during the week, we could jump to and from multiple projects.

My query is, can I do a VLOOKUP from my main workbook to an employee timesheet, search for a particular project number in column C, and then it would pick up the corresponding number (of hours) in column L.

Basically a formula which searches for a value (in column C), and then returns the value in the adjacent row of a different column (column L).

Furthermore, it would be even better if the formula found ALL the same project numbers within the weekly worksheet, and did a sum of all hours in the adjacent cell of column L.

View 5 Replies View Related

Can Use Cell To Find Workbook Name In VLookup Function

Jun 23, 2012

what I am trying to do but I'll give it my best shot with examples.

A1 = date

B1 = drivefolder[A1.xls]sheetname'!cell

View 1 Replies View Related

Copy VLOOKUP Results & Paste Into New Workbook

Jun 12, 2009

Is there to copy my vlookup results into another workbook?

I put together a marco that will select an range and paste it into a new document, however my vlookup results will not copy over.

Is there a way to extract my vlookup results and paste it into another workbook with the enclosed vba code?

Private Sub CommandButton1_Click()
'
' Macro2 Macro
' Macro recorded 4/24/2009
'
Columns("A:E").Select
Range("A2").Activate
Selection.Copy
Workbooks.Add

ActiveSheet.Paste
End Sub

View 9 Replies View Related

Vlookup: Search In A New Workbook Called RepricingFactors

Jun 9, 2006

I am trying to search in a new workbook called RepricingFactors. The worksheet within that workbook is called Network Differences. I am searching for the city Louisville out of about 100 cities. Do I have this set up correctly???

Application.WorksheetFunction.VLookup("Louisville", Application.Workbooks("RepricingFactors.xls").Worksheets("Network Differences"). Range("A1:D40"), false)[code]

View 3 Replies View Related

Macro To Add VLOOKUP Formula To Lookup Another Workbook

Jun 26, 2008

I'm running against this problem: a file should be run whenever people want.
however, the last part to complete the file is that the file from yesterday should be opened.

From this file data will be extracted via the VLookup formula...that's the plan.

However, with dim statements it won't work.
for now the code is:

Dim mynum, mysearch, this1, that1, other1

'Open the file from yesterday. Define the date string of this week and last week
mysearch = Left(mynum, 8) & Right(mynum, 2) - 1 'mynum is a date string like 2008-06-26
this1 = "Outstanding invoices " & mynum & ".xls"
that1 = "Outstanding invoices " & mysearch & ".xls"
Set other1 = Workbooks(that1). Sheets("Raw"). Range("comments")
ChDir "Z: FINANCEF&AAPInvoices overdue"
Workbooks.Open Filename:= _
"Z:FINANCEF&AAPInvoices overdue" & that1

the "this1, that1" etc appear when you point with your mouse in the code as correct but
the VLookup function won't work: it takes a long time and when interupted the macro the cells show the VLookup formula with "[that1]" instead of the workbook's name.
I also tried to dim that1 as workbook but that did not help.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved