How To List All File Names from A Folder into Excel Using Formula

Описание к видео How To List All File Names from A Folder into Excel Using Formula

How To List All File Names From A Folder into Excel Using Formula
In this intermediate excel tutorial, I'll show you how to get all filenames from a folder into an excel worksheet. This method can also get a list of specific file types from a folder. For example, if you want to get the List of all pdf files, you can do that. There is another optional feature included in this tutorial. You can also open that listed file from excel if you want. And all this will be done without using any VBA. I'll do it using functions and some excel features.
Now let's follow the instructions below to get filenames from a folder into excel.
Step 1: Get Folder Location: You need to do several things before you get the file name. First, you'll need to get the file path. For that, you can go to the folder, right-click on the address bar, and select copy address. Paste it into a cell; in our case, it's cell A1. Now add \* after the address.
Step 2: Now, click on the Formula tab and name manager. Now select New. Now write the name in the name box and remember it. You'll need the name. in our case, the name is "List." Now into the refers to box, write this formula: =FILES(Sheet1!$A$1)
Remember our folder address is placed in cell A1 hance we've written the reference in the formula.
Step 3: Now go to any cell of your worksheet and write this formula: =IFERROR(INDEX(List, ROW(A1))," ")
Remember the name of the named range? It was List, and it's inside our formula. Now, drag the formula to autofill and all the filenames inside your specific folder will be listed.
This is how you get a list of file names and extensions into excel. But if you need to add hyperlinks to those names so that you can open it from excel, you'll have to use the below formula:
=IFERROR(HYPERLINK(LEFT($A$1,LEN($A$1)-1)&INDEX(List,ROW(A1)),INDEX(List,ROW(A1))),"")
Now, if you want to get only pdf file names from a folder or only the excel files from a folder, you can do that easily. Remember we added \* after the file path in cell A1. Just write PDF or XLS or any file format after that you want to extract.

Lastly, if you want to use the function again just save the workbook in .xlsm format.

#FIleName #GetFileNames #Excel

Thanks for watching.
----------------------------------------------------------------------------------------
Support the channel with as low as $5
  / excel10tutorial  
----------------------------------------------------------------------------------------
Please subscribe to #excel10tutorial
https://goo.gl/uL8fqQ

Here goes the most recent video of the channel:
https://bit.ly/2UngIwS

Playlists:
Advance Excel Tutorial: https://goo.gl/ExYy7v
Excel Tutorial for Beginners: https://goo.gl/UDrDcA
Excel Case: https://goo.gl/xiP3tv
Combine Workbook & Worksheets: https://bit.ly/2Tpf7DB
All About Comments in Excel: https://bit.ly/excelcomments
Excel VBA Programming Course: http://bit.ly/excelvbacourse

Social media:
Facebook:   / excel10tutorial  
Twitter:   / excel10tutorial  
Blogger: https://excel10tutorial.blogspot.com
Tumblr:   / excel10tutorial  
Instagram:   / excel_10_tutorial  
Hubpages: https://hubpages.com/@excel10tutorial
Quora: https://bit.ly/3bxB8JG
Website: https://msexceltutorial.com/ Become a member and enjoy exclusive perks while supporting the channel you love!
   / @excel10tutorial  

Комментарии

Информация по комментариям в разработке