Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
gmoexcel
 
Posts: n/a
Default How to separate numbers from text??


Here are my sample cells:


A B C D
ABA 123456789SMITH
ABA
ABA
ABA
ABA

I want to go from the example at the top to the example
at the bottom. Is there a function or formula that will allow
me to separate numbers from text?

A B C D
ABA 123456789 SMITH
ABA
ABA
ABA
ABA


--
gmoexcel
------------------------------------------------------------------------
gmoexcel's Profile: http://www.excelforum.com/member.php...o&userid=23324
View this thread: http://www.excelforum.com/showthread...hreadid=513675

  #2   Report Post  
Posted to microsoft.public.excel.misc
TRESSA WYKOFF
 
Posts: n/a
Default How to separate numbers from text??

It looks like there is if you have the same number of numbers and letters in
each one you're trying to split. In the 'test' category of formulas, there
are two functions called 'left' and 'right'. You could use "left" to split
the first set of numbers and the "right" function in the other cell for the
last set of letters. I hope this helps.

I posted the question about the formula gliche right before yours. Is your
copy formula function working properly?

"gmoexcel" wrote:


Here are my sample cells:


A B C D
ABA 123456789SMITH
ABA
ABA
ABA
ABA

I want to go from the example at the top to the example
at the bottom. Is there a function or formula that will allow
me to separate numbers from text?

A B C D
ABA 123456789 SMITH
ABA
ABA
ABA
ABA


--
gmoexcel
------------------------------------------------------------------------
gmoexcel's Profile: http://www.excelforum.com/member.php...o&userid=23324
View this thread: http://www.excelforum.com/showthread...hreadid=513675


  #3   Report Post  
Posted to microsoft.public.excel.misc
Bernard Liengme
 
Posts: n/a
Default How to separate numbers from text??

When you show just one example lots of questions are unanswered.
Do you always have 9 digits before the text?
Is the ABA part of the entry or is 123456789SMITH in a cell on its own?
Have you experimented with Data | Text to Columns ?
come back and we will try to help
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"gmoexcel" wrote in
message ...

Here are my sample cells:


A B C D
ABA 123456789SMITH
ABA
ABA
ABA
ABA

I want to go from the example at the top to the example
at the bottom. Is there a function or formula that will allow
me to separate numbers from text?

A B C D
ABA 123456789 SMITH
ABA
ABA
ABA
ABA


--
gmoexcel
------------------------------------------------------------------------
gmoexcel's Profile:
http://www.excelforum.com/member.php...o&userid=23324
View this thread: http://www.excelforum.com/showthread...hreadid=513675



  #4   Report Post  
Posted to microsoft.public.excel.misc
gmoexcel
 
Posts: n/a
Default How to separate numbers from text??


Yes there is always 9 digits on the left of the text, that's why I went
from 1 to 9 as in a SSN. Never mind the ABA, has nothing to do with
the question. 123456789SMITH is a cell on its own, that is the one I
am attempting to separate.

What is Data | Text to Columns ?

This is starting to get very complicated.

gmo

When you show just one example lots of questions are unanswered.
Do you always have 9 digits before the text?
Is the ABA part of the entry or is 123456789SMITH in a cell on its

own?
Have you experimented with Data | Text to Columns ?
come back and we will try to help



--
gmoexcel
------------------------------------------------------------------------
gmoexcel's Profile: http://www.excelforum.com/member.php...o&userid=23324
View this thread: http://www.excelforum.com/showthread...hreadid=513675

  #5   Report Post  
Posted to microsoft.public.excel.misc
Dave O
 
Posts: n/a
Default How to separate numbers from text??

Not to be contrary, but since there are *always* 9 digits on the left,
it becomes much simpler. With one of your entries in cell A1, try this
in cell B1:
=LEFT(A1,9)
.... and this in cell C1:
=MID(A1,10,LEN(A1))

Or, to get trickier and put the SSN into typical format, try this in
cell B1:
=MID(A1,1,3)&"-"&MID(A1,4,2)&"-"&MID(A1,6,4)
.... and the earlier mentioned formula in C1.



  #6   Report Post  
