Extract Digits from string

segran

Active Member
Joined
Aug 20, 2004
Messages
335
Hi,

I have strings of varying lengths. For example:


1.01 Property rights.........................................................................98
1.02 Intellectual property protection .............................................107
1.03 Diversion of public funds.......................................................103
1.04 Public trust of politicians .........................................................89
1.05 Irregular payments and bribes...............................................104
1.06 Judicial independence ...........................................................118

I want to extract the numbers only in a column, for example:

98
107
103
89
104
118

If I could extract the name of the measure as well, followed by the digits in another column, that would be appreciated, example:

Property rights 98
Intellectual property protection 107
etc


Thanking you for your assistance.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Try this:

Excel Workbook
ABC
11.01 Property rights.........................................................................98Property rights98
21.02 Intellectual property protection .............................................107Intellectual property protection107
31.03 Diversion of public funds.......................................................103Diversion of public funds103
41.04 Public trust of politicians .........................................................89Public trust of politicians89
51.05 Irregular payments and bribes...............................................104Irregular payments and bribes104
61.06 Judicial independence ...........................................................118Judicial independence118
Sheet1
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,738
Members
452,940
Latest member
Lawrenceiow

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