Reference To Another Workbook

Jan 12, 2007

I made a VLOOKUP formula referring to another workbook. The workbook name was 1099.XLS and there was only one worksheet in it, also called 1099.

So the reference I used was [1099.XLS]1099! but I have since realised that Excel changes that as I enter it, to '1099'!

What I would like to know is, is this a one-off action by Exel, and why? Have I used the correct reference in general -
[workbookname.XLS]worksheetname!

and did Excel's actions come about because there was only one worksheet, or because the worksheetname was the same as the workbookname, or what?

View 5 Replies


ADVERTISEMENT

Reference A Source Workbook By Having The Title In Destination Workbook?

Jun 6, 2014

I want see if it's possible to take the name of the source workbook and put it in a cell in my destination workbook and then use that as the reference in formulas. The source document title includes a date that changes yearly, or in some instances changes entirely, and I want to keep the formulas in the destination workbook intact. I don't want to have to go to every instance where I have used the source workbook and change the title. Instead I would like to copy the source workbook title, paste it into the destination in the same cell and have that propogate the needed changes into the destination workbook formulas.

View 2 Replies View Related

Changing Workbook Formulas To Reference New Workbook Name

Aug 6, 2012

I have a workbook "Weekly Field Report-Master Copy" and another workbook "Weekly Field Report $$$-Master" The "Weekly Field Report $$$-Master" workbook has all the formulas that pull data from the "Weekly Field Reports-Master Copy" workbook and populates a financial report of that week's field unit production.

When I save the "Weekly Field Report-Master Copy" workbook to a new name "Weekly Field Report Job #1" and then save the "Weekly Field Report $$$-Master Copy" workbook to a new name "Weekly Field Report $$$-Job #1" is there a way to automatically change the formulas in the "Weekly Field Report $$$-Job #1" workbook to now pull data from the "Weekly Field Report Job #1" workbook instead of the "Weekly Field Report-Master Copy" workbook???

Currently I am manually changing the formulas in the new workbook "Weekly Field Report $$$-Job #1" to reference the data in the new workbook "Weekly Field Report Job #1". Otherwise the formulas pull the data from the "Weekly Field Report-Master Copy".

View 4 Replies View Related

VBA - Add Formula To Reference Another Workbook?

Jun 20, 2013

I believe this is the last piece of the puzzle of a project I'm working on. Here are the components I have to work with:

Component 1:

VB:
Dim file As Range
Set file = Range("rgFileToBeChecked")
'this sets "file" as the full path

[Code]...

View 9 Replies View Related

Reference To Cell In Another Workbook

Jul 18, 2014

I have a work book, it copies a cell reference from a work sheet in workbook2 to workbook1

It then selects next work sheet in each page and then triggers the code again.

My problem is i want the following piece of code to work.....what should i put in where it says "activeworksheet"

[Code] ......

View 7 Replies View Related

Set Reference To NOT OPENED Workbook

Dec 18, 2008

I've started this thread a few weeks ago but didn't get any answers on how to solve the problem or if it was even possible to solve. I would like to know if is possible to set a reference to a NOT OPENED workbook. All the code I've tried so far didn't get me anywhere:

View 3 Replies View Related

Reference Another Workbook In Formula

Nov 11, 2009

I am having trouble inserting a cell reference into a formula. I have a spreadseet that uses data from another workbook. The workbook name changes monthly, so i'd like to be able to place the workbook name in a cell and have the formulas in the spreadsheet use that cell to get the name of the workbook to get the data from. So:

if, for eg, the formula in my spreadsheet is ='[test data file.xlsx]Sheet1'!$B$4+'[test data file.xlsx]Sheet1'!$B$6

I would like to be able to enter test dta file.xlsx into cell A2 of my spreadsheet and replace a reference to A2 into the formulas. I've tried several ways, but can't seem to get it to work.

View 3 Replies View Related

How To Reference UDF From Workbook That Has Space In Its Name

Aug 8, 2012

I have a workbook called "udf test.xlsm" with an "age" udf. How do I reference this from another workbook? If I replace the space with an underscore in the workbook name then I can call it like so:

=udf_test.xlsm!age(A1)

but with a space, it doesn't work. I tried this:
='udf test.xlsm'!age(A1)
and this
='[udf test.xlsm]'!age(A1)

but I get "Invalid Reference" errors.

View 2 Replies View Related

VBA / Dynamic Workbook Name Reference

Feb 6, 2014

I am using:

Code:
Dim Aname As String
Aname = ActiveWorkbook.ActiveSheet.Range("D2").Value & "Pricing"
Workbooks.Add
ActiveWorkbook.SaveAs Filename:=Aname & ".xls"

to create a new workbook. I need to copy 2 columns from the original workbook/worksheet to the one being created though. I can get the the original easy enough, but then getting back to the newly created book is proving difficult.

(the 2 columns being copied are filtered to what is needed and I have used the below to copy it, yes I know that is 3 rows but I couldnt get it to copy just E and G at the same time to the lastrow without including F)

