Excel Question - Trying to build and automate a report

I am trying to build and "automate" a report that pulls data from many spreadsheets. I'm not too bad with excel but have little to no experience with macros, etc. but am willing to learn. Let's say I have a folder on my hard drive with a number of files titled "File 1 Jan 10 2009", "File 1 Jan 11 2009" and so on. Ideally what I would like to create is two cells in excel where I can enter the dates and then I want excel to pull specific data from the spreadsheet and run some simple metrics. I could go and copy and paste the data from day to day but figure I should make it simple and save myself some time.

Anyone know how to do this or know where I can find out how to do this? I did some google searches and in a forum or two but have yet to find anything.

Thanks

3 Comments
 

You will want to use the INDIRECT() and OFFSET() functions to create dynamic references. Remember that you can also use & to combine strings for filenames, for example:

Normal: =[filename2.xls]Sheet1!A1 Dynamic: ="[filename"&B2&".xls]Sheet1!A1"

Doing this off the top of my head, I haven't tested it in excel - but if that doesn't work, read the help for the INDIRECT() function.

  • Capt K
- Capt K - "Prestige is like a powerful magnet that warps even your beliefs about what you enjoy. If you want to make ambitious people waste their time on errands, bait the hook with prestige." - Paul Graham
 

thanks for the reply.

in the indirect function's help, it says "If ref_text refers to another workbook (an external reference), the other workbook must be open. If the source workbook is not open, INDIRECT returns the #REF! error value. "

The point of my exercise is to try to save time by not opening up several workbooks but just changing the date in a specific cell and have it go to the right path on my hard drive and pull the right data from the right file. is this possible? even if i have to leave the computer for a few min its fine by me. I just dont want to open up so many files. any ideas?

thanks

 

Incidunt debitis repellat dolorem et voluptatum. Molestiae qui aut aut non nobis rerum iste.

Voluptatem repudiandae ea laborum nostrum. Explicabo illo necessitatibus exercitationem eius repellendus sint error. Est rem explicabo rerum rerum. Sit incidunt quas dolorem autem ea ut quasi rerum. Consequatur suscipit error ea a. Est non exercitationem maiores perspiciatis qui. Facilis libero molestias molestias.

Dolore eos ex voluptatem iste ipsa consectetur voluptatem. Totam ab fugiat reiciendis natus eius error. Dolorem tempora voluptatibus sapiente consequatur aut eius. Quia tempore modi non commodi maxime.

Career Advancement Opportunities

November 2026 Investment Banking

  • Evercore 01 99.5%
  • Moelis & Company 01 99.0%
  • JPMorgan 01 98.4%
  • Guggenheim Partners 02 97.9%
  • Morgan Stanley 06 97.4%

Overall Employee Satisfaction

November 2026 Investment Banking

  • Moelis & Company No 99.5%
  • Morgan Stanley 02 99.0%
  • Evercore 01 98.4%
  • Banco Santander 02 97.9%
  • BMO Capital Markets 13 97.4%

Professional Growth Opportunities

November 2026 Investment Banking

  • Evercore 01 99.5%
  • Moelis & Company 01 99.0%
  • Morgan Stanley 05 98.4%
  • Goldman Sachs 01 97.9%
  • JPMorgan No 97.4%

Total Avg Compensation

November 2026 Investment Banking

  • Vice President (16) $429
  • Associates (57) $264
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (28) $184
  • Intern/Summer Associate (16) $161
  • 1st Year Analyst (84) $151
  • Intern/Summer Analyst (76) $101
notes
16 IB Interviews Notes

“... there’s no excuse to not take advantage of the resources out there available to you. Best value for your $ are the...”

Leaderboard

success
From 10 rejections to 1 dream investment banking internship

“... I believe it was the single biggest reason why I ended up with an offer...”