Get a List of File Names from Folders & Sub-folders in Excel (using Power Query)

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.พ. 2025
  • You can use Power Query to get a list of file names in Excel from folders and subfolders.
    If you're using Excel 2016, you already have Power Query options in the Data tab (under the Get & Transform group).
    If you're using Excel 2010 or 2013, you will need to download, install and activate Power Query.
    Note that Power Query and Get & Transform refer to the same thing.
    For Excel 2010/2013, you need to install the Power Query add-in to use it (steps described below).
    -- Click here to download the Power Query add-in. Make sure you are downloading 32-bit if your Excel is 32-bit and 64 bit if your Excel is 64 bit.
    -- Install the Power Query add-in.
    -- Open Excel. If you see a Power Query tab, skip the remaining steps. If not, move to the next step.
    -- Go to File and click on Options.
    -- In the ‘Excel Options’ dialog box, click on Add-in in the left pane.
    -- From the Manage drop-down, select COM Add-ins, and click on Go.
    -- In the list of available add-ins, select Power Query and click OK.
    -- Close the Excel Application and restart Excel.
    The above steps would install and activate the Power Query for your Excel.
    In this video, I will show you the exact steps to get the list of file names from folders and subfolders.
    I will also show you how to edit the data in Power Query Editor to add more meta columns to the file name data.
    Read more about this here: trumpexcel.com...
    Related Video Tutorial: • How to Get the List of...
    Free Excel Course - trumpexcel.com...
    Paid Online Training - trumpexcel.com...
    Best Excel Books: trumpexcel.com...
    ⚙️ Gear I Recommend:
    Camera - amzn.to/3bmHko7
    Screen Recorder - techsmith.z6rjha.net/26D9Q
    USB Mic - amzn.to/2uzhVHd
    Wireless Mic: amzn.to/3blQ8uk
    Lighting - amzn.to/2uxOxRv
    Subscribe to get awesome Excel Tips every week: www.youtube.co...
    Note: Some of these links here are affiliate links!
    #Excel #ExcelTips #ExcelTutorial

