Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 249
Default Extracting numbers from a string containg letters at the end

Thanks Rick,

best regards,

Roger

"Rick Rothstein" wrote:

Oops, I missed the second part of your question. Assuming your first value
is in A1 and you put the formula I gave you in B1, then put this in C1...

=TRIM(SUBSTITUTE(A1,C1,""))

By the way, my earlier posted formula and this one can be copied down as
needed.

--
Rick (MVP - Excel)


"Rick Rothstein" wrote in message
...
Give this formula a try..

=LOOKUP(9.9E+307,--LEFT(A1,ROW($1:$99)))

--
Rick (MVP - Excel)


"Roger on Excel" wrote in message
...
I have a column of cells which contain material quantities in units of
grams
(g) or millilitres (ml). I need to extract the numbers from the strings
and
paste them into the adjacent cell. It would also be nice to place the
unit
in the next cell afterwards also

For example:

3.04g
25ml
24.2 ml
5 g
3g

Notice that there sometimes is a space after the number which would need
to
be removed.

Can anyone help?



.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting numbers and letters in a single cell to separate cells lawandgrace Excel Discussion (Misc queries) 1 August 14th 09 04:45 PM
Extracting Numbers from string Keyrookie Excel Worksheet Functions 4 October 4th 07 11:47 PM
Extracting numbers from string of text Marie Excel Discussion (Misc queries) 2 November 21st 06 09:46 PM
Splitting string into letters and numbers Foss[_2_] Excel Programming 2 February 3rd 05 10:35 AM
extracting numbers from string Chris Dowell via OfficeKB.com Excel Discussion (Misc queries) 1 January 12th 05 09:37 PM


All times are GMT +1. The time now is 02:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"