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

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
-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,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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
Back
Top