ความคิดเห็น • 60

  • @trancerp2411
    @trancerp2411 5 ปีที่แล้ว

    THANK YOU!!! This is exactly what I was looking for. It is important to note that for different versions of Excel, the naming of the group in the ribbon and the name of the commands is different, but the placement and icons are the same. For Microsoft Office 365 Excel Version 1902 (Build 11328.20492) - up to date in 2020 - the steps are the following: Main Menu >> Data >> Get Data (button on the left of the Get & Transform Data group in the ribbon) >> From File >> From Folder >> Folder Dialog Box >> Browse >> OK >> New Dialog >> Transform Data button (bottom, third from left) >> (Delete and add [Attributes] columns as needed) >> Close & Load

  • @samanthalongsine7458
    @samanthalongsine7458 2 ปีที่แล้ว

    I have been trying to figure this out on my own for over a month now. Thank you!!!!!!!!!!

  • @MuhammadAshraf-bz4eo
    @MuhammadAshraf-bz4eo 3 ปีที่แล้ว +1

    Thanks man. Your video saved me hours of work.

  • @allanmcelroy
    @allanmcelroy 4 ปีที่แล้ว +1

    Thanks for a clear instructive video. I'm using Excel 365 and while some of the steps and names are slightly different, I was still able to workout from your video what the corresponding bits were.

  • @badulli
    @badulli ปีที่แล้ว

    Excellent video! Thank you so much.

  • @ericschmid
    @ericschmid 2 ปีที่แล้ว

    this is excellent!

  • @kristinolson8453
    @kristinolson8453 2 ปีที่แล้ว

    This is fantastic. Thank you! In the “Transform Data” view, is there a way to split the File Path column, or filter it? I’d like to show just the last two levels of the file path, if possible.

  • @cartrinachambers1253
    @cartrinachambers1253 ปีที่แล้ว

    Thank you for your video. What if I want the properties of the file? For example if, it is an .mp3 file and I wanted to export the "Artist" or "Album" information?

  • @janineatkins7498
    @janineatkins7498 5 ปีที่แล้ว

    Thanks for sharing this. This is going to be very handy to quickly find all files on a server with a file size of 0.

  • @umairriazahmed7075
    @umairriazahmed7075 7 ปีที่แล้ว

    Great work, i have been following u since 2014, you are doing a fabulous job.. or ab request yeh hai ap se k ap excel chordein english sikha dein apki english pe rushk aata hai

  • @herohippo1
    @herohippo1 3 ปีที่แล้ว

    Spot on guide, thank you so much

  • @percyfer7907
    @percyfer7907 4 ปีที่แล้ว

    Thanks a lot. Very usefull information. Saludos desde Peru

  • @christinehakimova6328
    @christinehakimova6328 3 ปีที่แล้ว

    Super useful, thanks a lot!

  • @fabiocesarrosa4719
    @fabiocesarrosa4719 4 ปีที่แล้ว

    Very Good

  • @OGMadMax
    @OGMadMax 4 ปีที่แล้ว

    Will this be dynamic?

  • @sidsawant
    @sidsawant 2 ปีที่แล้ว

    THANK A LOT

  • @zarna4
    @zarna4 3 ปีที่แล้ว

    Does it also help in getting property details that a file have like size and date modified

  • @williamdonovan3679
    @williamdonovan3679 5 ปีที่แล้ว

    Thank for a great presentation

  • @desaitejas
    @desaitejas 3 ปีที่แล้ว +1

    Great Work, I am so thankful for this work.
    Also, I was looking for an excel macro where If we have multiple images like 1000 images in a folder and if I want to search an image, then it will scan the folders and sub-folders and show the path of the relevant nearest match along with the photo.
    Is this possible??

    • @Korisidda
      @Korisidda 2 ปีที่แล้ว

      Sir did you got any idea on this question.... My work needs this kind customisation...

  • @6642633
    @6642633 5 ปีที่แล้ว

    That was Very useful... thanks for sharing this info.

  • @connierussell1831
    @connierussell1831 6 ปีที่แล้ว

    This video was very helpful. Thanks!

  • @ramonaf8077
    @ramonaf8077 4 ปีที่แล้ว

    Great! How can I see how many sheets there are in a Workbook or how many pages in a file? Thank you!

  • @pvnr5930
    @pvnr5930 7 ปีที่แล้ว

    Great narration..Thank you very much.

  • @vikaskaduskar
    @vikaskaduskar 3 ปีที่แล้ว

    Useful

  • @abhisheksahu9945
    @abhisheksahu9945 3 ปีที่แล้ว

    can you please tell If there is any way to reverse this process in windows. Suppose I have excel file it contains the list of file name and I want to locate that file in my computer.

  • @ldmlhome
    @ldmlhome 6 ปีที่แล้ว

    Amazingly helpful information that was particularly helpful for me today!! THANK YOU!!!

  • @cori1446
    @cori1446 6 ปีที่แล้ว

    Nice job!

  • @darshlaw
    @darshlaw 5 ปีที่แล้ว

    Thankx many thnkx but it is limited like if i want to use it in a partition which is full of alot of files it give me data for a few files not all partition can u explain

  • @deprive-999x
    @deprive-999x 3 ปีที่แล้ว

    Could you assign this a a Macro?

  • @rebekahmckiernan888
    @rebekahmckiernan888 5 ปีที่แล้ว +1

    Is there a way of getting the list and also bring in the page count column

  • @AniManuSCh
    @AniManuSCh 4 ปีที่แล้ว

    there is a way to also get any empty folder?

  • @Piyush-ff9ol
    @Piyush-ff9ol 7 ปีที่แล้ว

    superb 👍👍

  • @AstroComposerKarE
    @AstroComposerKarE 5 ปีที่แล้ว

    Is it possible to also get the file's owner/creator? It wasn't one of the attribute options.

  • @nssdesigns
    @nssdesigns 2 ปีที่แล้ว

    Too many subfolders resulting in a 260 char limit error. Any way to get around it without admin privilege's (work machine)

  • @danielphillips1224
    @danielphillips1224 6 ปีที่แล้ว

    Great video and advice! Do you have any tips on how to troubleshoot data appearing in the query edit window but not transferring or appearing in the Excel sheet? I'm experiencing this where columns like date accessed or modified aren't filling in. Thanks!

  • @saket_saurav
    @saket_saurav 4 ปีที่แล้ว

    Hello Please tell me how to do this with google drive and google sheets

  • @silentstate1984
    @silentstate1984 5 ปีที่แล้ว +1

    thank you but it doesnt load all my files. i had a folder with 1400 files in it and when i load it it only has like 200 showing.pls help??

  • @KhadimHussain-xe2sw
    @KhadimHussain-xe2sw 6 ปีที่แล้ว

    sir i would say that try make more videos on dashboard and power query

  • @LadyGin2
    @LadyGin2 5 ปีที่แล้ว

    Hey, I need some help ASAP..it did copy the list I had made in a folder... except I had numbered my list myself in the folder... so when I did your steps it copied to the same cell both number (but with series by 10 or something, so instead of 1,2,3...it came out 1,10,100,..) and in the same cell the artist name and track name...I know how to format the column to number it correctly, but I don't need it to number it next to the name especially incorrectly.. I need this list for tomorrow, Thursday the 30th... help please.. I have Excel 2019 thanks

  • @sandeepkumarpamulapa
    @sandeepkumarpamulapa 6 ปีที่แล้ว

    *Thank you*

  • @subhassen4268
    @subhassen4268 6 ปีที่แล้ว

    How to create MIS report in a data base

  • @Dilshan59
    @Dilshan59 6 ปีที่แล้ว

    Dear Tutor, Your videos are good. I have some query could you please help me on it. I would like to open a file from the computer by clicking cell value. If any of the pdf file name contains that cell value. That file should be open. Anybody can help me on this

  • @nyongcahngapak
    @nyongcahngapak 3 ปีที่แล้ว

    I want to make a list of 3 million files, but Excel only processes 4 thousand files, how can Excel process the 3 million files entirely?

  • @ashokmandanka4076
    @ashokmandanka4076 5 ปีที่แล้ว

    Respected sir, is there any way to fetch the list of files in google drive or one drive in excel as mentioned above ?

    • @Leo9az
      @Leo9az 5 ปีที่แล้ว

      You have to mount it first using Google drive file stream or any other similar program.

  • @lovelynini383
    @lovelynini383 7 ปีที่แล้ว +2

    Your voice is not audible.sir.
    What about the submission of folder and files

  • @santoshrane9able
    @santoshrane9able 5 ปีที่แล้ว

    installed power querry in windos 10. how to access folder from there?

  • @owlesymp
    @owlesymp 4 ปีที่แล้ว

    This will not work for any folder that has more than 100 video items in it. It will take very long to list out all the files and subfolders. The query will hang/freeze and fail when downloading before listing them out.
    I was trying to list out all files and folders in my 256GB micro SD card with this method and the query ran for 40 mins plus and still ongoing. I had to cancel it as it uses 4gb of ram constantly as well.
    Nonetheless, thanks for sharing this method though it doesn't fix my cause. Appreciated.

  • @OfficialMoin
    @OfficialMoin 3 ปีที่แล้ว

    What if I have 100 songs inside a folder and I want to extract the name and also the *_DURATION_* of each song in the excel file?

    • @zarna4
      @zarna4 3 ปีที่แล้ว

      Were you able to get solution?

  • @naresh90sharma
    @naresh90sharma 7 ปีที่แล้ว

    Double file showing in excel pls help

  • @zamasu_777
    @zamasu_777 7 ปีที่แล้ว

    Awesome

  • @SmartWentCrazy
    @SmartWentCrazy 4 ปีที่แล้ว

    I dont see new query .. just queries & connections. EDIT: It's called Get Data.

  • @sardarkarneetsinghchhabra7399
    @sardarkarneetsinghchhabra7399 4 ปีที่แล้ว +1

    what if i have 10000 files, i used your method and it gave me 25 documents only

  • @TexasElites
    @TexasElites 6 ปีที่แล้ว

    👍🏻👍🏻👍🏻👍🏻

  • @TVComercialProducer
    @TVComercialProducer 5 ปีที่แล้ว

    Thanks, blew my mind. i have 50gbs of music that cannot be coppied cause they are corrupted, i think, so ill just copy all info to a spredsheet

  • @talhazahid4145
    @talhazahid4145 5 ปีที่แล้ว

    thank you