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

  Рет қаралды 32,889

Excel 10 tutorial

Excel 10 tutorial

2 жыл бұрын

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
goo.gl/uL8fqQ
Here goes the most recent video of the channel:
bit.ly/2UngIwS
Playlists:
Advance Excel Tutorial: goo.gl/ExYy7v
Excel Tutorial for Beginners: goo.gl/UDrDcA
Excel Case: goo.gl/xiP3tv
Combine Workbook & Worksheets: bit.ly/2Tpf7DB
All About Comments in Excel: bit.ly/excelcomments
Excel VBA Programming Course: bit.ly/excelvbacourse
Social media:
Facebook: / excel10tutorial
Twitter: / excel10tutorial
Blogger: excel10tutorial.blogspot.com
Tumblr: / excel10tutorial
Instagram: / excel_10_tutorial
Hubpages: hubpages.com/@excel10tutorial
Quora: bit.ly/3bxB8JG
Website: msexceltutorial.com/

Пікірлер: 29
@JhihSyun
@JhihSyun Жыл бұрын
It works. And it was what I’ve been looking for. Thanks.
@Excel10tutorial
@Excel10tutorial Жыл бұрын
You're most welcome. Please subscribe and be with us.
@notanotherone100
@notanotherone100 9 ай бұрын
Thank you, this helped me greatly
@Excel10tutorial
@Excel10tutorial 9 ай бұрын
Glad it helped! Please subscribe and be with us
@IvanCortinas_ES
@IvanCortinas_ES 2 жыл бұрын
Supervideo. Thenk you!!!
@Excel10tutorial
@Excel10tutorial 2 жыл бұрын
I'm glad you like it.
@zahidkhalid7928
@zahidkhalid7928 11 ай бұрын
very helpful, thankyou
@Excel10tutorial
@Excel10tutorial 11 ай бұрын
Glad to hear that! Please subscribe and share.
@user-vh7hl5bg3m
@user-vh7hl5bg3m 7 ай бұрын
Thank you !
@Excel10tutorial
@Excel10tutorial 7 ай бұрын
You're welcome!
@fountainhead73
@fountainhead73 Жыл бұрын
Wow! it works really well, Thank you for this useful tip!
@Excel10tutorial
@Excel10tutorial Жыл бұрын
You're Most welcome. Please Subscribe and Be with Us.
@vishwaschary3635
@vishwaschary3635 12 күн бұрын
its not working for .mp4 formats could you please help in this regard
@AndrewNgAdelaide
@AndrewNgAdelaide 4 ай бұрын
Superb, wonderful to have that. Just wonder whether the CellA! formula can pick up all the files under subfolder and subsubfolders under the folder. Do we need to change the formula?
@flybywiresimulation
@flybywiresimulation Жыл бұрын
Thanks a lot, very useful video. I have an issue, when I do it for the first time all work fine, but when i click on the path to change it the formula doesn't work anymore. Could you help me please? I can't understund where is the issue. In your video I can see that you can change easly the path in the cell A1, when I try formula dont work anymore.
@nitinsingh.2107
@nitinsingh.2107 Жыл бұрын
Super Great! Can we also list their file sizes/memory taken?
@Excel10tutorial
@Excel10tutorial Жыл бұрын
You can get last modified date, created date etc but not the memory. Here is it: kzbin.info/www/bejne/mKGopXenl9Z3isU
@arupkonian1064
@arupkonian1064 Жыл бұрын
If i want to list the folder name only, which command should i put insted of "FILES" Command?
@mahmoudgouda3103
@mahmoudgouda3103 8 ай бұрын
ممتاز
@kristidyson443
@kristidyson443 Жыл бұрын
Thanks for the video. I thought I was pretty good at excel but I can't figure this out. When you get to minute 2:43, I'm not sure what you mean by adding in the formula. what formula?
@Excel10tutorial
@Excel10tutorial Жыл бұрын
=IFERROR(INDEX(List, ROW(A1))," ") This is the formula. Please Check Video Description.
@rizkirz.
@rizkirz. 11 ай бұрын
How about import all filepath from a folder?
@ronaldibarra572
@ronaldibarra572 Жыл бұрын
Does this work on Mac? Does not seem to be working when I add the formulas you listed - it stays empty.
@Excel10tutorial
@Excel10tutorial Жыл бұрын
I didn't check it on mac
@user-tk3ex7nc3k
@user-tk3ex7nc3k Жыл бұрын
Can I apply on share point files and folders?
@Excel10tutorial
@Excel10tutorial 11 ай бұрын
Try and let us know.😉
@explorewithmangeshgaykar5288
@explorewithmangeshgaykar5288 4 ай бұрын
@@Excel10tutorial not working on onedrive adresss. and I want only folder name is it possible?
@AFBlastYT
@AFBlastYT 4 ай бұрын
how to sort by date
@OrangeMeteor1
@OrangeMeteor1 28 күн бұрын
Doesnt work for me
How to rename multiple files at once using Excel (Windows)
5:33
Karina Adcock
Рет қаралды 367 М.
LOVE LETTER - POPPY PLAYTIME CHAPTER 3 | GH'S ANIMATION
00:15
100❤️
00:19
MY💝No War🤝
Рет қаралды 21 МЛН
Who has won ?? 😀 #shortvideo #lizzyisaeva
00:24
Lizzy Isaeva
Рет қаралды 61 МЛН
List all the files in a folder and subfolders with Power Query
6:00
Excel Off The Grid
Рет қаралды 14 М.
Quickly creating a list of files in a folder
3:44
Matt Lanham
Рет қаралды 345 М.
How to Create a List of Files inside a Folder (in Excel)
12:47
Get Data From SharePoint or OneDrive with Power Query - Demystified!
14:00
MyOnlineTrainingHub
Рет қаралды 193 М.
How to Get a List of all Files in a Folder and Subfolders into Excel
3:15
How to Get List of File Names in a Folder using Excel
5:40
Excel Weez
Рет қаралды 6 М.
Excel FILTER Function TRICK for Non Adjacent Columns
12:03
Leila Gharani
Рет қаралды 321 М.
Stop using VLOOKUP in Excel. Switch to INDEX MATCH
11:05
Excel Level Up
Рет қаралды 2,3 МЛН
LOVE LETTER - POPPY PLAYTIME CHAPTER 3 | GH'S ANIMATION
00:15