View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.programming
Jacob Skaria Jacob Skaria is offline
external usenet poster
 
Posts: 8,520
Default First 3 characters

Assuming you have the data in ColA, try the below which will extract all 4
info..

B1 =SUBSTITUTE(A1," ","")
C1 =LEFT(B1,1)
D1 =MID(B1,2,1)
E1 =MID(B1,4,FIND("200",B1,4))
F1 =TRIM(RIGHT(SUBSTITUTE(B1,E1,REPT(" ",10)),7))

Once you do this copy paste special values....and then you can convert the
date text to date by using =DATEVALUE()..


If this post helps click Yes
---------------
Jacob Skaria


"Elton Law" wrote:

Dear Expert,
I have used the OCR and convert the PDF file to EXCEL.

BpO21Jan200810:56
C Gr 5 Oct 2008 7:58

They display in 2 types which I cannot use "Text to Column" to split all
into individual columns.
What functions can I use so that I can capture the 2nd characters in the
cell please?
What functions can I use so that I can capture the 3nd characters and the
rest after the third characters please ?
First one is easy ... just Left(A1,1)

BpO21Jan200810:56
Then how about ? "P", "O","21Jan2008","10:56" ...

C Gr 5 Oct 2008 7:58
Also, how about this ?
Thanks so much