Extract number from text

Avazquezd75

New Member
Joined
Apr 27, 2012
Messages
5
Hello there, semi-noob-code-developer here ! :p

I have being searching for an option to extract specific numbers from a string, and so far I have been unable to find a suitable solution.

I have this string format:
(14.370) FY14 - 3Q US Marketing Progression

I need to extract the 14.370 ... to be more accurate .. I need to extract the number AFTER the . BETWEEN the ( ) ... just the 370.

This has been a challenge, because since the string may change .. it always starts with the (number.number):

(11.1) TL Attainment Bonus
(13.19) WW GDFS/EI Program
(14.591): Services On Top Bonus

I hope this could be achieved ... Best regards !!

Andrew
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
This will return the number as TEXT...

=MID(LEFT(A1,FIND(")",A1)-1),FIND(".",A1)+1,99)

and this will return it as a real number...

=0+MID(LEFT(A1,FIND(")",A1)-1),FIND(".",A1)+1,99)
 
Upvote 0
Wow .... I just love when you found that what you saw as a "complex issue" required actually a really simple approach ......

I learned something new today...Thank you very much for your solution Rick ... Really appreciated !!

Andrew
 
Upvote 0

Forum statistics

Threads
1,215,491
Messages
6,125,098
Members
449,205
Latest member
ralemanygarcia

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