I need to reference external sheet via an index, match, match functionality. The problem is that the external file path is dynamic. I tried to build a search using the indirect function; however, as you all know it only works when the source file is open. I then tried to build using hyperlink function and reference it in my index, match. It is not working. Can someone please help?
HYPERLINK("'["&Ref1&"]"&Ref2&"'!"&Ref3)
generates result
"'[Ref1]Ref2'!Ref3"
I think my problem is quotes. Is there a workaround?
Related
I'm trying to change links between workbooks and usually they're fine but I'm receiving an error now that says, " you can't enter this formula because it has too many values cell references and/or names." I understand what it says but I'm not too sure how to rectify it. Can anyone help?
I had the same issue and found a workaround:
Instead of using the Edit Links function, use the Find and Replace function and replace the old file reference with the new file reference.
I created an user-defined-function that will return an array, and the inputs of the function are linked to another excel file. Whenever I update the formula without opening the external file, the formula returns #VALUE. Is there any way to solve this problem?
I have been using the following hyperlink function to provide a link to a file based on the value of cell B3 — the function is located in cell L3 (and in Bn and Ln, as required).
=HYPERLINK(env("AGScan")&"\photos\"&B3&".jpg","photos\"&B3&".jpg")
As you can see this function uses the value of an Environment Variable called AGSCAN to provide the location of the file — in this case it would be C:\Data\Catalog — now using an environment variable is a bit restrictive — I would like to use the Hyperlink Base option instead since this is much easier to change and specify the file location in the hyperlink base in the Excel worksheet properties.
I can't seem to work out how to modify the above Hyperlink function to do this. Can anyone help me?
Thanks Brett, While I was waiting and hoping for someone to respond I did some more experimenting and came up with this solution
=HYPERLINK(B2&".jpg","photos\"&B2&".jpg")
which differs slightly from yours. I decided to put the full path in the hyperlink base field, so I think I need to have the cell reference followed by the concatenation symbol and then the literal text. I guess a slightly better version of mine would be
=HYPERLINK(B2&".jpg",B2&".jpg")
Are your and my expressions equivalent?
Once you have set the hyperlink base in the worksheet properties, just use the relative path to get your photos to display. The hyperlink base path will automatically be prepended.
If you set your base path to "C:\Data\Catalog", use something like the following:
=HYPERLINK("photos\B3.jpg", "photos\B3.jpg")
If you set your base path to "C:\Data\Catalog\photos", use something like the following:
=HYPERLINK("B3.jpg", "B3.jpg")
I need to convert the following formula to one that uses SUM(IF), as I am given a #value error when the external data source is closed.
=COUNTIFS(test1.xlsx!$B:$B,"Group1",
test1.xlsx!$C:$C,$D13,
test1.xlsx!$AB:$AB,">="&F12,
test1.xlsx!$AB:$AB,"<"&DATE(YEAR(F12),
MONTH(F12)+1,1))
Thanks in advance.
I don't see why you think SUM(IF) would make the situation any better. You need a worksheet name in your external links. So where I may have:
='E:\Temp\Stack Overflow\[Book1.xlsx]Sheet1'!$I$9
You are missing the reference to Sheet1 (or whatever worksheet you want to link to). Also, if 'Test1.xlsx' is not in the same folder as the current spreadsheet, you will need to include the path to the file (as in my example).
I want to make a reference to another workbook , let's say its name is "My workbook.xlsm" with the INDIRECT Function in Excel.
However "my workbook" file name could have any other string/characters before it or after it.
let's say I'm Trying to lookup "Lookup Value"
=VLOOKUP(""&"Lookup Value"&"",INDIRECT("'["&""&"my workbook"&""&".xlsm"&"]"&"("&A7&")"&"'!$A:$H"),8,FALSE)
I've tried the above formula and when i remove the wildcards before and after "my workbook" reference and write the name of the workbook exactly as it is , the formula works fine, but when i place the wildcards the formula gives a REF Error.
I'm definitely doing something wrong.
can anyone help please?
thanks in advance.
A workbook referenced with INDIRECT() must be open for the reference to work. Therefore, this approach is a non-starter from the go, unless you happen to have all files that might potentially meet the wildcard criteria open at the same time with your first workbook.
You may want to have a look at the free add-in called MOREFUNC.XLL, which has a function INDIRECT.EXT() that works with closed workbooks.
Edit: there are no wildcards in your formula above. A wildcard can be a ? for a single character or a * for any number of characters. The wildcard usage for INDIRECT with sheet names is explained in the video in your comment. For your example the formula would look like
=VLOOKUP(A2,INDIRECT("'[*my workbook*.xlsx]Sheet1'!$A:$H"),8,0)
There is no need to split up a string into a series of concatenated strings, but if you do, it does not make a difference.
You will find that this formula will always return an error, though. Indirect cannot parse wildcards in file names. It works fine with sheet names.
As I said in my comment: Since the file with the lookup table needs to be open anyway, so INDIRECT() can work in the first place, you can use a regular Vlookup with a direct reference to "my workbook". If you rename that file, the Vlookup formula will reflect the change immediately.