• 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

Convert a date without slashes into a Date column|Power Query|Excel Forum|My Online Training Hub

You are here: Home / Convert a date without slashes into a Date column|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 QueryConvert a date without slashes into…
sp_PrintTopic sp_TopicIcon
Convert a date without slashes into a Date column
Avatar
Raoul Aza

New Member
Members
Level 0
Forum Posts: 2
Member Since:
December 10, 2019
sp_UserOfflineSmall Offline
1
December 10, 2019 - 4:35 pm
sp_Permalink sp_Print

Hi Experts

I am a newbie to the whole power thingie and have come across a problem, that I am unable to solve.

I have an Excel file in which I have dates entered as numbers without the slashes to separate it

i:e: dates are entered as 1082019 or 14092019

 

I am trying to transform this data in Power Query Editor

 

My question is how do I convert these numbers into a DD/MM/YYYY format?

I have tried to create a Custom Column as below but I am getting an error

Capture.JPGImage Enlarger

Can someone please help me... Any help would be much appreciated

Regards

Raza

sp_PlupAttachments Attachments
  • sp_PlupImage Capture.JPG (33 KB)
sp_AnswersTopicSeeAnswer See Answer
Avatar
Chris Yap
Member
Members
Level 0
Forum Posts: 162
Member Since:
August 21, 2019
sp_UserOfflineSmall Offline
2
December 10, 2019 - 11:06 pm
sp_Permalink sp_Print

Hi Raza,

I can only use 14092019 as an example,  please see attached,   you will need to use Transform > Split Column,   first split number of characters =4  then split further 1409 into 14 & 09,   then use custom column 

[Date.1.1]&"/"&[Date.1.2]&"/"&[Date.2]    to achieve the date format that you want,  take note that in the end need to change type to date

 

This is assumed that whole column are with DDMMYYYY format then you can use the applied steps to convert all,  however if there is date-liked type 1082019,   it can be  DDMYYYY  or DMMYYYY,   so this is consider dirty entries as you won't know exactly what the input guy date format

if the column is a date column is in  20/09/2019  for e.g.  and you want to convert to "MMM-yyyy“   (M must be Upper case,  D and Y lower case),  you can use

Date.ToText([Date], "MMM-yyyy")

if you need my help further,  kindly upload a sample dataset and I can work on it

sp_AnswersTopicAnswer
Answers Post
Avatar
Raoul Aza

New Member
Members
Level 0
Forum Posts: 2
Member Since:
December 10, 2019
sp_UserOfflineSmall Offline
3
December 11, 2019 - 12:59 pm
sp_Permalink sp_Print

Hi Chris

Thank you for replying

It's works for me as it is

Thank you very much for your help

Appreciate it

Raza

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Kim Knox, Jeanine Hagge, Nada Perovic
Guest(s) 10
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: 205
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Othman AL MUTAIRI
Misael Gutierrez Sr.
Attif Ihsan
Kieran Fee
Murat Hasanoglu
Brett Dryland
Saeed Aldousari
Bhuwan Devkota
Kathryn Patton
Maria Conatser
Forum Stats:
Groups: 3
Forums: 24
Topics: 6222
Posts: 27293

 

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