Two workbooks: File1.xlsx and File2.xlsx. In both, using simply just Sheet1 in both.
Workbook File1.xslx has array of cells with some data, example B2 to B30.
Workbook File2.xlsx has array of cells with data, which needs to be checked in File1.xlsx if existing in mentioned array.
The formula in File2.xlsx:
=MATCH(G2,‘file:///C:/Office/Files/File1.xlsx’#$Sheet1.B2:B30,0)
where in G2 is searched string; then position of the array where to search and 0, works good. It returns the position of G2 in File1.xlsx array B2to B30.
What I do need now is to have control of the position where to search, based on the user input (‘file:///C:/Office/Files/File1.xlsx’).
For example, one cell to be input cell where user may put filename (Example: File1.xlsx or File0.xslx), may be G1 cell at the File2.xlsx (Sheet1 in workbooks, where search, match will be performed is uniformed, it has data in B2 to B30).
So, in the G1 there will be user input “File0.xlsx”, for example. Now the tricky part.
The MATCH should take the G1 string and make (possibly) concatenation with other details.
There should be (just as example) something like this:
=MATCH(G2,‘file:///C:/Office/Files/G1’#$Sheet1.B2:B30,0)
Libreoffice is automatically converting the location to URL based one, in this case, URL of the file.
I tried many different options, getting different errors.
How to make the location dynamic, partly based on the content of one cell, where filename is entered?
Thank you.