Posted to microsoft.public.excel.misc
gmoexcel
 
Posts: n/a
Default How to separate numbers from text??


Dave O Wrote:
Not to be contrary, but since there are *always* 9 digits on the left,
it becomes much simpler. With one of your entries in cell A1, try
this
in cell B1:
=LEFT(A1,9)
.... and this in cell C1:
=MID(A1,10,LEN(A1))

Or, to get trickier and put the SSN into typical format, try this in
cell B1:
=MID(A1,1,3)&"-"&MID(A1,4,2)&"-"&MID(A1,6,4)
.... and the earlier mentioned formula in C1.


This really helped. You saved us many hours of work. In the future I
will try to be more detailed. It would help if there was a way to
paste spreadsheets on this forum.


--
gmoexcel
------------------------------------------------------------------------
gmoexcel's Profile: http://www.excelforum.com/member.php...o&userid=23324
View this thread: http://www.excelforum.com/showthread...hreadid=513675

  #7   Report Post  
Posted to microsoft.public.excel.misc
Dave O
 
Posts: n/a
Default How to separate numbers from text??

Glad this was helpful to you! The LEFT and MID functions in Excel are
just two examples of the many functions that parse data- it may be
useful for you and your team to learn about these functions if you
anticipate similar work in the future.

  #8   Report Post  
Posted to microsoft.public.excel.misc
gmoexcel
 
Posts: n/a
Default How to separate numbers from text??


Dave O Wrote:
Glad this was helpful to you! The LEFT and MID functions in Excel are
just two examples of the many functions that parse data- it may be
useful for you and your team to learn about these functions if you
anticipate similar work in the future.



Actually I have tried to use the RIGHT function to parse a column of
numbers but I keep getting a #VALUE error.

The data was imported from a report and was originally formatted like
this: 1.22005E+16. In Excel we reformatted it to a number, now it
looks like this: 12200500001044000. Which is actually a combination
of date an dollar amount.

What I am intenting to do is to add the last 7 digits from the right
and get my totals that way, then get rid of the first 10 digits. I
have tried several different functions but I always get the #VALUE
error. Any help will be greatly appreciated.


--
gmoexcel
------------------------------------------------------------------------
gmoexcel's Profile: http://www.excelforum.com/member.php...o&userid=23324
View this thread: http://www.excelforum.com/showthread...hreadid=513675

  #9   Report Post  
Posted to microsoft.public.excel.misc
Dave O
 
Posts: n/a
Default How to separate numbers from text??

Hi, sorry for the delayed response! I didn't notice you'd posted
again.

In your example, 12200500001044000, the first 6 columns are the date
stamp, presumably 12/20/2005. But the string itself is 17 characters
long, so just to be all inclusive you don't want those 7 characters
(altho you do for this example), but instead the rightmost 11
characters:
=RIGHT(A1,11)
This returns a text string, which will not provide any useable
information to a math formula. So nest in the VALUE formula to convert
the text to a value:
=VALUE(RIGHT(A1,11))

  #10   Report Post  
Posted to microsoft.public.excel.misc
Dave O
 
Posts: n/a
Default How to separate numbers from text??

And totally by the way, you can convert the datestamp (assuming it
means (in this example) 12/20/2005) to an Excel readable date with this
formula:
=DATEVALUE(MID(A1,1,2)&"/"&MID(A1,3,2)&"/"&MID(A1,5,2))
.... and format the results as a date.

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
converting text to negative numbers! via135 Excel Worksheet Functions 6 February 5th 06 06:29 AM
converting numbers to text gls858 New Users to Excel 2 October 18th 05 10:56 PM
How do I convert numbers stored as text with spaces to numbers Baffuor Excel Discussion (Misc queries) 1 May 24th 05 07:39 AM
How to reformat numbers stored as text (apostrophe at beginning) Dave Excel Discussion (Misc queries) 1 May 11th 05 02:34 AM
Converting Numbers to Text properly Shirley Munro Excel Discussion (Misc queries) 1 February 16th 05 03:01 PM


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

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"