Hi all,Would it be possible to find data from 2 cells in multiple closed excel workbooks in a specified folder.
The cells are the same in all the spreadsheets (J17 & L40), but they all have different file names.
JonesZoid
Hi all,Would it be possible to find data from 2 cells in multiple closed excel workbooks in a specified folder.
The cells are the same in all the spreadsheets (J17 & L40), but they all have different file names.
JonesZoid
Hi,
To retrieve data from closed files, you need to look into the PULL() function from Harlan Grove, or download the add-in designed by Laurent Longre called morefunc ...
HTH
It might also depend on how you intend to retrieve the data...
If it is a simple formula where you actually name the workbooks directly within the formula, then you can probably do it without the Pull or Indirect.ext functions...
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Adding to NBVC's comment:
Example: ='[IT Logs.xls]Requests'!$J$17
Syntax: ='[Filename]Worksheet'!Range
I currently have a folder where all the workbooks are held. D:/Surveys
This folder holds all of the UK's information on a weekly basis.
So - i need to extract 2 cells of information (Site Name and ID) so i can accertain which workbooks are the ones i require for MY Region via a vlookup. If i can delete workbooks that dont match my vlookup as well, that would be a big bonus.
Hope this clears up - exactly what my requirements are.
JonesZoid
It doesn't really clear up much... but if you are looking to indirectly refer to a workbook by date as a name.. then you will need the functions mentioned by JeanRage.
Can you give an example of what exactly you want to do?
OK - Basically, all of the closed workbooks, all with different names hold alot of information - i only require info from 2 cells, say for ease: A1 - Site Name and A2 - Site ID.
In my open workbook - i have a vlookup that checks the Site ID to see if it is in my region. (This only works within this workbook, at the moment)
Can this vlookup be incorporated into the pull or indirect functions to tell me which of the closed workbooks are for my region. This output can be put onto a new sheet if required.
JonesZoid
How many closed books are we talking about...
How is the vlookup setup now and how do you want it set up?
Hi All - The closed workbooks can range from 20 to 200 or more depending on the work load.
My vlookup currently looks at the Site ID and matches it with the sites in my region - but i only perform this currently on a one to one workbook report. But this report is no longer being used - hence all the workbooks....
This is my current vlookup -All it does is check to see if the Site ID is in my region...![]()
Please Login or Register to view this content.
JonesZoid
HI
Save the codes in a workbook inside the folder and run the macro.
this code lists all files in the folder and pulls J17 & L40 of sheet1 from closed workbook.![]()
Please Login or Register to view this content.
ravi
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks