Extraction
Forgot to mention to format ColB to excel date format....as that return a
date...(not a text)
If this post helps click Yes
---------------
Jacob Skaria
"Jacob Skaria" wrote:
OK...The formula way
cell B1
=--LEFT(TRIM(SUBSTITUTE(A1,C1,)),FIND(" ",TRIM(SUBSTITUTE(A1,C1,)))-1)
cell C1
=TRIM(LEFT(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1& "0123456789"))-1))
cell D1
=TRIM(MID(A1,LEN(C1)+FIND(" ",TRIM(SUBSTITUTE(A1,C1,)))+1,255))
If this post helps click Yes
---------------
Jacob Skaria
"Donna" wrote:
I did try that and it worked. I have never used a sub macro. I have other
things to do in this workseet that I will be setting up in a macro. I then
will share this macro with my team mates and they will copy it. Can everthing
be incorporated into one macro, or do you have set up a macro and then a sub
macro?
Thanks Donna
"Jacob Skaria" wrote:
You have a macro solution to your previous post dated 10/20/2009
If this post helps click Yes
---------------
Jacob Skaria
"Donna" wrote:
How can I pull out the 1st date listed in the beginning of a cell of text.
(new entrys are put at the beginning of the cell)
Example: (BOND) 10/20/09 STMT & RE cr*9/21/09 stmt* ----(in Col A)
In the example above the newest date entry is always put at the beginning of
the cell and that is the date I want to extract in a separate column. (I
only want to pull out dates that have Month, Day and Year in the format
example 9/21/09)
A date is not always preceded by text.
In the example above what I would want to see is:
Column B: 10/20/09
Column C: (BOND) ----everything before the date
Column D: STMT & RE cr*9/21/09 stmt* ----everything after the date
If there is a worksheet function that will do that it would be great. If not
I can do a macro, but I am not that experienced with those, so if you could
lead me through I would appreciate it.
Donna
|