Could someone please help me combining the date and time into one cell?
Attached is the spreadsheet.
Thanks
timedate.JPG
Could someone please help me combining the date and time into one cell?
Attached is the spreadsheet.
Thanks
timedate.JPG
Like, in the cell K2:
And apply the custom format:Please Login or Register to view this content.
Please Login or Register to view this content.
Click the [* Add Reputation] Button to thank people for help!
Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.
also you can do that with PowerQuery add-in (for Ex2010 Pro Plus)
In K2,
=TEXT(B2, "0000\/00\/00") + TEXT(D2, "00\:00\:00")
Entia non sunt multiplicanda sine necessitate
Thanks everyone for your help!
You are welcome
Have a nice day
It mostly works but a few kinks. Could someone see what's going on?
I tried all three ways suggested and running into the same issue.
File attached. Thanks
dt2.JPG
Mybe read this first: Date function, Time function and TimeValue function
Use this in K2:
Please Login or Register to view this content.
Quang PT
formula 1: =DATE(LEFT(B2,4), MID(B2,5,2), RIGHT(B2,2)) + TIME(LEFT(D2,2), MID(D2,3,2), RIGHT(D2,2))
formula 2: =TEXT(B2, "0000\/00\/00") + TEXT(D2, "00\:00\:00")
A)
Formula #1 assumes a string length of 6 and treats the first two characters as hours, the second two as minutes and the third two as seconds. However, with, e.g. D85=3900 the length is only four characters. The result is an hour value of 39 which is converted to 39 - 24=15, i.e. 3 pm. Notice that since the string is only four characters long, the minutes and seconds are calculated from the same two trailing 00's The result in K85 is: 1/3/2001 3:00 PM.
Using formula #2 (shg's) the result is 12:39 AM
Ben Van Johnson
Okay - thanks again. Working now
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks