getting numbers out text

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Getting numbers out of text string

Getting numbers out of text string

resolvedResolved · Low Priority · Version 2007

James has attended:
Excel Advanced - Formulas & Functions course
Excel VBA Intro Intermediate course

Getting numbers out of text string

Hi, is there a formula/function that can get the numbers out of the below text strings?

#89.345
#89.345
#89.345
EUR116.51
#2.695
#2.695

e.g. #89.345 will become 89.345, EUR116.51 will become 116.51 etc

Thanks, James

RE: Getting numbers out of text string

Hi James

Thanks for getting in touch. I've looked at formulas that can attempt this but the downside is Excel's only function capable of doing this looks at the cell character by character. This makes the resulting function enormously convoluted.

There are two other possibilities: if you know any VBA then that's much better suited to this kind of work with the ISNUMERIC function.

Alternatively within Excel you can look at the Text To Columns feature on the Data menu. If the strings are in a similar pattern to the ones you've specified in your example, then Text to Columns can break them up at say, the # symbol, or after the third character. Your data might not be as regular as that but it would be a start.

I hope this helps.

Kind regards

Gary Fenn
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Wed 27 Mar 2013: Automatically marked as resolved.


 

Excel tip:

Page Break Preview in Excel 2010 (Hint/tip)

If you select View then Workbook Views then Page Break Preview, you will be able to view how your Excel spreadsheet will be split across multiple pages when printed. Even better, you can also drag a page break to a new place. Excel will then scale down your entire worksheet to fit the information you want on the pages you want.

View all Excel hints and tips


Server loaded in 0.09 secs.