{"id":19077,"date":"2022-11-05T08:01:45","date_gmt":"2022-11-05T02:31:45","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\/"},"modified":"2022-11-05T08:01:45","modified_gmt":"2022-11-05T02:31:45","slug":"solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\/","title":{"rendered":"[Solved] Excel Power Query: get data from multiple unfixed files with multiple unfixed sheets"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-55388588\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"55388588\" data-parentid=\"55085234\" data-score=\"0\" data-position-on-page=\"1\" data-highest-scored=\"1\" data-question-has-accepted-highest-score=\"1\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<div class=\"post-layout\">\n<div class=\"votecell post-layout--left\"><\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"s-prose js-post-body\" itemprop=\"text\">\n<p>Sorry for the length of this response, but there are a lot of steps involved and I included quite a bit of screen clips as well. I believe this solution does what you are looking for.<\/p>\n<p>I start with files in a folder: <\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>Feb-19.xlsx contains two tabs:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_179_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_179_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"1. DE:\"><\/a><br \/>\n<a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_106_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_106_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"2. CA:\"><\/a><\/p>\n<p>Jan-19.xlsx contains three tabs:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_315_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_315_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"1. US:\"><\/a><br \/>\n<a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_680_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_680_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"2. UK:\"><\/a><br \/>\n<a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_625_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_625_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"3. CH:\"><\/a><\/p>\n<p>I open a new Excel file, then click Data &gt; New Query &gt; From File &gt; From Folder and either type in, or use the Browse button to navigate to, the location of the folder that has the files. (When I navigate to my OneDrive folder, my path has SkyDrive.old in it, but it is my OneDrive folder that you saw in the first image above.) Then I click OK:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_386_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_386_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>Then I click Transform Data:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_396_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_396_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>This appears:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_743_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_743_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>I click Home &gt; Manage Parameters (the words, with the drop-down arrow) &gt; New Parameter, and I set it up like this and click OK. <\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_826_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_826_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>After clicking OK, this appears: <\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_549_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_549_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>You can see that I entered the path for the folder that has the files. I can change this parameter value later if I want to use a different folder path. <\/p>\n<p>To do that, I would click on <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_718_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_718_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a> in the left pane. Clicking it would bring me to this same place, where I can edit the value.<\/p>\n<p>Now, I click on the query that I had already started. It is currently the only other item in the left pane. Clicking it brings this back up on the screen:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_743_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_743_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>I edit the text in the formula bar, replacing <code>\"C:\\Users\\MARC_000\\SkyDrive.old\\Test\"<\/code> with <code>FolderPath<\/code>. The result is the exact same table, but the formula bar has <code>Folder.Files(FolderPath)<\/code>. Now, instead of using a hard-coded reference, the query is using the parameter value.<\/p>\n<p>Then, just because I want to, I change the query&#8217;s name to &#8220;Main Query.&#8221; You can do that by clicking on the query in the left pane, then changing the name in the PROPERTIES at the top of the right pane.<\/p>\n<p>Next, I select both the <em>Content<\/em> and <em>Name<\/em> columns, and then Home &gt; Remove Columns (the words, with the drop-down arrow) &gt; Remove Other Columns to get this:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_774_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_774_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>Then I click the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_612_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_612_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a> button to combine the files in the <em>Content<\/em> column, which brings up this pop-up. Then I click on just the folder only, and then OK.<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_145_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_145_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>Now there are more query entries in the left pane:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_469_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_469_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>I click on the new query, <em>Transform Sample File from Test<\/em>, and see this:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_240_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_240_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>I select the <em>Data<\/em> and <em>Item<\/em> columns, and then Home &gt; Remove Columns (the words, with the drop-down arrow) &gt; Remove Other Columns to get this: <\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_363_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_363_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p><strong>&#8212;SEE EDIT AT BOTTOM OF ANSWER, WHICH REPLACES THE FOLLOWING&#8212;<\/strong><\/p>\n<p>Then I click the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_612_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_612_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a> button to expand the tables in the <em>Data<\/em> column, which brings up this pop-up. Then I <em>clear<\/em> the checkbox beside &#8220;Use original column name as prefix&#8221; and click OK.<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_277_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_277_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p><strong>&#8212;RETURN FROM EDIT AT BOTTOM OF ANSWER TO CONTINUE&#8212;<\/strong><\/p>\n<p>Which yields this:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_606_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_606_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>Then I filter out null values from the <em>Column1<\/em> column. (Click the down arrow at the top of the column and deselect null.)<\/p>\n<p>Then I click Add Column &gt; Conditional Column, and set it up like this, and click OK:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_420_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_420_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>Which yields this:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_300_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_300_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>Then I select the new <em>Custom<\/em> column and click Transform &gt; Fill &gt; Down, to get this:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_813_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_813_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>Then I filter out &#8220;Summary (Amount)&#8221; and &#8220;Summary (Units)&#8221; entries from the <em>Column1<\/em> column. (Click the down arrow at the top of the column and deselect &#8216;Summary (Amount)&#8217; and &#8216;Summary (Units)&#8217;.) Which yields this:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_158_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_158_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>Now I go back to the Main Query. In other words, click on Main Query in the left pane. There will be a &#8220;problem.&#8221; All I need to do is delete the last APPLIED STEP in the right pane: Changed Type. Once I delete that, all is good and I see this:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_743_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_743_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>But I also want file names, so I click on the APPLIED STEP that is before the one that is currently selected, &#8220;Expanded Transform File from Test&#8221; is selected, so I click &#8220;Removed Other Columns 1&#8221;, and in the formula bar, I change the code from <code>Table.SelectColumns(#\"Filtered Hidden Files1\", {\"Transform File from Test\"})<\/code> to <code>Table.SelectColumns(#\"Filtered Hidden Files1\", {\"Transform File from Test\", \"Name\"})<\/code>. This adds the <em>Name<\/em> column and I see this:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_1_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_1_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>Then I go back to the last APPLIED STEP, which is &#8220;Expanded Transform File from Test&#8221; and now I see this:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_242_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_242_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>Then I click Transform &gt; Use First Row as Headers and get this:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_198_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_198_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>Then I rename the <em>DE<\/em> column to <em>Sheet<\/em> and the <em>Feb-19.xlsx<\/em> column to <em>File Name<\/em>.<\/p>\n<p>Then I filter out &#8220;Custname&#8221; entries from the <em>Custname<\/em> column. (Click the down arrow at the top of the column and deselect &#8216;Custname&#8217;.) Which yields this:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_517_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_517_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>Then I reordered the columns to get this:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_900_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_900_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>Then I select the <em>Summary Type<\/em> column and click Transform &gt; Group By, and fill out the pop-up box like this and click OK:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_506_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_506_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>Which yields this (these are your two tables):<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_440_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_440_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>So then I right-click on the Main Query in the left pane, and select Reference. That gives me a new query named Main Query (2), with a table that looks just like the last image above. Now I click on the table in Summary (Units) row and get this:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_636_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_636_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>Then I repeat the process for the Summary (Amount): I right-click the Main Query in the left pane, select Reference, and then click on the table in the new query&#8217;s Summary (Amount) Row to get this:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_821_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_821_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>Lastly, I rename the two newest queries &#8220;Summary (Units)&#8221; and &#8220;Summary (Amount)&#8221;<\/p>\n<p>When you close and load, this will give you three new worksheets. One for each query. If you don&#8217;t want a worksheet for the Main Query (If you only want the Summary (Units) and Summary (Amount)) then, <em>after you close and load and are back in Excel<\/em>, click Data &gt; Show Queries. Then right-click the Main Query in the right pane and click Load To, then select &#8220;Only Create Connection&#8221; and click Load. Click Continue when you get the data loss warning.<\/p>\n<p>One more last thing: Do <em>not<\/em> put the Excel Workbook that has this query in it in its source folder, with the files it is getting the information from. Keep it separate.<\/p>\n<p><strong>&#8212;Edits to accommodate top rows having transactional information&#8212;<\/strong><\/p>\n<p>I&#8217;m adding the following to deal with sheets that might have rows of information above the Summary tables. Here&#8217;s what I came up with:<\/p>\n<p>In the answer above, beginning immediately after the step where I said: I select the <em>Data<\/em> and <em>Item<\/em> columns, and then Home &gt; Remove Columns (the words, with the drop-down arrow) &gt; Remove Other Columns to get this: <\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_363_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_363_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>I now add another column (Add Column &gt; Custom Column), and I set it up like this:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_820_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_820_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a> <\/p>\n<p>This makes a duplicate of the <em>Data<\/em> column, but adds an index within each of the nested tables, like this:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_225_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_225_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>Then I add another column to determine the index number associated with the start of each summary in each nested table:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_823_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_823_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><br \/>\n(<em>You may want to search for &#8220;Summary (&#8221; or &#8220;Summary (Units)&#8221; instead of &#8220;Summary&#8221;<\/em>)<\/p>\n<p>Note that it is constructed similarly to the previous column, in that it is basically a duplicate of the <em>Indexed<\/em> column, only with the <em>Summary Index<\/em> column added within each nested table.<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_829_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_829_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>Then I add another column like this, to determine the index position of the first Summary table&#8217;s first line for each nested table:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_215_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_215_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>and get this:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_197_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615504_197_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>Then I add one more column like this, to remove the top rows that I don&#8217;t want within each nested table:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615505_265_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615505_265_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>Which gives me this:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615505_705_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615505_705_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><br \/>\n(<em>The table selected in this image is the one that had the extra information at the top. That information is gone now<\/em>.)<\/p>\n<p>Then I select the <em>TopRowsRemoved<\/em> and <em>Item<\/em> columns, and then Home &gt; Remove Columns (the words, with the drop-down arrow) &gt; Remove Other Columns to get this: <\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615505_312_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615505_312_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>Then, I click the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_612_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_612_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a> button to expand the tables in the <em>TopRowsRemoved<\/em> column (instead of the <em>Data<\/em> column, which we had done before), which brings up this pop-up that looks exactly the same as when we&#8217;d used the <em>Data<\/em> column. Then I <em>clear<\/em> the checkbox beside &#8220;Use original column name as prefix&#8221; and click OK.<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_277_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/1667615503_277_Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>Then I delete the old Expanded Data step, under APPLIED STEPS in the right hand pane. If I don&#8217;t delete the Expanded Data step, I&#8217;ll get an error because it&#8217;s looking for the <em>Data<\/em> column, which doesn&#8217;t exist. I didn&#8217;t use the <em>Data<\/em> column this time. Instead, I used the <em>TopRowsRemoved<\/em> column. <\/p>\n<p>At this point, the rest of my previous answer still applies, so refer back to where I wrote &#8212;RETURN FROM EDIT AT BOTTOM OF ANSWER TO CONTINUE&#8212; above.<\/p>\n<p>Here&#8217;s my M code for the &#8220;Main Query&#8221; query:<\/p>\n<pre><code>let\nSource = Folder.Files(FolderPath),\n#\"Removed Other Columns\" = Table.SelectColumns(Source,{\"Content\", \"Name\"}),\n#\"Invoke Custom Function1\" = Table.AddColumn(#\"Removed Other Columns\", \"Transform File from Test\", each #\"Transform File from Test\"([Content])),\n#\"Filtered Hidden Files1\" = Table.SelectRows(#\"Invoke Custom Function1\", each [Attributes]?[Hidden]? &lt;&gt; true),\n#\"Removed Other Columns1\" = Table.SelectColumns(#\"Filtered Hidden Files1\", {\"Transform File from Test\", \"Name\"}),\n#\"Expanded Transform File from Test\" = Table.ExpandTableColumn(#\"Removed Other Columns1\", \"Transform File from Test\", {\"Column1\", \"Column2\", \"Column3\", \"Column4\", \"Column5\", \"Item\", \"Custom\"}, {\"Column1\", \"Column2\", \"Column3\", \"Column4\", \"Column5\", \"Item\", \"Custom\"}),\n#\"Promoted Headers\" = Table.PromoteHeaders(#\"Expanded Transform File from Test\", [PromoteAllScalars=true]),\n#\"Changed Type\" = Table.TransformColumnTypes(#\"Promoted Headers\",{{\"CustName\", type text}, {\"Opening\", type any}, {\"In\", type any}, {\"Out\", type any}, {\"Closing\", type any}, {\"DE\", type text}, {\"Summary (Units)\", type text}, {\"Feb-19.xlsx\", type text}}),\n#\"Renamed Columns\" = Table.RenameColumns(#\"Changed Type\",{{\"DE\", \"Sheet\"}, {\"Feb-19.xlsx\", \"File Name\"}, {\"Summary (Units)\", \"Summary Type\"}}),\n#\"Filtered Rows\" = Table.SelectRows(#\"Renamed Columns\", each ([CustName] &lt;&gt; \"CustName\")),\n#\"Reordered Columns\" = Table.ReorderColumns(#\"Filtered Rows\",{\"File Name\", \"Sheet\", \"CustName\", \"Opening\", \"In\", \"Out\", \"Closing\", \"Summary Type\"}),\n#\"Grouped Rows\" = Table.Group(#\"Reordered Columns\", {\"Summary Type\"}, {{\"AllData\", each _, type table}})\nin\n#\"Grouped Rows\"\n<\/code><\/pre>\n<p>Here&#8217;s my M code for the &#8220;Transform Sample File from Test&#8221; query, with the changes to accommodate top rows having transactional information:<\/p>\n<pre><code>let\nSource = Excel.Workbook(#\"Sample File Parameter1\", null, true),\n#\"Removed Other Columns\" = Table.SelectColumns(Source,{\"Data\",\"Item\"}),\n#\"Added Index\" = Table.AddColumn(#\"Removed Other Columns\", \"Indexed\", each Table.AddIndexColumn([Data],\"Index\", 0, 1)),\n#\"Added Custom1\" = Table.AddColumn(#\"Added Index\", \"SummaryIndexed\", each Table.AddColumn([Indexed],\"Summary Index\", each try if Text.StartsWith([Column1],\"Summary\") then [Index] else null otherwise null)),\n#\"Added Custom2\" = Table.AddColumn(#\"Added Custom1\", \"IndexMins\", each List.Min([SummaryIndexed][Summary Index])),\n#\"Added Custom3\" = Table.AddColumn(#\"Added Custom2\", \"TopRowsRemoved\", each Table.RemoveFirstN([SummaryIndexed],[IndexMins])),\n#\"Removed Other Columns1\" = Table.SelectColumns(#\"Added Custom3\",{\"TopRowsRemoved\", \"Item\"}),\n#\"Expanded TopRowsRemoved\" = Table.ExpandTableColumn(#\"Removed Other Columns1\", \"TopRowsRemoved\", {\"Column1\", \"Column2\", \"Column3\", \"Column4\", \"Column5\", \"Index\", \"Summary Index\"}, {\"Column1\", \"Column2\", \"Column3\", \"Column4\", \"Column5\", \"Index\", \"Summary Index\"}),\n#\"Filtered Rows\" = Table.SelectRows(#\"Expanded TopRowsRemoved\", each ([Column1] &lt;&gt; null)),\n#\"Added Custom\" = Table.AddColumn(#\"Filtered Rows\", \"Custom\", each if Text.StartsWith([Column1],\"Summary\") then [Column1] else null),\n#\"Filled Down\" = Table.FillDown(#\"Added Custom\",{\"Custom\"}),\n#\"Filtered Rows1\" = Table.SelectRows(#\"Filled Down\", each ([Column1] &lt;&gt; \"Summary (Amount)\" and [Column1] &lt;&gt; \"Summary (Units)\"))\nin\n#\"Filtered Rows1\"\n<\/code><\/pre>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\">7<\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved Excel Power Query: get data from multiple unfixed files with multiple unfixed sheets <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] Sorry for the length of this response, but there are a lot of steps involved and I included quite a bit of screen clips as well. I believe this solution does what you are looking for. I start with files in a folder: Feb-19.xlsx contains two tabs: Jan-19.xlsx contains three tabs: I open a &#8230; <a title=\"[Solved] Excel Power Query: get data from multiple unfixed files with multiple unfixed sheets\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\/\" aria-label=\"More on [Solved] Excel Power Query: get data from multiple unfixed files with multiple unfixed sheets\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[400,3548,401],"class_list":["post-19077","post","type-post","status-publish","format-standard","hentry","category-solved","tag-excel","tag-powerquery","tag-vba"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>[Solved] Excel Power Query: get data from multiple unfixed files with multiple unfixed sheets - JassWeb<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jassweb.com\/solved\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] Excel Power Query: get data from multiple unfixed files with multiple unfixed sheets - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] Sorry for the length of this response, but there are a lot of steps involved and I included quite a bit of screen clips as well. I believe this solution does what you are looking for. I start with files in a folder: Feb-19.xlsx contains two tabs: Jan-19.xlsx contains three tabs: I open a ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-05T02:31:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\" \/>\n<meta name=\"author\" content=\"Kirat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\\\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/person\\\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] Excel Power Query: get data from multiple unfixed files with multiple unfixed sheets\",\"datePublished\":\"2022-11-05T02:31:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\\\/\"},\"wordCount\":1499,\"publisher\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\",\"keywords\":[\"excel\",\"powerquery\",\"vba\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\\\/\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\\\/\",\"name\":\"[Solved] Excel Power Query: get data from multiple unfixed files with multiple unfixed sheets - JassWeb\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\",\"datePublished\":\"2022-11-05T02:31:45+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\\\/#primaryimage\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\",\"contentUrl\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] Excel Power Query: get data from multiple unfixed files with multiple unfixed sheets\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#website\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/\",\"name\":\"JassWeb\",\"description\":\"Build High-quality Websites\",\"publisher\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#organization\",\"name\":\"Jass Web\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/jassweb.com\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/jass-website-logo-1.png\",\"contentUrl\":\"https:\\\/\\\/jassweb.com\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/jass-website-logo-1.png\",\"width\":693,\"height\":132,\"caption\":\"Jass Web\"},\"image\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/person\\\/65c9c7b7958150c0dc8371fa35dd7c31\",\"name\":\"Kirat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/litespeed\\\/avatar\\\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1778218008\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/litespeed\\\/avatar\\\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1778218008\",\"contentUrl\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/litespeed\\\/avatar\\\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1778218008\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\\\/\\\/jassweb.com\"],\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/author\\\/jaspritsinghghumangmail-com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] Excel Power Query: get data from multiple unfixed files with multiple unfixed sheets - JassWeb","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jassweb.com\/solved\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] Excel Power Query: get data from multiple unfixed files with multiple unfixed sheets - JassWeb","og_description":"[ad_1] Sorry for the length of this response, but there are a lot of steps involved and I included quite a bit of screen clips as well. I believe this solution does what you are looking for. I start with files in a folder: Feb-19.xlsx contains two tabs: Jan-19.xlsx contains three tabs: I open a ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\/","og_site_name":"JassWeb","article_published_time":"2022-11-05T02:31:45+00:00","og_image":[{"url":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png","type":"","width":"","height":""}],"author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] Excel Power Query: get data from multiple unfixed files with multiple unfixed sheets","datePublished":"2022-11-05T02:31:45+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\/"},"wordCount":1499,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"image":{"@id":"https:\/\/jassweb.com\/solved\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\/#primaryimage"},"thumbnailUrl":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png","keywords":["excel","powerquery","vba"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\/","url":"https:\/\/jassweb.com\/solved\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\/","name":"[Solved] Excel Power Query: get data from multiple unfixed files with multiple unfixed sheets - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\/#primaryimage"},"image":{"@id":"https:\/\/jassweb.com\/solved\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\/#primaryimage"},"thumbnailUrl":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png","datePublished":"2022-11-05T02:31:45+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\/#primaryimage","url":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-Excel-Power-Query-get-data-from-multiple-unfixed-files.png"},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-excel-power-query-get-data-from-multiple-unfixed-files-with-multiple-unfixed-sheets\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] Excel Power Query: get data from multiple unfixed files with multiple unfixed sheets"}]},{"@type":"WebSite","@id":"https:\/\/jassweb.com\/solved\/#website","url":"https:\/\/jassweb.com\/solved\/","name":"JassWeb","description":"Build High-quality Websites","publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jassweb.com\/solved\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jassweb.com\/solved\/#organization","name":"Jass Web","url":"https:\/\/jassweb.com\/solved\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/","url":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","contentUrl":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","width":693,"height":132,"caption":"Jass Web"},"image":{"@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31","name":"Kirat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1778218008","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1778218008","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1778218008","caption":"Kirat"},"sameAs":["http:\/\/jassweb.com"],"url":"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/19077","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/comments?post=19077"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/19077\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=19077"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=19077"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=19077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}