Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieve only numbers in cell

Status
Not open for further replies.

Dina01

Programmer
Mar 26, 2002
204
CA
Hello,

I have an excel sheet that I need to calculate only the numbers in the cell, but my cells contains numbers and letters. How can I do this. The worksheet looks like this.....
_________________________
dina 23| cathy 12 | lal 01
_________________________

Therefore I would need to total the amount but I need to retrieve only the numbers to be able to calculate.

Can anyone please tell me how to do this...

Thanks
 
If the numbers are always preceded by a space and there isonly 1 space per cell then this will work:

=SUMPRODUCT((VALUE(RIGHT(A1:C1,LEN(A1:C1)-FIND(" ",A1:C1)))))

where your data is in A1:C1

Rgds, Geoff
[blue]Si hoc signum legere potes, operis boni in rebus Latinus alacribus et fructuosis potiri potes![/blue]
Want the [red]best[/red] answers to your questions ? faq222-2244
 
Thanks you I will try that right away...
 
Otherwise you could have a look at parse_data spreadsheet on which gives you the option to parse more complicated cell contents. It could be adapted to your requirements quite simply. It basically apes the 'Text to Columns' function.

Regards,
Nic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top