• 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

Import data from Excel folder |Power Query|Excel Forum|My Online Training Hub

You are here: Home / Import data from Excel folder |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 QueryImport data from Excel folder
sp_PrintTopic sp_TopicIcon
Import data from Excel folder
Avatar
dlawl14

New Member
Members
Level 0
Forum Posts: 2
Member Since:
February 3, 2016
sp_UserOfflineSmall Offline
1
July 1, 2016 - 12:08 am
sp_Permalink sp_Print

Hi,

I am trying to run a power query to import data from a folder containing 5 monthly files but am getting the following message when I double click on 'Binary' column,

DataFormat.Error: The input couldn't be recognized as a valid Excel document.
Details:
    Binary

 

when I select one individual monthly file it imports data, any idea what I'm doing wrong.

regds,

D

  

sp_AnswersTopicSeeAnswer See Answer
Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4449
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
July 1, 2016 - 8:07 am
sp_Permalink sp_Print

It sounds like you're using the technique for importing CSV or Text files from a folder. The technique for importing Excel files is different.

For Excel files from a folder you must Add a Custom Column and use the Excel.Workbook function.

=Excel.Workbook([Content])

Then you expand the Table to get the columns from the workbooks.

Mynda

sp_AnswersTopicAnswer
Answers Post
Avatar
dlawl14

New Member
Members
Level 0
Forum Posts: 2
Member Since:
February 3, 2016
sp_UserOfflineSmall Offline
3
July 1, 2016 - 7:16 pm
sp_Permalink sp_Print

thank you

Avatar
Ewan Powell

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
February 2, 2017
sp_UserOfflineSmall Offline
4
December 23, 2020 - 3:27 pm
sp_Permalink sp_Print

I also have the same error that comes up. The issue seems to be around the format of the date in the original files. The format is "dd-mmm-yyyy". When I go into the file and change it to a date format of dd/mm/yyyy I don't get an error on that data. If I have to go in and change the format, it is then pointless to use the Power Query.

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4449
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
5
December 24, 2020 - 8:02 am
sp_Permalink sp_Print

Hi Ewan,

If your date format is different to that of the source data then you should be using 'Change Type Using Locale'. To do this, remove the first 'Changed Type' step in the applied steps pane. Then right-click the date column header > Change Type > Using Locale... Then select 'Date' and 'English (Australia)'.

Mynda

Avatar
Oswin Arinaga

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
May 31, 2021
sp_UserOfflineSmall Offline
6
May 31, 2021 - 12:12 pm
sp_Permalink sp_Print sp_EditHistory

This answers helps me very well, thank you..

But I need little bit more help, can I go/ extract/ return a specified Table in a specified Sheet too?

What function do I need?

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4449
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
7
May 31, 2021 - 2:44 pm
sp_Permalink sp_Print

Hi Oswin,

Welcome to our forum! When you close & load your query you can choose what sheet the table is loaded to.

If you're still stuck, please start a new thread with further information so we can help you.

Mynda

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Kim Knox, Bhuwan Devkota
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 871
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
Jessica Stewart: 204
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Bhuwan Devkota
Kathryn Patton
Maria Conatser
Jefferson Granemann
Glen Coulthard
Nikki Fox
Rachele Dickie
Raj Mattoo
Mark Luke
terimeri dooriyan
Forum Stats:
Groups: 3
Forums: 24
Topics: 6221
Posts: 27285

 

Member Stats:
Guest Posters: 49
Members: 31909
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.