I need to separate date and time form one cell have data like 2021-02-09T09:31:45+05:00

Ahmed Fawad

Board Regular
Joined
Mar 1, 2011
Messages
63
Office Version
  1. 2016
Platform
  1. Windows
Date
DateTime
12021-02-09T09:31:45+05:00
22021-02-09T09:47:35+05:00
32021-02-09T10:39:19+05:00
42021-02-09T10:39:19+05:00
52021-02-09T10:55:28+05:00
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hi, can I ask is the content of the date/time column, actually held as Text, or is it a date/time value?
 
Upvote 0
What result do you require?
Try either Text to Columns or the formula.
Format the results to your preference.

Date and Time 2021.xlsm
ABCDE
42021-02-09T09:31:45+05:009-Feb-2109:31:4505:00:0014:31:45
52021-02-09T09:31:45+05:009-Feb-2109:31:45+05:00
62021-02-09T09:31:45+05:009-Feb-2109:31:45+05:00
3d
Cell Formulas
RangeFormula
B4B4=--LEFT(A4,10)
C4C4=MID(A4,12,8)+0
D4D4=MID(A4,LEN(A4)-4,99)+0
E4E4=C4+D4
 
Upvote 0
Solution
What result do you require?
Try either Text to Columns or the formula.
Format the results to your preference.

Date and Time 2021.xlsm
ABCDE
42021-02-09T09:31:45+05:009-Feb-2109:31:4505:00:0014:31:45
52021-02-09T09:31:45+05:009-Feb-2109:31:45+05:00
62021-02-09T09:31:45+05:009-Feb-2109:31:45+05:00
3d
Cell Formulas
RangeFormula
B4B4=--LEFT(A4,10)
C4C4=MID(A4,12,8)+0
D4D4=MID(A4,LEN(A4)-4,99)+0
E4E4=C4+D4
Thank you very much :)
 
Upvote 0

Forum statistics

Threads
1,214,638
Messages
6,120,676
Members
448,977
Latest member
moonlight6

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