Code:
LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row
With .Range("E2:G" & LastRow)
.Select.copy
End With

View 7 Replies View Related

Reference External Workbook

Feb 5, 2008

I have a list of objects in column A

I want to select that list or part of it then run a VB module that references each item in the selection and compares it to a master list in a separate workbook that contains both the object and an additional value, and display that additional value in column B of the original workbook against each object in column A

View 9 Replies View Related

Cell Reference For Workbook Name

Aug 7, 2009

I am trying to write a formula that will pick the data out of a closed workbook.

Indirect works but it doesnt help because the workbook needs to be open and there are literaly hundreds of workbooks to sort thru.

Is there a way other than find and replace to have a formula pull data from a specific cell in another workbook, based on say cell A1 or A110?

View 9 Replies View Related

Reference Another Workbook In A Formula

May 15, 2007

I have a formula that calculates data from the workbook that the formula is in. I need it to do the same calculations only pull the data from another workbook. Here is a sample formula:

= SUM(X1504 + SUMPRODUCT((H1:H394=73)*(U1:U394="NVLIV"),S1:S394))

Would I do something to the nature of:

=SUM(C:/sample.xls[Sheet1$x1504] + SUMPROD...etc...?

Basically how do you reference another workbook that is closed?

View 4 Replies View Related

Reference Workbook Without Knowing Name

Jun 26, 2007

I have a master workbook, meeting1.xls which is used on a daily basis. All of the macros saved in this workbook naturally refer to Windows("Meeting1.xls").Activate.

However, I want to be able to open Meeting1.xls save it as a new name (for today's details) and then populate it.....as well as have the Macros pick up that new file name (rather than always looking for Meeting1.xls.)

I've tried saving Meeting1 as a template file and that didn't seem to work either. When I save it as a new name, the macro always searches for the original name.

View 9 Replies View Related

VBA Workbook Reference Via Variable

Feb 18, 2008

Ive just finished writing a macro that copies data from different parts of one workbook into a new workbook. However after doing all that my boss now informs me that the first workbook will be renamed regularly.

Is there a way adding a reference to a workbook that is not dependant on the name? Possibly declare it as a variable at the beginning or something? The indexing is not possible either as they might have multiple Spreadsheets open at any one time.

View 4 Replies View Related

Dragging Down Reference To Another Workbook Cell

Jan 23, 2014

I have a master workbook that I reference data from hundreds of excels on.

I am trying to reference the cell "BU7" that has the workbook name (NT-13-001) in it, to reference sheet name "Purchase Order" at cell "H13".

Next line I would like to reference the cell "BU8" that has the workbook name (NT-13-002) in it, to reference sheet name "Purchase Order" at cell "H13".

The computer path is K:FRG TOOL REQ2013NT FormsNT-13-001

This is the formula I have tried... I have also attempted the INDIRECT function & Hyperlink GO TO.

=IFERROR('K:FRG TOOL REQ2013NT Forms["&DU7&".xlsx]Purchase Order'!$H$13,"")

View 1 Replies View Related

Formula With Cell To Reference Other Workbook?

Mar 19, 2014

So finally got my sumrpod working using this formula

=SUMPRODUCT(1*('Q:Documents13-14 FCGP CONTRACTING13-14 TrackingSouthPac - Team Use Only[South Pac Load Tracker - MAR14.xlsm]SPECIALS TEAM NZ'!$C8:$C10000=A5))

Is there a way i can link 'Q:Documents13-14 FCGP CONTRACTING13-14 TrackingSouthPac - Team Use Only[South Pac Load Tracker - MAR14.xlsm] to a cell so that when the next months tracker is created and the filename changes i simply change the filename in the cell which im using to reference the filepath/filename.

e.g A1 = South Pac Load Tracker - MAR14.xlsm

Formula would read =SUMPRODUCT(1*('Q:Documents13-14 FCGP CONTRACTING13-14 TrackingSouthPac - Team Use Only[' & a1 & ;]SPECIALS TEAM NZ'!$C8:$C10000=A5))

View 1 Replies View Related

Search Workbook For A Particular Reference Number

Dec 27, 2006

I am just wondering if there is a way i can search an excel workbook for a particular reference number. eg


name reference money
dave 60056835 £20.00
clare 50065755 £30.00

If i want to search for Ref 60058635 i just want to type it in and excel will the search the workbook and direct me to the correct page and column.

View 14 Replies View Related

How To Reference Worksheets Inside Workbook

Jul 3, 2013

I do a payroll workbook for my small company. Each sheet inside the workbook is a month. Each sheet totals the monthly labor categories. I would like to keep a "year to date" total on each employee and therefore would have to reference each sheet.

Setting up a formula (or tell me where to look) on how to total worksheets inside a workbook?

Example: the workbook contains a total of 12 sheets, representing the 12 months of the year. Add "cell reference" from sheet 1 to sheet 2 to sheet 3 to reach a total, then when sheet 4 is completed it contains the cumulative totals of all 4 sheets, etc., etc. Where I can look at this "year to date total" and compare to last years "year to date total".

View 2 Replies View Related

Reference Row In Another Workbook With Integer Variable

Jan 28, 2014

I need to reference a different workbook in a while loop. Each iteration, PopFive increases by 3, as I want to pull the numbers of every third row. How does the syntax of the line go after the " ! "?

[Code] ......

View 1 Replies View Related

Indirect Reference To Closed Workbook

Jan 17, 2008

I am writing a formula in cell "B1" in "December 2007 REVISED BY DAN.xlsm" that will reference cell "X1" in a workbook that has not been created yet.

The way I will tell the formula what the name of the workbook will be is by referencing cell "A1" and adding the extension ".xlsx" to it.

Example: ...

View 14 Replies View Related

Reference Workbook And Sheet From A Cell Using VBA

Aug 19, 2009

Is it possible for the VBA code to capture the open workbook name and sheet name from a cell?

I've been trying to tweak this ...

View 6 Replies View Related

Reference To External Workbook Objects

Dec 14, 2009

I'm having trouble working this around, i use the following code in one of my Workbook sheets.

View 10 Replies View Related

Workbook / Worksheet Reference Macro?

Apr 19, 2012

I have a Workbook that has a macro that, as of now, is referencing the Workbook's file name. I'd like it to just be referencing the worksheet itself (it is in the same workbook) so that when the file name is changed, the macro still works.

I know which part needs to be changed... just not what to!

Code:
Sub CopyData()
Dim Cell As Range
Dim DstWkb As Workbook
Dim DstWks As Worksheet
Dim R As Long
Dim Rng As Range
Dim RngEnd As Range
Dim SrcCols() As Variant
Dim SrcWks As Worksheet

[code]....

View 2 Replies View Related

VBA To Activate Workbook With Reference To Name In Cell

Jul 9, 2012

i need a VBA code to activate workbook (which is already opened) with reference to name in cell A1

in Cell A1 is "masterworksheet.xls"

View 4 Replies View Related

Indirect Reference To A Separate Workbook

Jun 26, 2014

Just wondering if there is a way to indirectly reference a workbook in a formula?

For example, suppose A1 has the path/filename of the workbook I want to reference.

So in another cell I want to do, say, a VLOOKUP(A2,A1,5), where A2 is the lookup value. This way, if I have multiple workbooks I want to look at, I can specify them all in various cells, and simply have the formula look at the right cell to perform the lookup.

I've played with INDIRECT and get something close if I do

=INDIRECT("'"&A1&"'!A1:AJ1500")

but that just returns the contents of A1 in the target sheet.

View 1 Replies View Related

Formula To Reference Another Workbook Using Cells

Nov 19, 2003

I'm trying to do: In Book2.xls, Sheet1, Column A, I have a list of tab names in another workbook (2003 Com October.xls). In column B of Sheet1, I want to utilize what's in column A to pull data from the correct tab in 2003 Com October.xls. Here's what the result should resemble:

******** ******************** ************************************************************************>Microsoft Excel - Book2___Running: xl2002 XP : OS = Windows XP (F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)boutB2B3B4B5B6B7=
ABCD1Onyx*IDName**2acgattikhickert**3acgattikhickert**4acgattikhickert**5acgattikhickert**6agomesnbizman**7athomasmweaver**Sheet1*
[HtmlMaker 2.42] To see the formula in the cells just click on the cells hyperlink or click the Name box
PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.

View 9 Replies View Related

Reference Worksheet Cell In Workbook

Aug 12, 2006

I have recently learned a little about Excel. Enough to be able to do our payroll for my company on it. My question is: On the 1st page of my workbook, is my quarterly report which shows all taxes, social security, and medicare we hold out each payday for each employee. The rest of the worksheets are for each employee. How do I have each employees withholdings automatically go to my quarterly report page?

View 5 Replies View Related

Reference Closed Workbook To Activesheet

Oct 13, 2006

how to go about or refer me to how exactly you assign a closed workbook to be active. I know this sounds off and its probably the wrong way to word it so here's my problem. I am developing a macro in Visual Basic 2005 using VB. I have a connection string that looks like this:

Private m_sConn4 As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:2005.xls;" & _
"Extended Properties=""Excel 8.0;HDR=YES"""

What I need to do is connect to it and update which I have done successfully, then save it as 2006.xls. Is there some sort of m_sConn4.SaveAs or something of that nature.

View 2 Replies View Related

Validation List Reference To Another Workbook

Feb 13, 2008

I know it's possible to list option reference in another worksheet in relation to data validation, but is it also possible to reference to a complete different workbook. If so, what's the procedure? I have many workbooks that reference the same list options.

View 7 Replies View Related

Reference Variables / Constants In Add-in From Workbook

Feb 21, 2008

I'm wondering if it is possible to declare a constant in an add in, and then reference that constant from workbooks that use that add in?

Basically I want to set a version number in the add in, and check it from the workbook.

View 3 Replies View Related







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