Extract data from a string

ed.ayers315

Board Regular
Joined
Dec 14, 2009
Messages
166
Hello forum goers,

Need to extract only the numbers from the below string in A88.

I need these numbers in individual cells in Row 88 from column K:FW

<TABLE style="WIDTH: 439pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=585><COLGROUP><COL style="WIDTH: 439pt; mso-width-source: userset; mso-width-alt: 21394" width=585><TBODY><TR style="HEIGHT: 30pt" height=40><TD style="BORDER-BOTTOM: #f0f0f0; BORDER-LEFT: #f0f0f0; BACKGROUND-COLOR: #92d050; WIDTH: 439pt; HEIGHT: 30pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #f0f0f0" class=xl64 height=40 width=585>4, 43, 43, 53, 57, 57, 58, 58, 58, 58, 58, 58, 59, 59, 57, 58, 58, 57, 57, 58, 58, 58, 58, 58, 58, 58, 58, 59, 59, 58,</TD></TR></TBODY></TABLE>

The problem I have had trying to do this is it is varible: sometimes 1, 2, 3 digits between the commas. Length is also varible.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Have you tried Data > Text to Columns, Delimited with comma as the delimiter.
 
Upvote 0
Best to try this with a copy of your sheet.

Click in A88, Data > Text to Columns, tick Delimited, click Next, tick Comma then click Finish.
 
Upvote 0
I can't think of any formula that wouldn't be hugely complicated.

VBA code would be relatively straightforward.
 
Upvote 0
I am glad to hear it would be complicated being I spent so much time trying to figure it out.

Thanks for your help, I will go with the Text to Columns.
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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