Macro/Formula to find cells in multiple files

erniepoe

Active Member
Joined
Oct 23, 2006
Messages
380
Office Version
  1. 365
Platform
  1. Windows
Hi All,

So I have a folder with about 50 files that represents the month's accruals, and the cells I am after are in F61 and F68 of the "template" worksheet in every file.

If there is a way I could quickly do this, rather than having to go in and open up 50 files and manually add the cells together, that would be great.

I would not mind setting up a template, for instance, and writing the name of the file if there were a formula that could go in and find it.

Any help is much appreciated, even if you can merely point me to a source where I might be able to teach myself how to do this.

Thanks,
Ernie
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
you could indirect closed workbooks then specify the cells you want.
http://www.dicks-blog.com/archives/2004/12/01/indirect-and-closed-workbooks/

to ge the file names as text, you can do that in a cmd.

1. Open up your command prompt
2. Navigate to the directory which has the files and type the following command -
DIR /B /O:N > filename.txt
This will save all the filenames in the current directory to a text file. The text file will be saved in the same directory.

then copy and paste that into excel
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,550
Members
452,927
Latest member
rows and columns

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top