Vlookup/Match - Reference external workbook array in a cell - excel

This probably isn’t possible but is there a way of referencing a cell that contains a workbook , name , location , tab and range when using Vlookup and Match formulas ?
I have a lot of references to other workbooks but I want to keep track of all the workbooks via one location
Im using the Northwind table as an example
https://www.google.co.uk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CCEQFjAAahUKEwilut7YxuXHAhUta9sKHWr-CV4&url=http%3A%2F%2Fwww.exceldashboard.org%2FNorthwind.xls&usg=AFQjCNGnhABr44N7nhF6oa5qtH9U930p0w&bvm=bv.102022582,d.d24

This should be possible using INDIRECT function. Here you can find how to use it to reference other workbook
http://www.contextures.com/xlFunctions05.html
unfortunately the function does not work if the source workbook is closed, but you can use Morefunc addin to use INDIRECT.EXT function which can reference closed workbook. Some info about it here:
http://www.ashishmathur.com/tag/indirect-ext/
http://download.cnet.com/Morefunc/3000-2077_4-10423159.html

Related

Auto Increment Sheet References for data in an external workbook

I am attempting to add the same cell from multiple sheets on the same EXTERNAL workbook. I would like to increment the sheet reference using the indirect function. I was wondering if there is a way to only reference the external workbook once, and increment the sheet reference. I thought about using the indirect function and summing it, but have no idea how to make sure it references the pathway to the external workbook. Any thoughts?
Note: I also tried this formula, which I found in a similar post, but the Vlookup feature seems unnecessary
=LOOKUP(9.99999999999999E+307,1/SUMIF(INDIRECT("'[BatchEmissions.xlsx]" & H119:H130 &"'!$AA$208"),$A1),H119:H130)

Can I use another open workbook's VBA Functions in another open workbook within a Cell formula?

I have some VBA functions defined within my Personal.xlsb that I want to use in the Cell formulae for other opened workbooks. I can use these functions within Cell formulae within worksheets in Personal.xlsb, however I can't seem to use these within other opened workbooks... I get the #NAME errors whinging that it can't find the function name.
I hope I've just done something stupid..
FYI for example, one function accepts some arguments including a Cell, and returns an element from the cell's value at a particular position (say Cell.Value = This.Is.An.Example, the function might return "An") effectively replicating a split()[2]
Cheers
You need to reference functions in the Personal.xlsb with the filename, like this:
=PERSONAL.XLSB!myFunctionName(A1)
If you don't want to do that for each function, you can create a reference in your new workbook's VBE. Go Tools > References and find the workbook in the list.
See a walkthrough of the whole process here: https://www.myonlinetraininghub.com/creating-a-reference-to-personal-xlsb-for-user-defined-functions-udfs

Excel: Reference an external workbook using named range

I'm trying to reference data from a table in another worksheet. I'm able to get it to work when I used cell numbers but can't get it to work when I use named ranges.
Works:
=SUM('/Path/To/File/[Book1.xlsx]Sheet1'!A2:A5)
Works when source workbook is open:
=SUM(Book1.xlsx!Table1[Column1])
Doesn't work when source workbook is closed:
=SUM('/Path/To/File/Book1.xlsx'!Table1[Column1])
I would like to use the named range due to the source table constantly being updated with values. Lastly, I'm using Excel for Mac which could be the issue but wanted to confirm. Thanks in advance.

Excel Dynamic Formula/Reference Workbook

I'm trying to create a dynamic reference within a formula; meaning the referenced workbook and subsequent sheet name can be changed and the appropriate data loaded.
I'm aware that a static formula reference could be done as follows:
=SUM('C:\Reports\[SOTDJ17.xlsx]Summary'!C10:C25)
but I want to be able to change the workbook name, and it will reference information from that particular workbook and change the data. The workbook name
is stored in B5 and the sheet is stored in B8. I thought I might be able to use
something simple like:
=SUM('C:\Reports\[B5]B8'!C10:C25)
but it doesn't seem to work. Is there a syntax error or something else I am missing?
(I should note that I am trying to reference a closed workbook)
You'll want to use Indirect():
=SUM(INDIRECT("["&B5&"]"&B8&"!$C$10:$C$25"))
Note that the workbook you're referring to must be open.

Is it possible to use a cell value as a workbook/worksheet reference in an excel formula?

Let's say I have a worksheet called "References". The value of cell B2 of this worksheet is
"C:\Documents\Workbook1.xlsx",
the path to a workbook.
On another sheet within the same workbook I want a formula which gets the value of cell A1 of worksheet "Sheet 1" of Workbook1.xlsx. Is it possible to have the formula look up the value of 'References'!B2 and use it as a reference.
i.e. I'd expect the formula would be something like
='['References'!B2]Sheet 1'!A1
I have tried using the CELL() formula but can't seem to get it to work in this way.
As this is a variable reference I presume that your source workbook is likely to be closed.
Attached is a summary (and screenshot in case the link ever changes) from Daily Dose of Excel covering how to pull a variable reference from a closed workbook . See INDIRECT and closed workbooks
Three options are provided:
Laurent Longre has developed the free add-in MOREFUNC.XLL which includes the function INDIRECT.EXT
SQL.REQUEST
Harlan Grove’s PULL function:
Assuming the referenced workbook is open, you can use the INDIRECT() function.

Resources