ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Text file conversion to excel (https://www.excelbanter.com/excel-discussion-misc-queries/187801-text-file-conversion-excel.html)

Michael M[_2_]

Text file conversion to excel
 
I received an excel file that was converted from several text files.
When trying to sort and vreate pivot tables it would not allow me to
group the data by date. I reviewed all the data and found some cells
in the date field were numbers such as 12/31/05 but others were
reflected as 365268. Any ideas of how to convert to enable grouping?

Thanks!

Rick Rothstein \(MVP - VB\)[_461_]

Text file conversion to excel
 
My guess is those cells containing "numbers" such as 12/31/05 are not really
numbers; but, rather, are text that look like dates. See if this helps...
select the column with these dates and click Data/TextToColumn from Excel's
menu bar. Click OK **twice** and select Date (MDY) from the "Column data
format" panel, then click Finish and your date looking entries should now be
actual dates (you might also want to format the column as Date so all
entries display the same way).

Rick


"Michael M" wrote in message
...
I received an excel file that was converted from several text files.
When trying to sort and vreate pivot tables it would not allow me to
group the data by date. I reviewed all the data and found some cells
in the date field were numbers such as 12/31/05 but others were
reflected as 365268. Any ideas of how to convert to enable grouping?

Thanks!




All times are GMT +1. The time now is 06:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com