excel pick name of folder from cell

mrineedhelpp

New Member
Joined
Feb 14, 2022
Messages
2
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
  5. 2013
Platform
  1. Windows
Hello fellow members.

I have many excel files saved in one folder. These excel files have all the same format.

I want to extract certain information from specific rows and columns, so i started a new workbook and i wanted to be able to pick the file name from the list of file names i have in column A, like so in below image.

Any advise would be highly appreciated.

1644825302431.png



=INDEX('[(=A1).XLSM]'!$A$1:$R$31,23,4)
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
hi mrineedhelpp,

Welcome to the board.

I'd suggest use of indirect function, inside your index function.

1644835481904.png


Excel Formula:
=INDEX(INDIRECT("["&B1&"]"&B2&"!"&B3),5)

indirect creates your range, and then that range is indexed to return a specific value.

This requires your origin workbooks to be open at the time of calculations, or else it will return #Ref error.

hth....
 
Upvote 0
Thank you for your feedback, this is feasible if I have a a few files.

However i have almost 400 files and every month they are renewed in a new folder.

Is there any other way where the workbooks do not have to be open?
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,818
Members
449,049
Latest member
cybersurfer5000

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