Combine Data from Multiple Excel Files | Most Dynamic Method (Dynamic Columns & Sheets)

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ม.ค. 2025

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

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

    Download File ⬇ - goodly.co.in/combine-data-from-multiple-excel-files

  • @trustnoone6065
    @trustnoone6065 10 หลายเดือนก่อน +5

    I'm a data analyst. Your videos are helping me a lot in real time projects. Thanks is a very small word. Love u bro

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

    I love your solution. Combined with your Remove junk rows video you would be able to do some transformations before promoting the headers if they were not in the first row. Great stuff.

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

    I have been scouring the various information sources to find a possible solution to my problem. This is exactly what I needed. Thank you thank you 🙏

  • @kirux882
    @kirux882 6 หลายเดือนก่อน +1

    @ 4:29 what do I use for csv files? If I do excel.workbook it lists all the csv files I have in each table, instead of giving me the data in the csv files?

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

    There have been numerous tutorials on this topic but not at the extent to the valuable hacks you have provided in this session. Thanks a lot 🙏

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

    Excellent pace. No frills and waste of time.

  • @rangs1966
    @rangs1966 3 หลายเดือนก่อน +1

    Sir, Your Power query tutorials are excellent and always eagerly looking forward to new PQ tutorials. One clarification : Please clarify: You are using Table.Transform Columns and Excel.Workbook)(_) for converting binary into excel tables . In another situation you use Add Column and in the Dialog Box, type Excel.Workbook(). When do we have to use Table.TransformColumns and When do we have to use Add Column for converting Binary into table. Is there any difference . Looking forward to receiving your answer.

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

    This is really a comprehensive video......

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

    Powerful, clear, direct, controlling all scenarios => Goodly

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

    Good explanation, the logic so clear

  • @danielosorio217
    @danielosorio217 7 หลายเดือนก่อน

    Very detailed and concise explanations! Thank you!
    Question: I noticed that when expanding the tables their corresponding sheet (Step 3) shows the sheet name (under the Name.1 field but underneath each sheet also the following sheet name appears _xlnm_FilterDatabase which is not a sheet in the Excel file. Under the 'Kind' column it reads 'DefinedName' with the same .xlsx extension and it is hidden.
    What is this other row about?
    Also, each Excel sheet has a drop-down menu option for some cells. The menu options is located in another non-data sheet. But, these sheets also show as a sheet name when expanding the tables which reads 'Validation List.'
    How do I avoid getting data from the validation sheets?
    I appreciate your help!

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

    Another interesting video. On the caveat - a very good reason to always familiarise yourself with the data before even starting the ETL and reporting process. I would also try to ascertain ahead of time if the content type or layout of the data is likely to change in the future and provide plenty of rem statements against anything being added or just as bad taken away add to that some kind of documentation to explain how the visuals were produced and how to edit them to include extra data or remove fields etc. that have been deprecated.

  • @jackjobriencorso
    @jackjobriencorso 9 หลายเดือนก่อน

    Your videos are awesome... is there any way you can list the keystrokes you do as you do them, like the important ones, but also the others, every once in a while for those jumping in a bit later to the excel party. Thanks for making great content!

  • @vtanz
    @vtanz 8 หลายเดือนก่อน

    Thanks for sharing your knowledge. Could you post a video for this scenario extract text multiple text files into excel, remove first 2 top rows and then split into columns and final step merge all the files to create pivot chart. Thanks

  • @rogervandecraen9797
    @rogervandecraen9797 10 หลายเดือนก่อน

    great tutotial and an interesting pattern.
    Can this be applied in the folowing case:
    an excel file with 12 tabs each respresenting a month and each tab contains 9 tables ordered in rows
    table 1 is from row 10 to 50 and column A to K ;
    table 2 is from row 60 to 100 and column A to K
    and so on to table 9
    then tab feb with the same structure. how to tackle this problem ,
    thanks in advance
    Roger

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

    Magician of excel 🎉🎉

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

    While watching the video, I remembered that I had seen this video somewhere else and recalled where it was. Anyway, nice tutorial, Chandeep! 👍

  • @JG-wz6dq
    @JG-wz6dq 8 หลายเดือนก่อน

    Woww this is a life saver! First on youtube

  • @DavidWarbeck
    @DavidWarbeck 6 หลายเดือนก่อน

    This is great! Thank you. Is there any way to keep the File and Sheet names in the final data?

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

    Nice input, whatif we have csv format data in that case how to promote header in default?

  • @jessyjose-vt9er
    @jessyjose-vt9er 5 หลายเดือนก่อน

    Thank you so much . this helped me a lot bro .. well explained

  • @julianruizd.8489
    @julianruizd.8489 10 หลายเดือนก่อน

    Great tutorial! I am wondering... would you recommend to append a live table/tracker. I have one file per year but current year is in a table where my colleague inputs data daily. Would it be ok to combine this table with the rest?

  • @kuuuyajim
    @kuuuyajim 5 หลายเดือนก่อน +1

    How do you bring together the [Name] column when you drill down? I wanted to use this method instead of drilling down ng binary files since I need the column headers already promoted and dynamic. I understand that it's possible to add column on the Table record, but I can't quite figure out how. Any help would be appreciated or just a tip on how to do it. Thank you.

    • @georgefox8458
      @georgefox8458 4 หลายเดือนก่อน

      Per my other comment- I think I’ve worked out how to do this so thought I’d share:
      You do need to use expand columns and then edit that step so the third argument is dynamic. It should look like this in place of step 4 in the video
      =Table.ExpandTableColumn(#”previousstepname”, “Data”, Table.ColumnNames(Table.Combine(#”previousstepname”[Data])))

    • @kuuuyajim
      @kuuuyajim 4 หลายเดือนก่อน +1

      @@georgefox8458 Thanks. I'll try to test that although I already found a different solution to this.

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

    Very cool idea. Bravo 👏!

  • @HSKalsi-g6u
    @HSKalsi-g6u หลายเดือนก่อน

    Great. What if the files are in different folders?

  • @mikedbman
    @mikedbman 7 หลายเดือนก่อน

    I have an issue. When I do the Table.ExpandTableColumn (approx at 5:30 in the video) I get a "MASSIVE" Error that starts with this:
    Error Message:Object reference not set to an instance of an object.
    Stack Trace:
    at Microsoft.Mashup.Evaluator.EvaluationHost.OnException(IEngineHost engineHost, IMessageChannel channel, ExceptionMessage message)
    at Microsoft.Mashup.Evaluator.MessageHandlers.TryDispatch(IMessageChannel channel, Message message)
    at Microsoft.Mashup.Evaluator.MessageHandlers.Dispatch(IMessageChannel channel, Message message)
    at Microsoft.Mashup.Evaluator.ChannelMessenger.ChannelMessageHandlers.TryDispatch(IMessageChannel channel, Message message)
    at Microsoft.Mashup.Evaluator.MessageHandlers.Dispatch(IMessageChannel channel, Message message)
    at Microsoft.Mashup.Evaluator.Interface.IMessageChannelExtensions.WaitFor[T](IMessageChannel channel)
    at Microsoft.Mashup.Evaluator.RemotePreviewValueSource.PreviewValueSource.WaitFor(Func`1 condition, Boolean disposing)
    at Microsoft.Mashup.Evaluator.RemotePreviewValueSource.PreviewValueSource.get_TableSource()
    at Microsoft.Mashup.Evaluator.Interface.TracingPreviewValueSource.get_TableSource()
    at Microsoft.Mashup.Host.Document.Analysis.PackageDocumentAnalysisInfo.PackagePartitionAnalysisInfo.SetPreviewValue(EvaluationResult2`1 result, Func`1 getStaleSince, Func`1 getSampled)
    Any suggestions?

  • @danieljoubert7937
    @danieljoubert7937 11 หลายเดือนก่อน

    Super cool video, thanks Sir

  • @markdhenderson1
    @markdhenderson1 3 หลายเดือนก่อน

    I especially appreciate the promoteheaders step on 06:05

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

    It is good way to include all the sheets but I think, it will be always good to know what sheet you are including and not hardcode the formula. The important point was to include the data header as LIST so that it can accommodate any addition or change of the header, which is most important while combining any table from different sheet. I always use this.
    Can you make a video,to combine data which is in one sheet, have different data sets (not in excel table format) with some common headers and only the differentiator is at the end of each data set there is a row which start with word "Total".

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

    You Rock, Chandeep!

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

    What a greaat video man, but how do i activate the formula suggestion in power query excel, i use excel 2016 and also how about the origin file is not excel workbook, but it's CSV file ? Because the formula isn't work with csv file

  • @kientran2467
    @kientran2467 6 หลายเดือนก่อน

    Is there any way to combine data in which the data from the file #2 is added below the data of file #1 and so on? Also after loading data to a table, I need to add a Comment column on the right side. Is there any way to keep my comments still aligned with their rows after Refresh? Thanks

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

    Thank you sir for bringing this video

  • @rizaylmz
    @rizaylmz 18 วันที่ผ่านมา

    Can we do it the same to .csv as well?

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

    Is there to keep the name of the excel files? Because after drilling down the name column disappears. Thank you for the awesome video.

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

      I was trying to keep the file names also, but was not able to figure out how to accomplish this.

    • @sandroganci8817
      @sandroganci8817 7 หลายเดือนก่อน

      i have the same issue, has anyone found a solution?

    • @georgefox8458
      @georgefox8458 4 หลายเดือนก่อน +1

      I think I’ve worked out how to do this so thought I’d share:
      You do need to use expand columns and then edit that step so the third argument is dynamic. It should look like this
      =Table.ExpandTableColumn(#”previousstepname”, “Data”, Table.ColumnNames(Table.Combine(#”previousstepname”[Data])))

    • @georgefox8458
      @georgefox8458 4 หลายเดือนก่อน +1

      Use this in place of the step 4 in the video, good luck 😊

    • @MrJadison7
      @MrJadison7 4 หลายเดือนก่อน +1

      Thank you @georgefox8458

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

    hi,
    i have one question,i had created multiple pages in Power view in tabular format and i need to get export all pages and to be in workbook format as like Excel work book,please suggest

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

    Good stuff....thank you.

  • @johnkiesel5106
    @johnkiesel5106 11 หลายเดือนก่อน

    Clear explanation.

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

    Nice tip!

  • @sowmyasrinivas6259
    @sowmyasrinivas6259 10 หลายเดือนก่อน

    Thankyou soo much.
    How can i skip columns in only selected sheets using M query

  • @Steggman
    @Steggman 11 หลายเดือนก่อน

    Would this be live or dynamic?
    Example;
    At work we have several workbooks for different departments. I want to pull or push this data to a single master workbook.
    THEN if someone adds a new row to the department workbook, will that update to the master too?
    (i don't mind if i have to refresh rather than being 'live')

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

    Great Video!!
    I have a special issue with my data...my boss has requested I calculate the dwell time a material has spent in a location. I am having trouble calculating that. So if a material goes from the warehouse rack to a production line how do I calculate that in DAX? I have a confirmation and creation date for the pallet going both ways. I have missing confirmation dates for pallets that have not been confirmed to the destination location and it is causing errors in my calculation using datediff. Please help if you can and let me know if u require some sample data.

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

    A perfect mentor ❤

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

    Really good!!!

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

    How to tackle promote header part if CSV file are the source data?

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

    Thanks for the good info...can you please make a video on the problem where we have to combine multiple files or sheet having inconsistant header to map with the updated header names and then combine.

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

      th-cam.com/video/0ZOY8is-bgY/w-d-xo.html

  • @הובלותאחייםאבוסנינה
    @הובלותאחייםאבוסנינה ปีที่แล้ว

    hi
    how to updating power query when i used the I cloud ondrive or 3650 ???
    thanks

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

    Thank you for sharing

  • @dannypuype6104
    @dannypuype6104 2 หลายเดือนก่อน

    Great as usual ! :-) However when changing some header names, the combine breaks
    So I asked ChatGPT how to solve, and that 's what I made up from the explanations :
    = Table.TransformColumns(
    Source,
    {
    "Content",
    each Table.TransformColumns(Excel.Workbook(_, false), {"Data", each Table.Skip(_, 1)})
    }
    )
    Now header names can be changed...
    If ever you know a better method .... -:)

  • @SunilPanchal-q3x
    @SunilPanchal-q3x 11 วันที่ผ่านมา

    What if my headers are in 10th Row and I want keep first 9 row as those row contains data which I need to insert in columns for every single table?

  • @DinoDelight
    @DinoDelight 8 หลายเดือนก่อน

    Thanks, I am trying to make all my PQs unbreakable and your videos are amazing, easy to follow and live your explanation...making it simple

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

    Wow.. amazing

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

    Amazing ! 💥💥💥💥

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

    What to do if column header is arrange not in sequence, they are randomly. In different workbook while combine.

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

    I love your videos ❤
    I have a. Excel sheet with dynamic columns is there a query that extracts only the column names i mention irrespective of new columns that get added.😊

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

      This video might help: th-cam.com/video/kwf-E3a3aOE/w-d-xo.htmlsi=9vJdjFr3WF0b-BaG

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

    What if I need only first sheet of workbook irrespective of name of sheet, please guide

  • @dharmendrakumar-ge3tu
    @dharmendrakumar-ge3tu ปีที่แล้ว

    Please tell how to convert binary into table if file format is cvs

  • @RogerStocker
    @RogerStocker 3 หลายเดือนก่อน

    What to do if I don't just need the combined tables, bat also an information sitting in an other column?

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

    Good video. In the end though, all it takes is 1 other sheet that should NOT be combined to break this. After all, how could you know which sheets to combine and which sheets not to combine?
    What works for me: After cleaning, load all the data into an MS Access database. For go-forward, query only the latest workbook and set up an error message if the sheet name or expected columns have changed and then just change that manually. Then append that cleaned data into the Access db. Then you can query all your data with no transformations needed. I find it interesting that no content creators talk about MS Access as it's a much more scalable option than combining workbooks which can easily error.

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

    How can I modify this query to get the filename and sheetname column?

  • @sachinsingh3898
    @sachinsingh3898 10 หลายเดือนก่อน

    How to append multiple excel formats like xls,xlsx csv and tab delimited files together

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

    How to retain the filename

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

    Insightful as always! Just to ask, in your courses, do you provide customized solutions to work challenges? or if there is a forum to post issues

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

      Absolutely! My goal is to empower students to solve problems independently. I'll explain you through each Power Query concept. And yes, there's a comment section for any questions you have!

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

      This is well noted and I will consider it. Thanks

  • @felipealbieri_
    @felipealbieri_ 11 หลายเดือนก่อน

    How can I know which line is from which file if I don't have a date column?

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

    What if the headers are in caps in one sheet and lower case in another sheet

  • @shaffi31
    @shaffi31 7 หลายเดือนก่อน

    How to also add file name in the table in this steps

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

    Sir ,when running power query "intilazation of data sources error contact your administrator" is shown could you please provide a solution for this 😢

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

    When i am combining data from multiple excel workbooks which extracted from zip format
    It consolidating only first 8 line items
    Can you please help me sir

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

    Thanks!

  • @AdminGRG
    @AdminGRG 11 หลายเดือนก่อน

    thank you but how to do this with CSV files? it doesn't work when i put the (_,)

  • @RahulYadav-lp3jv
    @RahulYadav-lp3jv 7 หลายเดือนก่อน

    How can I get specific sheets from a single Excel files ?

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

    I edited the 2006 file and changed customer header to client and when I refreshed the query it just created a new column at the end called client. How do I stop it creating new column and just put the client column details into the customer column

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

      th-cam.com/video/0ZOY8is-bgY/w-d-xo.htmlsi=BDbKvEyw2sphXqaN

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

    Try it but it limited to 3.6k+ lines. It can’t fully combine all data 😢
    How to solve it?

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

    What's this you are doing all days?? I don't know anything but I want to learn it. How can I learn it.

  • @ranjandas8486
    @ranjandas8486 16 วันที่ผ่านมา

    Is not work in CSV file. So please guide.

  • @DiariouDiallo-cm6bj
    @DiariouDiallo-cm6bj 6 หลายเดือนก่อน

    Great

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

    = Table.TransformColumnNames(#"Filtered Rows1", {"Content", each Excel.Workbook(_)})
    Then I am getting an error below-
    Expression.Error: We cannot convert a value of type List to type Function.
    Details:
    Value=[List]
    Type=[Type]
    Any help, please.

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

      Why are you using Table.TransformColumnNames() instead of Table.TransformColumns()?

  • @bugsdenis547
    @bugsdenis547 9 หลายเดือนก่อน

    One challenge could be to add the filename and sheet name in the combined result

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

    ❤❤❤

  • @comptecharles530
    @comptecharles530 8 หลายเดือนก่อน

    Thank you so much for all the content you provide!
    If only you could spare us those fashion marks on your clothes, that would be just perfect!

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

    👍

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

    GOATly