+ Reply to Thread
Results 1 to 10 of 10

Need help with splitting up day/moth/year hour:minute into separate columns

  1. #1
    Registered User
    Join Date
    11-17-2018
    Location
    Oregon
    MS-Off Ver
    excel for office 365
    Posts
    4

    Need help with splitting up day/moth/year hour:minute into separate columns

    I am trying to split up a Time field into separate columns for day/month/year hour/minute that are in this format: 3/3/2018 1:15. Hour:minute is military time, but Excel changes it to AM/PM automatically, which is the first problem I am having. Also, when I split the hour (1:15) part of the field, it replaces that with 0:00 in the original column, which is a problem. When I use tab as a delimiter the preview looks like what I want, but what i actually get yields 2 colums of 1/3/1900 0:00.

    Help!


    excel post 1.png



    excel post 2.png

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,702

    Re: Need help with splitting up day/moth/year hour:minute into separate columns

    Welcome to the forum!

    Sorry, but I am not clear on what exactly you are trying to achieve - what do you want the split cells to look like?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    11-17-2018
    Location
    Oregon
    MS-Off Ver
    excel for office 365
    Posts
    4

    Re: Need help with splitting up day/moth/year hour:minute into separate columns

    There should be 5 separate cells, one for day, one for month, one for year, one for hour, and one for minute. Currently it is formatted like this D/M/YYYY H:M, all in one cell (Time), so i need to split them up by either /, space, or :

    The Time field H:M is in military time (13:03, 13:15, 13:30, etc) but excel keeps changing it to non-miliatary time and adding AM/PM.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,702

    Re: Need help with splitting up day/moth/year hour:minute into separate columns

    So why not have the same data in all five columns and use the column formatting to return what you want? Would that not work for you?

    Excel 2016 (Windows) 32 bit
    B
    C
    D
    E
    F
    G
    H
    2
    03/04/2017 13:05
    03
    04
    2017
    13
    05
    Sheet: Sheet1

    Excel 2016 (Windows) 32 bit
    D
    2
    =$B2
    Sheet: Sheet1

    Formatting:
    Last edited by AliGW; 11-17-2018 at 04:09 PM.

  5. #5
    Registered User
    Join Date
    11-17-2018
    Location
    Oregon
    MS-Off Ver
    excel for office 365
    Posts
    4

    Re: Need help with splitting up day/moth/year hour:minute into separate columns

    That is exactly what I want, but it does not work. Here is the output I get using the text to columns function:

    excel post 2.png

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,702

    Re: Need help with splitting up day/moth/year hour:minute into separate columns

    I didn't use the text to columns function.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    08-21-2018
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    178

    Re: Need help with splitting up day/moth/year hour:minute into separate columns

    or you can to use formula if format of cell is Date. in B1 you put = Day(A2), in C1 = Month(A2), D1 - =Year(A2), E1- =Hour(A2), F1 - = Minute(A2)

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,702

    Re: Need help with splitting up day/moth/year hour:minute into separate columns

    Yes, the formula option is another way to do it:

    Excel 2016 (Windows) 32 bit
    D
    E
    F
    G
    H
    3
    =DAY(B2)
    =MONTH(B2)
    =YEAR(B2)
    =HOUR(B2)
    =MINUTE(B2)
    Sheet: Sheet1

  9. #9
    Registered User
    Join Date
    11-17-2018
    Location
    Oregon
    MS-Off Ver
    excel for office 365
    Posts
    4

    Re: Need help with splitting up day/moth/year hour:minute into separate columns

    Yes! that worked, thank you so much!

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,702

    Re: Need help with splitting up day/moth/year hour:minute into separate columns

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to calculate a future year, month, day, hour, minute, second
    By wglogowski in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-04-2017, 10:29 AM
  2. [SOLVED] separating Hour and minute into seprate columns using excel formula
    By djmatok in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-17-2016, 05:16 PM
  3. Converting four columns into unified hour-day-month-year value
    By Johanv91 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-03-2013, 11:47 AM
  4. Splitting content in separate columns
    By jen2412 in forum Excel General
    Replies: 10
    Last Post: 08-28-2012, 06:19 PM
  5. Splitting Semester and Year into 2 columns (Fall '10)
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-17-2012, 03:08 PM
  6. Splitting Names into 2 separate columns
    By FreddyKruger in forum Excel General
    Replies: 11
    Last Post: 04-11-2008, 04:10 PM
  7. [SOLVED] convert time from 60 minute hour to 100 minute hour
    By Jboerding in forum Excel General
    Replies: 2
    Last Post: 07-06-2005, 06:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1