i know this is probably a really simple thing to do but i am really not
familiar with text worksheet functions. anyways i have a cell which
contains the string: quot;Transfer Date: 3/19/2006quot;. i want to extract only
the date from the string e.g. quot;3/19/2006quot;.

note: if it was March 1st, then it would show quot;Transfer Date:
3/1/2006quot;...so i cant use the right function since i dont know the
exact length of the date.--
kdp145
------------------------------------------------------------------------
kdp145's Profile: www.excelforum.com/member.php...oamp;userid=29594
View this thread: www.excelforum.com/showthread...hreadid=518715
Try this:

For A1 containing text in the format you described
A1: Transfer Date: 3/19/2006

B1: =--TRIM(MID(A1,FIND(quot;:quot;,A1) 1,255))
Format B1 as a date.

Does that help?

Regards,
Ron--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: www.excelforum.com/member.php...oamp;userid=21419
View this thread: www.excelforum.com/showthread...hreadid=518715kdp

Select cells, Data/Text to Columns/Fixed Length.
Separate words and space from date, format as date
You can choose to not import the text part.

HTH
Beegequot;kdp145quot; gt; wrote in
message ...
gt;
gt; i know this is probably a really simple thing to do but i am really not
gt; familiar with text worksheet functions. anyways i have a cell which
gt; contains the string: quot;Transfer Date: 3/19/2006quot;. i want to extract only
gt; the date from the string e.g. quot;3/19/2006quot;.
gt;
gt; note: if it was March 1st, then it would show quot;Transfer Date:
gt; 3/1/2006quot;...so i cant use the right function since i dont know the
gt; exact length of the date.
gt;
gt;
gt; --
gt; kdp145
gt; ------------------------------------------------------------------------
gt; kdp145's Profile:
gt; www.excelforum.com/member.php...oamp;userid=29594
gt; View this thread: www.excelforum.com/showthread...hreadid=518715
gt;

thnx Ron..that worked perfectly--
kdp145
------------------------------------------------------------------------
kdp145's Profile: www.excelforum.com/member.php...oamp;userid=29594
View this thread: www.excelforum.com/showthread...hreadid=518715
文章標籤
全站熱搜
創作者介紹