Originally Posted by mancubus hi. assuming A1 houses the date, try this: Sub split_date_time() Range("B1").Value = Format(Int(Range("A1")), "dd/mm/yyyy") Range("C1").Value = Format((Range("A1") - Int(Range("A1"))), "hh:mm:ss") End Sub Good, but you need to incorporate it on a loop as the OP has lots of rows.
Sub split_date_time() Range("B1").Value = Format(Int(Range("A1")), "dd/mm/yyyy") Range("C1").Value = Format((Range("A1") - Int(Range("A1"))), "hh:mm:ss") End Sub
There are currently 1 users browsing this thread. (0 members and 1 guests)
View Tag Cloud
Forum Rules
Bookmarks