Power Query Date Column

leimst

New Member
Joined
Mar 11, 2011
Messages
16
Hello,

I have an Excel spreadsheet that I am pulling into Power Query and manipulating. One of the columns is a date field in the format "Mmm-yy". When I try to change the format of that column to "Date" in Power Query, it converts Oct-14 (which represents Oct. 2014) to 10/14/15, thus changing the year. Can anyone tell me how to use Power Query to convert that to the correct month and year?

Thank you in advance for any help,

leimst
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
What does the actual cell in the source worksheet contain as a value? The text "Oct-14" or a true date value?
 
Upvote 0
Can you change the source to use say 1 Oct 14 and just format it as mmm-yy? That would fix the PQ issue.
 
Upvote 0
I could and actually did do that but wanted to figure out how to solve the issue in PQ...I have heard so much about how amazing it is and what all you can change and manipulate. I wanted to set up a PQ query so that when I bring new data in each month PQ automatically performs the ETL on it and brings it in. In fact, I have it set up to do that...all I have to do is paste the new files into the source folder that I set up but I can't seem to figure out this piece of it.
 
Upvote 0
You could add a new calculated column using a formula like:
=Date.FromText("01-"&[Date field]))
 
Upvote 0

Forum statistics

Threads
1,224,074
Messages
6,176,223
Members
452,715
Latest member
DebbieCox

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top