• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Combine Worksheet from All Workbooks in a Folder - different sheet names|Power Query|Excel Forum|My Online Training Hub

You are here: Home / Combine Worksheet from All Workbooks in a Folder - different sheet names|Power Query|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumPower QueryCombine Worksheet from All Workbook…
sp_PrintTopic sp_TopicIcon
Combine Worksheet from All Workbooks in a Folder - different sheet names
Avatar
Robert Rafferty
Member
Members
Level 0
Forum Posts: 32
Member Since:
September 15, 2020
sp_UserOfflineSmall Offline
1
December 19, 2020 - 10:23 am
sp_Permalink sp_Print

Hi All:

I am getting an error - An error occurred in the ‘Transform File’ query. Expression.Error: The key didn't match any rows in the table.

I know the cause which is the worksheet in each workbook has a different name. 

Googled but fixes are beyond my understanding.

How do I fix this so I can combine 01Dec2020 with 01Jan2021 etc.  Sheet names are same as workbook names.

No problem if sheets are in same workbook, but if in a folder, doesn't work.

Attached are screen shots and workbooks.

Thanks

Robb

sp_AnswersTopicSeeAnswer See Answer
Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4448
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
December 19, 2020 - 1:15 pm
sp_Permalink sp_Print

Hi Robb,

Have you tried to use this technique to get multiple files from a folder that contain multiple sheets with Power Query?

Mynda

Avatar
Robert Rafferty
Member
Members
Level 0
Forum Posts: 32
Member Since:
September 15, 2020
sp_UserOfflineSmall Offline
3
December 20, 2020 - 10:02 am
sp_Permalink sp_Print

HI Mynda:

I did.  the Excel.Workbook ([Content]) M code did not work for some reason.  I got error for all Binaries.

I take it that this should solve the issue of different sheet names in workbooks in folder?

I'll try again, and see  what happens, and send screen shot.

 

Thanks

Robb

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4448
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
December 20, 2020 - 2:45 pm
sp_Permalink sp_Print

Hi Robb,

The example file you attached above uses the built in combine files function. The technique I linked to above works slightly differently and doesn't return errors for the binaries. I suggest you try following the steps in the tutorial, as I just tested it on your files and it worked for me.

Mynda

sp_AnswersTopicAnswer
Answers Post
Avatar
Robert Rafferty
Member
Members
Level 0
Forum Posts: 32
Member Since:
September 15, 2020
sp_UserOfflineSmall Offline
5
December 28, 2020 - 12:17 pm
sp_Permalink sp_Print
Hi Mynda:

I see now. Works great,.  The built in functions throw me off.

Robb
sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online:
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
michael serna
mashal sana
Tiffany Kang
Leah Gillmore
Sopi Yuniarti
LAFONSO HERNANDEZ
Hayden Hao
Angela chen
Sean Moore
John Chisholm
Forum Stats:
Groups: 3
Forums: 24
Topics: 6215
Posts: 27248

 

Member Stats:
Guest Posters: 49
Members: 31897
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.