Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 173
Default First 3 characters

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default First 3 characters

Try using the MID() function

BpO21Jan200810:56
MID(A1,4,9) = "21Jan2008"

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 173
Default First 3 characters

Hi,
I just found I should have put in function page rather than programming forum.
Anyway, yours work on BpO21Jan200810:56
But it does not work on C Gr 5 Oct 2008 7:58
Do you have any idea that solve two cases at the same time ? Thanks

"Jacob Skaria" wrote:

Try using the MID() function

BpO21Jan200810:56
MID(A1,4,9) = "21Jan2008"

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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default First 3 characters

Try

=MID(SUBSTITUTE(A1," ",""),4,9)

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


"Elton Law" wrote:

Hi,
I just found I should have put in function page rather than programming forum.
Anyway, yours work on BpO21Jan200810:56
But it does not work on C Gr 5 Oct 2008 7:58
Do you have any idea that solve two cases at the same time ? Thanks

"Jacob Skaria" wrote:

Try using the MID() function

BpO21Jan200810:56
MID(A1,4,9) = "21Jan2008"

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

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 173
Default First 3 characters

That's prefect !!!!!!!!!!!!!
Thanks a lot !

"Jacob Skaria" wrote:

Try

=MID(SUBSTITUTE(A1," ",""),4,9)

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


"Elton Law" wrote:

Hi,
I just found I should have put in function page rather than programming forum.
Anyway, yours work on BpO21Jan200810:56
But it does not work on C Gr 5 Oct 2008 7:58
Do you have any idea that solve two cases at the same time ? Thanks

"Jacob Skaria" wrote:

Try using the MID() function

BpO21Jan200810:56
MID(A1,4,9) = "21Jan2008"

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



  #6   Report Post  
Posted to microsoft.public.excel.programming
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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
convert 5 characters in a cell to 6 characters by adding a zero Helenf Excel Discussion (Misc queries) 4 May 18th 09 04:43 PM
Insert Leading Characters If String Is Only 7 Characters Paperback Writer Excel Discussion (Misc queries) 2 April 21st 09 09:07 PM
Selecting only some characters, using "characters property" phil Excel Programming 0 January 24th 08 01:08 PM
In Excel find characters when multiple characters exist w/i a cel teacher-deburg Excel Worksheet Functions 1 December 5th 05 10:22 PM
HOW DO I EXTRACT ALL CHARACTERS AFTER 5 CHARACTERS ON LEFT GRYSYF Excel Worksheet Functions 5 October 12th 05 10:58 AM


All times are GMT +1. The time now is 05:10 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"