Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 3/6/2010(UTC) Posts: 113 Location: London
|
1. Copy the text into Column A 2. Copy into Cell B1:
=MID(A1,7,2)&"/"&MID(A1,5,2)&"/"&MID(A1,1,4)
3. Copy into Cell C1:
=MID(A1,10,2)&":"&MID(A1,12,2)&":"&MID(A1,14,2)
4. Copy into Cell D1:
=MID(A1,18,FIND(";",A1,17)-18)
5. Copy into Cell E1:
=LEFT(RIGHT(A1,LEN(A1)-FIND(";",A1,19)-1),FIND(";",RIGHT(A1,LEN(A1)-FIND(";",A1,19)-1),1)-1)
6. Copy into Cell F1:
=LEFT(RIGHT(A1,LEN(A1)-FIND(";",A1,19+FIND(";",RIGHT(A1,LEN(A1)-FIND(";",A1,19)-1),1))-1),FIND(";",RIGHT(A1,LEN(A1)-FIND(";",A1,19+FIND(";",RIGHT(A1,LEN(A1)-FIND(";",A1,19)-1),1))-1),1)-1)
7. Copy into Cell G1:
=LEFT(RIGHT(A1,LEN(A1)-FIND(";",A1,19+FIND(";",RIGHT(A1,LEN(A1)-FIND(";",A1,19)-1),1)+FIND(";",RIGHT(A1,LEN(A1)-FIND(";",A1,19+FIND(";",RIGHT(A1,LEN(A1)-FIND(";",A1,19)-1),1))-1),1))-1),FIND(";",RIGHT(A1,LEN(A1)-FIND(";",A1,19+FIND(";",RIGHT(A1,LEN(A1)-FIND(";",A1,19)-1),1)+FIND(";",RIGHT(A1,LEN(A1)-FIND(";",A1,19+FIND(";",RIGHT(A1,LEN(A1)-FIND(";",A1,19)-1),1))-1),1))-1),1)-1)
8. Copy into Cell H1:
=RIGHT(A1,LEN(A1)-FIND(";",A1,19+FIND(";",RIGHT(A1,LEN(A1)-FIND(";",A1,19)-1),1)+FIND(";",RIGHT(A1,LEN(A1)-FIND(";",A1,19+FIND(";",RIGHT(A1,LEN(A1)-FIND(";",A1,19)-1),1))-1),1)+FIND(";",RIGHT(A1,LEN(A1)-FIND(";",A1,19+FIND(";",RIGHT(A1,LEN(A1)-FIND(";",A1,19)-1),1)+FIND(";",RIGHT(A1,LEN(A1)-FIND(";",A1,19+FIND(";",RIGHT(A1,LEN(A1)-FIND(";",A1,19)-1),1))-1),1))-1),1)+1)-1)
The formulae are really long because Excel has to find the location of the semi-colon. It is therefore robust and will work even if the prices are more or less than 5 figures and the volume more or less than 3 figures.
I assume you want UK format dates. Are the zeros in the day and month OK? If not, I'll need to change the formula.
Best regards
H
|