Hi,
I am working on the stock trades I download from my broker for my tax. As I fed the records to a tool that calculates schedule D, wash sales, gain/loss etc., I found the time order of the records are very important to ensure correct calculations, but the download from the broker was not in time order. Sigh ..
However, the records come with a datetimestamp in one column down to milliseconds. e.g. 2/17/2012 13:05:48:287
I used =left(A2,search(" ", a2,1)) and right(A2,len(a2)-search(" ", a2, 1)) to split the column into 2, one with the date, the other with the time.
What do I need to do to sort the records by date and then by the timestamp?
I tried
1) sort the datetimestamp column from A-Z as text without split, it is not in time order
2) after the split, I format the date column and then sort it, it won't give me an option to sort it from oldest to newest, just from A-Z
3) after the split, I tried to custom format the time part with the milliseconds, and then sort it, but again, only from A-Z
I am new to Excel so any help would be appreciated.
Regards,
TT
I am working on the stock trades I download from my broker for my tax. As I fed the records to a tool that calculates schedule D, wash sales, gain/loss etc., I found the time order of the records are very important to ensure correct calculations, but the download from the broker was not in time order. Sigh ..
However, the records come with a datetimestamp in one column down to milliseconds. e.g. 2/17/2012 13:05:48:287
I used =left(A2,search(" ", a2,1)) and right(A2,len(a2)-search(" ", a2, 1)) to split the column into 2, one with the date, the other with the time.
What do I need to do to sort the records by date and then by the timestamp?
I tried
1) sort the datetimestamp column from A-Z as text without split, it is not in time order
2) after the split, I format the date column and then sort it, it won't give me an option to sort it from oldest to newest, just from A-Z
3) after the split, I tried to custom format the time part with the milliseconds, and then sort it, but again, only from A-Z
I am new to Excel so any help would be appreciated.
Regards,
TT