Dates imported as text; year/month/day

MVF

New Member
Joined
Jun 23, 2011
Messages
16
I receive spreadsheets from South Africa, and they populate the date fields as text, for example, 20110530. Can I convert that to a US format 05/30/2011 without using left/mid/right functions to extract the number and concatenating it all back together? Other than doing that, I get ###### in the cell that it is too long to display. Thanks!!!
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Welcome to the board...

Try
Data - Text to columns
Deliminated - Next
Next
Date - YMD
Finish


Hope that helps.
 
Upvote 0
Wow, that was fast. Thanks, looks great!!

I then tried to use the "group field" function in my pivot table on that data that I changed so I wouldn't see dates by day, but by month.

However, the button is grayed out. When I pull in other dates from the same workbook, in the same format, the group field button is active.

Is there something about pasted data that doesn't allow this to work?

Thanks again:)
 
Upvote 0
Perhaps you need to re-create the pivot table after converting the dates with text to columns..?
 
Upvote 0
Gave it a try, no luck. when I manually type the data into a fresh worksheet, using the text to column approach that you described, grouping works fine.

I'll wait for my next spreadsheet download and recreate it. Perhaps that will do the trick.

Thanks again for your feedback!!
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

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