easy one: Formula to extract date in string using 2007

chrissooo

New Member
Joined
Aug 22, 2008
Messages
42
Hi

I'd imagine this would be an easy one but I'm trying to extract the date in the following string:

<TABLE style="WIDTH: 1046pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=1389><COLGROUP><COL style="WIDTH: 110pt; mso-width-source: userset; mso-width-alt: 4835" width=147><COL style="WIDTH: 52pt" span=18 width=69><TBODY><TR style="HEIGHT: 14.95pt" height=20><TD style="BORDER-BOTTOM: #f0f0f0; BORDER-LEFT: #f0f0f0; BACKGROUND-COLOR: white; WIDTH: 1046pt; HEIGHT: 14.95pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #f0f0f0" class=xl64 height=20 width=1389 colSpan=19>Round 1, Thursday, 24th March 2011



</TD></TR></TBODY></TABLE>
The date should always begin on the 2nd character after the 2nd comma (working left to right).

Just want the date, not the day of the week, so result wanted would be: "24th March 2011"

Thanks in advance
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
try this
Excel Workbook
AB
20Round 1, Thursday, 24th March 201124th March 2011
21Round 10, Thursday, 24th March 201124th March 2011
Sale
Excel 2003
Cell Formulas
RangeFormula
B20=RIGHT(A20,LEN(A20)-FIND("|",SUBSTITUTE(A20,",","|",2))-1)
 
Upvote 0
Just wondering if there is a way to format the destination cell in the format "24/03/2011"?

I have manually formatted the cell (right click-format cells -date etc) but it is still "24th March 2011"

As it is going into a db, I'd prefer to have the former format.

Thanks
 
Upvote 0
Try

=TEXT(REPLACE(REPLACE(A1,1,SEARCH("day, ",A1)+4,""),FIND(" ",REPLACE(A1,1,SEARCH("day, ",A1)+4,""))-2,2,""),"dd/mm/yyyy")
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,682
Members
452,937
Latest member
Bhg1984

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