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

Поділитися
Вставка
  • Опубліковано 16 вер 2024
  • 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/excelco...
    Excel VBA Programming Course: bit.ly/excelvba...
    Social media:
    Facebook: / excel10tutorial
    Twitter: / excel10tutorial
    Blogger: excel10tutoria...
    Tumblr: / excel10tutorial
    Instagram: / excel_10_tutorial
    Hubpages: hubpages.com/@...
    Quora: bit.ly/3bxB8JG
    Website: msexceltutoria...

КОМЕНТАРІ • 34

  • @JhihSyun
    @JhihSyun Рік тому +2

    It works. And it was what I’ve been looking for. Thanks.

    • @Excel10tutorial
      @Excel10tutorial  Рік тому

      You're most welcome. Please subscribe and be with us.

  • @santibinelli
    @santibinelli 14 днів тому

    Thanks brotherrrr!!🔥🔥🔥🔥

  • @AndrewNgAdelaide
    @AndrewNgAdelaide 6 місяців тому

    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 Рік тому +1

    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.

  • @notanotherone100
    @notanotherone100 Рік тому

    Thank you, this helped me greatly

  • @zahidkhalid7928
    @zahidkhalid7928 Рік тому

    very helpful, thankyou

  • @kotinaidunarisetti6354
    @kotinaidunarisetti6354 28 днів тому

    Thank you😊

  • @AgustinMarcos-j4s
    @AgustinMarcos-j4s 9 місяців тому

    Thank you !

  • @arupkonian1064
    @arupkonian1064 Рік тому +1

    If i want to list the folder name only, which command should i put insted of "FILES" Command?

  • @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.

  • @IvanCortinas_ES
    @IvanCortinas_ES 2 роки тому

    Supervideo. Thenk you!!!

  • @nitinsingh.2107
    @nitinsingh.2107 2 роки тому

    Super Great! Can we also list their file sizes/memory taken?

    • @Excel10tutorial
      @Excel10tutorial  2 роки тому

      You can get last modified date, created date etc but not the memory. Here is it: ua-cam.com/video/bpEtDqbqDTc/v-deo.html

  • @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.

  • @Storiesblue
    @Storiesblue Рік тому

    How about import all filepath from a folder?

  • @AFBlastYT
    @AFBlastYT 7 місяців тому +1

    how to sort by date

  • @mahmoudgouda3103
    @mahmoudgouda3103 10 місяців тому

    ممتاز

  • @ronaldibarra572
    @ronaldibarra572 Рік тому

    Does this work on Mac? Does not seem to be working when I add the formulas you listed - it stays empty.

  • @vishwaschary3635
    @vishwaschary3635 2 місяці тому

    its not working for .mp4 formats could you please help in this regard

    • @Excel10tutorial
      @Excel10tutorial  6 днів тому

      Try These:
      ua-cam.com/video/ONMqpf5tp44/v-deo.html
      ua-cam.com/video/bpEtDqbqDTc/v-deo.html
      ua-cam.com/video/E57j4UXDIFo/v-deo.html
      ua-cam.com/video/J9poBn2fJIY/v-deo.html

  • @AsifAli-s7c1y
    @AsifAli-s7c1y Рік тому

    Can I apply on share point files and folders?

  • @OrangeMeteor1
    @OrangeMeteor1 3 місяці тому

    Doesnt work for me