Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default how to extract numbers from imported cell with text and numbers?

does anyone know how to extract the number from an imported cell if the cell
contains both text and numbers?
eg. the cell contains "USD 30.79 (March 27, 2007)" but i want to use only
30.79 in a formula in another cell
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default how to extract numbers from imported cell with text and numbers?

Have a look at Data - Text to columns.

Mike

"jyin" wrote:

does anyone know how to extract the number from an imported cell if the cell
contains both text and numbers?
eg. the cell contains "USD 30.79 (March 27, 2007)" but i want to use only
30.79 in a formula in another cell

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default how to extract numbers from imported cell with text and numbers?

On Wed, 28 Mar 2007 02:24:01 -0700, jyin
wrote:

does anyone know how to extract the number from an imported cell if the cell
contains both text and numbers?
eg. the cell contains "USD 30.79 (March 27, 2007)" but i want to use only
30.79 in a formula in another cell


It depends on your format.

If your format is like the above, where the number to be extracted is always
the first "number value" in the string, then:

=LOOKUP(9.99999999999999E+307,--MID(
A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1
&"0123456789")),ROW(INDIRECT("1:"&LEN(A1)))))

will do what you want.

If your format variations are more complex, then you will need to post more
information.
--ron
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default how to extract numbers from imported cell with text and number

thanks mike! (:

unfortunately, i forgot to add that i need the data to keep refreshing every
hour. i tried using 'text to columns' but after splitting, cells are removed
from the imported data and cannot be refreshed.



"Mike" wrote:

Have a look at Data - Text to columns.

Mike

"jyin" wrote:

does anyone know how to extract the number from an imported cell if the cell
contains both text and numbers?
eg. the cell contains "USD 30.79 (March 27, 2007)" but i want to use only
30.79 in a formula in another cell

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
Why are 1/2 my numbers imported as text and the rest as numbers? KBear Excel Discussion (Misc queries) 2 April 21st 06 01:40 PM
Extract numbers from cell with Text and Numbers wiredwrx New Users to Excel 3 April 18th 06 10:57 PM
How do I extract numbers from a cell with both text and numbers? SHANNON Excel Worksheet Functions 8 December 2nd 05 03:31 AM
extract numbers from cell containing text & numbers [email protected] Excel Worksheet Functions 1 November 14th 05 08:04 AM
How to convert Excel imported numbers from text to numbers? Alden Excel Discussion (Misc queries) 9 April 1st 05 09:51 PM


All times are GMT +1. The time now is 04:26 PM.

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

About Us

"It's about Microsoft Excel"