Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 155
Default separate numbers from text

Hi I would like to separate the following text so the numbers are in separate
columns.

0.2 to 1.5 bar

Thanks

Graham
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default separate numbers from text

Hi,

Have a look at data|Text to columns using 'space' as a delimeter

Mike

"Graham" wrote:

Hi I would like to separate the following text so the numbers are in separate
columns.

0.2 to 1.5 bar

Thanks

Graham

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default separate numbers from text

Hi,
Go to Data, text to columns, use space as delimiter

"Graham" wrote:

Hi I would like to separate the following text so the numbers are in separate
columns.

0.2 to 1.5 bar

Thanks

Graham

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default separate numbers from text

If you want a formula method, then with your text in A1, put this in
B1:

=--LEFT(A1,SEARCH("to",A1)-1)

and this in C1:

=--SUBSTITUTE(RIGHT(A1,LEN(A1)-SEARCH("to",A1)-2),"bar","")

The -- in front of the formulae convert text values to numbers. The
formulae can be copied down if you need to.

Hope this helps.

Pete

On Sep 10, 2:11*pm, Graham wrote:
Hi I would like to separate the following text so the numbers are in separate
columns.

0.2 to 1.5 bar

Thanks

Graham


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default separate numbers from text

On Thu, 10 Sep 2009 06:11:02 -0700, Graham
wrote:

Hi I would like to separate the following text so the numbers are in separate
columns.

0.2 to 1.5 bar

Thanks

Graham


Are the numbers always as you show above?

In other words, are they always unsigned floating point numbers that will
always have an integer and a decimal portion?

If so, you could download and install Longre's free morefunc.xll add-in (Google
for a working source) and use this formula:

First Number: =REGEX.MID($A1,"\d+\.\d+",1)
Second Number: =REGEX.MID($A1,"\d+\.\d+",2)

If there were more numbers, just increment the last argument.

If the numbers might be formatted differently, post back.

The formula returns the values as a text string. If you require them to be
numeric, then precede the function with a double unary:

=--REGEX.MID($A1,"\d+\.\d+",1)

--ron


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
How to separate text and numbers in one cell or column? novastar Excel Worksheet Functions 13 April 19th 12 09:39 AM
Formula to separate text and numbers Chartreuse Excel Discussion (Misc queries) 6 October 20th 09 11:28 PM
Separate Text into numbers and alphabets Sheeloo Excel Worksheet Functions 4 September 10th 08 11:49 AM
how do i separate numbers and text in a cell? Jan Excel Discussion (Misc queries) 34 June 13th 07 12:51 PM
How to separate numbers from text?? gmoexcel Excel Discussion (Misc queries) 9 March 1st 06 05:50 PM


All times are GMT +1. The time now is 11:41 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"