Get Multiple Files Containing Multiple Sheets with Power Query

Поділитися
Вставка
  • Опубліковано 7 січ 2025

КОМЕНТАРІ • 685

  • @MyOnlineTrainingHub
    @MyOnlineTrainingHub  3 роки тому +10

    FAQs Answered:
    1. Can you get workbooks with a different number of columns? Yes, however the columns will be appended in order from left to right. Therefore, if your columns are not all in the same order you'll end up with a mess!
    2. What happens if workbooks have different column headers? The worksheets will be appended in column order from left to right irrespective of the column names. As long as the columns contain the same data and are in the same order, then it doesn't matter what they're called.
    3. What happens if workbooks include a blank worksheet or worksheets you don't want to import? These worksheets will be included in the query however, you can add a filter in the query to exclude any sheets you don't want included in the final dataset.

    • @mikeheim44
      @mikeheim44 3 роки тому +2

      Will it automatically update if you add more data files to the folder?

    • @garylillich
      @garylillich 3 роки тому +2

      @@mikeheim44
      Hit refresh on the final table and it SHOULD update.

    • @mikeheim44
      @mikeheim44 3 роки тому

      @@garylillich Thank you

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

      How can I separate each text files ( or .asc) to separate columns? In my case they all have the same X axis values but different Y values . HELP please . I have 120 files, cannot do them one by one!

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

      I have 12 workbook ( Jan to Dec) and each workbook have more than 1 sheet, I want to combine all "sheet-1" only into file, how? - its # 3, how to filter?

  • @BoubacarDiallo-sp6tw
    @BoubacarDiallo-sp6tw 4 роки тому +2

    I wanna give you a shout out from Richard Toll, Senegal. Your tutorials are really taking my excel skills to the next level. Thank you!

  • @SkibsMaster1234
    @SkibsMaster1234 9 днів тому

    Love your vids. So easy to follow and very well presented. Im far from advanced in excel but your tutoring has really helped a lot tgabks very much.

  • @akramrahamath1381
    @akramrahamath1381 4 роки тому +8

    It came right at a time when I needed this tutorial the most, have a load of data to consolidate and it just got made simpler. Thanks Mynda:)

  • @RaviShankar-hu2ft
    @RaviShankar-hu2ft 2 роки тому

    Finally I got the consolidation to work right! The vidoe is very helpful with clear instructions. Thanks Mynda!

  • @etbarker9
    @etbarker9 3 роки тому

    I was struggling for a while with a file a colleague sent that had data across multiple sheets. I used power query to transform and combine that data into a single, unified table, but couldn’t figure out how to attach the name of the sheets along with the data. Searched online, and couldn’t immediately find the answer. I thought I was okay at power query, but I was still at a loss. Thank you thank you for posting this! Saved me a TON of manual work!

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  3 роки тому

      Hi Eric, You can use Get Data > From File > From Folder to connect to the file. This will give you a list of the sheets in each file. Note: you cannot use this on the file containing the query i.e. it cannot reference itself. It can only reference a file that is closed.

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

    This is going to save me a lot of time. Thanks for explaining in a simple and effective way

  • @awakim
    @awakim 11 місяців тому

    As always, found this page to post the most useful and effective videos. Thank you very much for this post.

  • @williamthatsmyname
    @williamthatsmyname 2 роки тому +2

    Absolutely mind blowing. Thanks for the tutorial. Keep up the good work.

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

    I have seen tens of videos about this topic, and this is the best. Thanks.

  • @felipe4181
    @felipe4181 4 роки тому +2

    Hi Mynda,
    Always your tutorial are easy, Simple and straight to the point!
    Thank you!

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

    This tutorial is a lifesaver for my workflow monitoring integration file transfer logs

  • @kangsungho1752
    @kangsungho1752 4 роки тому

    You are the best powerquery master I've ever seen.

  • @mpactagj
    @mpactagj 4 роки тому

    I watched a half dozen similar videos trying to figure this out, using VBA, etc. etc., but this was the most comprehensive and did not make non-real world assumptions like having pristine data or even well formulated data. Very helpful!

  • @Hjmatthebench
    @Hjmatthebench 8 місяців тому

    Thank you so much Mynda for sharing your talents. You helped me to do exactly what i was trying to for a while.

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

    The steps for combining all difference files are very clear and easy to follow, thanks a lot!

  • @vikramgupta3827
    @vikramgupta3827 3 роки тому

    Your explanations are very clear and informs small actions that are required

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

    Excellent solution and review...thank You so much for sharing.

  • @陈金-x7k
    @陈金-x7k 2 роки тому +2

    The tutorial is clear, informative and super helpful.

  • @myesmuratova8640
    @myesmuratova8640 3 роки тому

    Mynda, you are super star, thank you for sharing us free tutorials.

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

    yes, this is exactly what I need to know for merging a number of files with worksheets. thanks

  • @douglasbrito2921
    @douglasbrito2921 3 роки тому

    Hi Mynda, thanks very much for this. I was struggling to achieve this at Power BI, now I'm using your explanation. Cheers

  • @vityavertu526
    @vityavertu526 3 роки тому

    amazing tutorial, just 8 mins and you got a solid knowledge of powerquery basics. Good job!

  • @777kiya
    @777kiya 2 роки тому

    Thank you, it's helpful. I've not used Power Query before, but I think when the need to do comes, I'll be ready.

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

      Great to hear! You might also like this introduction to Power Query video: ua-cam.com/video/L4BuUzccLpo/v-deo.html

  • @ianstaines1674
    @ianstaines1674 3 роки тому

    Your simple explanation of how to design a Custom Column to load unstructured data from files in a folder led me to this solution.
    I needed to aggregate multiple files in a folder. I have used Get Data "From Folder" for other file types such as XML before but it does not handle HTML data.
    Using your suggestion I was able to select the "Name" and "Folder Path" columns from the source data and then create a Custom Column that referenced each file in the folder as an html document.
    LoadAsHTML=Web.Page(Web.Contents("file:///"&[Folder Path]&[Name]))
    This allowed me to consolidate data from the multiple files in HTML format.

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  3 роки тому

      Great to hear, Ian! Thanks for sharing. It's a clever workaround.

  • @ExcelWithChris
    @ExcelWithChris 3 роки тому

    Thanks a million. As a new user of PQ these basic but very important methods are of great use and value. Thanks.

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

    thank you soo much!! this will save me and my manager several hours of work

  • @wayneedmondson1065
    @wayneedmondson1065 3 роки тому

    Hi Mynda. Thanks for this fun Power Query transformation example. I always learn something new from you :)) Thumbs up!!

  • @w13ken
    @w13ken 4 роки тому

    Hi Mynda, I just finished writing an Excel VBA program that did virtually the same thing but this is a much faster solution! I use Power Query in Power BI and I have no doubt that your Power BI videos are as exceptional as your Excel ones - for me the best on the web - so looking forward to reviewing those. Many thanks!

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  4 роки тому

      Thanks for your kind words, Ken! Great to hear you enjoy my videos :-)

  • @YazminAbat
    @YazminAbat 3 роки тому

    thanks a lot !!! your videos summarize whole courses

  • @williamarthur4801
    @williamarthur4801 3 роки тому +1

    Thank you, and thank you so much for taking the time to reply.

  • @tosmanhype9419
    @tosmanhype9419 3 роки тому

    Thank you for sharing your knowledge ! Incredibly helpful !

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

    This process order worked much easier for me, thanks.

  • @JuanSalvadorEstradaE
    @JuanSalvadorEstradaE 4 роки тому +2

    Outstanding !! Just what I needed !! Thanks a lot, they are very helpful, easy to follow and to the point !

  • @genechicago4806
    @genechicago4806 3 роки тому

    I was experimenting with power query without fully understanding what I was doing and had a similar file where the date was part of the file name. To extract the date I split the file name with the delimiter option. Afterwards, instead of using the date function(since I wasn't aware of it) I replaced 1 with Jan, 2 with Feb, 3 with Mar etc. and left the year in a separate column. That was enough to get what I needed, but the Date function seems like a better way to do it. Thank you for sharing this video!

  • @davida.taylor8444
    @davida.taylor8444 3 роки тому

    Thank you for this. This came in super-handy this week!

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

    This is genius level. So many excel users don't know how to create useful data but create data that is a nightmare to work with.

  • @marvinjoyceburgstededijk9749
    @marvinjoyceburgstededijk9749 4 роки тому

    Wonderfull video and exactly what I needed to summarise my data from a folder location. Thanks allot and cheers, from Amsterdam!

  • @Maximus18.6
    @Maximus18.6 3 роки тому

    Thanks so much for sharing your knowledge on excel.

  • @kennethpaige7036
    @kennethpaige7036 3 роки тому

    Thank you ... I had a problem yesterday that completed the hard way ... but the next time I will be ready!

  • @frederickzoreta6617
    @frederickzoreta6617 3 роки тому

    Another SUPER EXCELLENT Tutorial! Thanks a LOT for your sharing your expertise! This helped me in 1 of my academic projects that I'm finishing right now :).

  • @Seftehandle
    @Seftehandle 3 роки тому

    very useful and helpful esp. the part about content column (addcolumn - custom column -Excel.workbook and selct the name of the columns) and filtering objects, right click table field to see data preview, , close and load to :)

  • @TheSaint7770
    @TheSaint7770 4 роки тому

    A gem of a channel!! ... Thank You!

  • @jasfradique
    @jasfradique 4 роки тому +10

    You make this look so s-i-m-p-l-e! Amazing, just amazing! I know for sure this is going to help me a lot, in future tasks. Thank you very much for sharing it with all of us ;-)

  • @onnseanbeats1012
    @onnseanbeats1012 3 роки тому +4

    Exactly what I was looking for! Very well done and easy to follow.

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  3 роки тому

      Glad you liked it!

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

      @@MyOnlineTrainingHub Ony one question. Can this work if the column headers are not the same and not in the same order? Since this is not an append, Im getting a mismatch of columns with this method, since one of my files has one sheet with one less column.

  • @greeppl
    @greeppl 3 роки тому +1

    Thanks for the video - really helpful
    After having used Google Sheets for the past years, moving to Excel was a terrible experience.
    As if Microsoft have never heard about the word Usability or User Experience.
    The data integration across Google Sheets is MILLION times SIMPLER vs the convoluted Excel...

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  3 роки тому

      Glad I could help.

    • @garylillich
      @garylillich 3 роки тому

      Are there stuff you can do in Google Sheets that one cannot do in Excel?
      Some of my customers send files to me via Google Sheets, but I have not tried doing anything with the file except to download to Excel.
      Out of curiosity, why did you move to Excel?

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

    thank you so much, this video got me out of a really sticky situation :)

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

    Awesome! You solved my problem in 8 minutes 😍

  • @eyofhe
    @eyofhe 4 роки тому

    very useful. combining 10 workbook with multiple sheets within 5 minutes. thanks

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

    Thanks a lot for this vid. You just saved me from making a mess 😀

  • @Justme-bf1vf
    @Justme-bf1vf 4 роки тому

    thanks a lot for the great job. we appreciate a lot your courses and i am one of your fidel followers

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

    Excellent demo. Thank you

  • @jigneshmore4312
    @jigneshmore4312 3 роки тому

    Thank you for the detailed information, I have learnt a lot from your video about automation and implemented plenty of them.
    from 4:28 - Could you also advise how to deal with different fields of data in each sheet of my group of workbooks or if I can once again split them into each sheets post cleaning and transforming to get compilation into a master file for automated report. It would be great if you can guide me through the process.

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  3 роки тому

      Please post your question and sample Excel file on our forum where we can help you further: www.myonlinetraininghub.com/excel-forum

  • @777Danila
    @777Danila 4 роки тому +2

    Ohh where you was before- I LOVE YOU. TANKS. I run to try!!!

  • @huseyinburaktasci
    @huseyinburaktasci 4 місяці тому

    Excellent solution! Thank you!

  • @Mahmoud-mf8hn
    @Mahmoud-mf8hn Рік тому

    Just awesome.
    You saved my life once again!

  • @deninsrmic4165
    @deninsrmic4165 4 роки тому

    Great tutorial Mynda, very well explained especialy with the use of =#date([Funtion]). Thanks.

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

    Hi Mynda. Your method is different from the way I did when I merge all files in folder (I use sample data merging). But your method seems to be optimised . I bet it is much faster to run the query compared to using sample files. I will try it. Thanks a lot!

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

    What an amazing video .Really a game changer. Thank you Mynda.💯

  • @kc329191
    @kc329191 3 роки тому

    Thank you, you explained this very well. I will review again as a guide to combine multiple excels.

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

    Very well presented. Thank you

  • @kaiseikokoro
    @kaiseikokoro 3 роки тому

    I love all your videos, its so useful. thank you so much. it save hours of my time. really appreciated it.

  • @mahmoodahmadghaznavi2326
    @mahmoodahmadghaznavi2326 4 роки тому +1

    Lovely person.... Great teacher.

  • @anv.4614
    @anv.4614 Рік тому

    Thank you Mynda. very useful. Wonderful.

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

    It really solved my problem. Thanks a lot!

  • @TheOndricek
    @TheOndricek 4 роки тому

    Thanks - big help. Especially the #Date formula. I've been looking for that functionality for a while!

  • @emmetzzisco9377
    @emmetzzisco9377 3 роки тому

    Thank you ma'am,,this will be my first lesson on my journey especially in an EXCEL..😍😍

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

    Well explained tutorial. Found it very useful. Cannot thank you enough!

  • @-Tharos-
    @-Tharos- Рік тому

    Thanks, this is pure gold!

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

    Great straight forward tutorial! I guess I have an example question for you given that it's a very specific question!
    Say you have a team who keep all of their sales data for the year in an excel file on SharePoint. That excel file is password protected.
    1. Would the data from the password protected file be accessible to a user using your Power Query method?
    2. Would the information be updated in real time when the Excel files are updated on the SharePoint?

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

      Hi Joey, Power Query can't access password protected Excel files.

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

    Amazing explanation 👏

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

    Great video, this helped me a lot

  • @omprakashojha9698
    @omprakashojha9698 3 роки тому

    Thank you! Very well explained. Could you please make a video on different syntaxes that are used in power query? Will appreciate that.

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  3 роки тому +1

      Glad you found this video helpful. Thanks for your topic suggestion.

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

    Wonderful video! The content is crystal clear and *almost* covers what I'm looking for - say, if I have 10 tables with 5 sheets, where would this process differ if I want to combine the data not in one single table, but in five tables? (i.e. one for each sheet) Whenever I try to separate it that way, I end up with a clunky amount of queries.

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

      Not sure what you mean, Guillaume. If you have 2 tables on each sheet and you want to create two final query tables (one for each set of tables), then you'd have to select the tables for the first query and repeat this process for the second set.

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

    Thank you! I have a slightly different scenario. I need to populate a target table (my expenses tracker) with the Data coming from 4 excels that have different structures (i.e.the xlw downloads from bank account, american express and other two payment providers). Moreover, before putting the Data together, some transformations are needed for each of the 4 source excels.
    Do you have some suggestions?

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

      Power Query can absolutely do this, but each Excel file will need to be transformed first, then you can append them into one table for analysis.

  • @vasylsalyk165
    @vasylsalyk165 3 роки тому

    It is brilliant! Thank you for solving the problems!

  • @ltsarhamgaming
    @ltsarhamgaming 4 роки тому

    I really like this, very great teacher you are...

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

    Thanks a lot. It fulfilled my purpose. :🙂👍

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

    Thanks a lot, you saved my time

  • @GiuseppeDucaDiParma
    @GiuseppeDucaDiParma 8 місяців тому

    Excellent video. Is there any way to add new excel workbook files into the table after the initial setup has been established? Thanks

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  8 місяців тому

      Yes, just add more sheets, the query will include them on refresh.

  • @bravucod
    @bravucod 4 роки тому

    Thanks for the content you are amazing!. Please keep making more Power Query and Dax Content

  • @sabermmirza
    @sabermmirza 4 роки тому

    Good job and thanks for sharing your great teacher

  • @williamarthur4801
    @williamarthur4801 3 роки тому

    Great tutorial, so many tutorials on each work book containing no more than one table so this was useful.
    I would have like more on he ' # date' function, not sure how it works?

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  3 роки тому

      The #date function takes 3 arguments: #date(year, month, day) to create a date, as you saw me create in the tutorial.

  • @paulmcdevitt2038
    @paulmcdevitt2038 4 роки тому

    I have been using Power BI for a lot of things but nice to see we can do a lot of what was in Power BI in excel as often faster for smaller tasks. Can you create a fiscal year marker as you can in Power BI if your Fiscal year and quarters are not aligned to the calendar year?

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  4 роки тому

      Yes, the same Power Query tools in Power BI are also in Excel. In this video I show you how to covert dates into their fiscal periods, including those that don't fall in line with the start of a month: ua-cam.com/video/bo-43zg1R8U/v-deo.html

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

    This thing which i needed at this time. Thank you

  • @johnborg6005
    @johnborg6005 4 роки тому

    Thanks Myndy. That was great fun. Loved it!!!!

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

    Hi Helpful video! If i already made a query with different excel files and appended all together, and i want to update the query by adding a new excel file. How do i do this?

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

    Thank you very well, but if we need to be a dynamic for the upcoming data (custom function or blank qurey & use excel.workbook without add column)?

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

      You're welcome. It is dynamic as it stands. i.e. if you add another file to the folder, the query will pick it up.

  • @supersayan9888
    @supersayan9888 3 роки тому

    OMG! This is what I was looking for. Thank you so much. I have this video to my list.
    Just curious though: how come the date column is detected as text rather than a date? Is there away to auto detect it as date without adding a extra step.

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  3 роки тому

      Glad you found this video helpful! If your data has actual dates then Power Query is likely to detect them. My data didn't have dates. I created the date from the file names, which is why there were extra steps.

  • @iankr
    @iankr 3 роки тому

    Many thanks, Mynda.

  • @marvinalavi7620
    @marvinalavi7620 3 роки тому

    Thank you so much, that was so helpful

  • @colinrouse6219
    @colinrouse6219 4 роки тому

    Can PQ be used to extract the changes between files that get updated monthly? I like the way you explain everything. Thanks

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  4 роки тому

      Thanks, Colin. Yes, you can compare lists/tables using Power Query. www.myonlinetraininghub.com/excel-compare-two-lists

  • @clivepetty2338
    @clivepetty2338 4 роки тому

    Thanks for this video very help as I have often combine multiply data sets - appreciated

  • @atta101md
    @atta101md 4 роки тому

    You are a life saver.. Thank you so much!!!

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

    I got lost in the expand table. Why was beverages displaying twice in column values? Thank you for detailed explanation of videos.

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

      Because there are 3 Excel files I'm combining into one table, so each category is repeated multiple times.

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

      @@MyOnlineTrainingHub thank you that explains. It totally skipped my brain. I like your dashing dashboards and layman's way of explaining. You make it seem pretty easy to create dashboards. Thank you for keeping us motivated.

  • @marktheirl1842
    @marktheirl1842 3 роки тому +1

    Okay, that was way cool!!! You are AMAZING!!!

  • @georgetosounidis5545
    @georgetosounidis5545 4 роки тому +1

    Thanks a lot, really helpful. PQ is an amazing tool.

  • @BertHarmsma
    @BertHarmsma 4 роки тому

    Great tutorial, Mynda. What you could have done is showing how to do it with 2 worksheets. Save the query and then adding the 3rd worksheet to the folder and refresh so you show it how to use it each month.

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  4 роки тому

      Great suggestion, Bert! Next time ;-)

    • @AndrewWright26
      @AndrewWright26 3 роки тому

      Ah.. this was going to be my question .. if you add a new file into the folder.. and refresh.. it picks it up. Is this right?
      Mynda thank you for this tutorial, you explain everything so well. 😊

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

    Super helpful, thank you☺

  • @williamarthur4801
    @williamarthur4801 3 роки тому

    Enjoyed the tutorial, but would have liked an explanations of the '# date' DAX function.

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  3 роки тому

      The #date function takes 3 arguments: #date(year, month, day) to create a date, as you saw me create in the tutorial. Hope that clarifies things.