Extract date with word/number from the sentence

chetan123

New Member
Joined
Dec 17, 2016
Messages
4
Raw Data

<colgroup><col width="773"></colgroup><tbody>
</tbody>
Desire data 1

<colgroup><col width="125"></colgroup><tbody>
</tbody>
Desire data 2

<colgroup><col width="125"></colgroup><tbody>
</tbody>
Desire data 3

<colgroup><col width="87"></colgroup><tbody>
</tbody>
KANSAS ST DEV FIN AUTH REV UNIV KANS CTR RESH INC CALLABLE 02/01/16 @100 4% 02/01/17

<colgroup><col width="773"></colgroup><tbody>
</tbody>
CALLABLE 03/01/16

<colgroup><col width="125"></colgroup><tbody>
</tbody>
4%

<colgroup><col width="125"></colgroup><tbody>
</tbody>
02/01/17

<colgroup><col width="87"></colgroup><tbody>
</tbody>
SAN ANTONIO TEX ELEC & GAS REV REF-SER B (TX)* 4% 2/1/2017

<colgroup><col></colgroup><tbody>
</tbody>


<colgroup><col width="773"></colgroup><tbody>
</tbody>
NA

<colgroup><col width="125"></colgroup><tbody>
</tbody>
4%

<colgroup><col width="125"></colgroup><tbody>
</tbody>
2/1/2017

<colgroup><col width="87"></colgroup><tbody>
</tbody>
CITY OF COPPELL, TEXAS GENERAL OBLIGATION REFUNDING AND IMPROVEMENT BONDS, SERIES 2011 (TX) 3.00% 3/1/2017

<colgroup><col></colgroup><tbody>
</tbody>
NA

<colgroup><col width="125"></colgroup><tbody>
</tbody>
3%

<colgroup><col width="125"></colgroup><tbody>
</tbody>
3/1/2017

<colgroup><col width="87"></colgroup><tbody>
</tbody>
OMAHA PUB PWR DIST NEB ELEC REV PREREFUNDED-SER B CALLABLE 03/01/16 @100 5.00% 2/1/2017

<colgroup><col width="773"></colgroup><tbody>
</tbody>
CALLABLE 03/01/16

<colgroup><col width="125"></colgroup><tbody>
</tbody>
5%

<colgroup><col width="125"></colgroup><tbody>
</tbody>
2/1/2017

<colgroup><col width="87"></colgroup><tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Warship

Well-known Member
Joined
Jul 17, 2007
Messages
1,052
-assuming Data starts in A2

data 1 formula:
=IF(ISERR(SEARCH("CALLABLE",A2)),"NA",MID(A2,SEARCH("CALLABLE",A2),SEARCH("@",A2)-SEARCH("CALLABLE",A2)-1))

data 2 formula:
=VALUE(LEFT(MID(A2,FIND("|",SUBSTITUTE(A2," ","|",LEN(A2)-LEN(SUBSTITUTE(A2," ",""))-1))+1,255),SEARCH(" ",MID(A2,FIND("|",SUBSTITUTE(A2," ","|",LEN(A2)-LEN(SUBSTITUTE(A2," ",""))-1))+1,255))))

data 3 formula:
=DATEVALUE(TRIM(RIGHT(SUBSTITUTE(TRIM(A2), " ", REPT(" ", LEN(TRIM(A2)))), LEN(TRIM(A2)))))
 
Upvote 0

Forum statistics

Threads
1,191,117
Messages
5,984,743
Members
439,906
Latest member
Sekiro1899

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top