Hello -
I want to convert an entire column from a csv file with the following type of date formatting 12/18/2018 0:00 to entire column with text formatting in an xlsx file as 12/18/2018 12:00 AM. How can I do this?
Hello -
I want to convert an entire column from a csv file with the following type of date formatting 12/18/2018 0:00 to entire column with text formatting in an xlsx file as 12/18/2018 12:00 AM. How can I do this?
Once you have the info in Excel file, use existing format (Home/ Format/ Format Cells/ Number tab) under date - select '3/14/12 1:30 PM' OR create a custom format - where it shows 'Type:' you would enter 'mm/dd/yyyy hh:mm AM/PM' (exclude the single quote marks)
I'm trying to automate the process though so I need to know how to do it with a macro. I am able to change the other fields just fine. I am only have trouble with this date field.
If you in a spare cell put the formula =ISNUMBER(A2) changing the A2 to a cell reference with one of the dates in it, does it give FALSE?
If it does what happens if you select the column then on the ribbon click Data - Text to Columns, click Next twice and click Finish?
If my solution worked (or not) please let me know. If your question is answered then please remember to mark it solved
Computers are like air conditioners. They work fine until you start opening windows. ~Author Unknown
Ad 1. and 3. All you need is a simple function "Text", e.g.:
, if the dates to be converted are in the cells of the "A" column.![]()
Please Login or Register to view this content.
Ad 2. Here the macro is not needed, although of course it can be "made" (but we must pay attention to the system date separator).
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks