Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default extract non-specific info from multiple cells


i have a vertical list of over 8000 names and phone numbers, the problem
is they are all in one cell.. ie

Fund for District Nurses 01793 554200

is it possible for me to apply a process to all these cells that would
copy all the telephone numbers out of the original cell and stick them
in a new one? all the numbers are different, all the text in the cells
are different.

THANKYOU!!!!


--
rossww
------------------------------------------------------------------------
rossww's Profile: http://www.excelforum.com/member.php...o&userid=36742
View this thread: http://www.excelforum.com/showthread...hreadid=564613

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 94
Default extract non-specific info from multiple cells


rossww wrote:
i have a vertical list of over 8000 names and phone numbers, the problem
is they are all in one cell.. ie

Fund for District Nurses 01793 554200

is it possible for me to apply a process to all these cells that would
copy all the telephone numbers out of the original cell and stick them
in a new one? all the numbers are different, all the text in the cells
are different.

THANKYOU!!!!


--
rossww
------------------------------------------------------------------------
rossww's Profile: http://www.excelforum.com/member.php...o&userid=36742
View this thread: http://www.excelforum.com/showthread...hreadid=564613


Hi,

If all the phonenumbers are at the end of the text in the cell then you
can use something like this:

=MID(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&{0,1,2 ,3,4,5,6,7,8,9})),1024)

If your list starts in A1 then put this in B1 and just copy down the
length of your list.

Regards,
Bondi

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default extract non-specific info from multiple cells


=RIGHT(H8,12)
this function takes out the twelve characters from the right or you
could test out Data, text to columns, this worked with the small
example that you gave

Save your sheet in a different workbook name before you try this:
highlight the range you want to seperate the numbers
then goto the top menu and select
Data,text to Columns
select fixed width
next
double click on the lines you want to delete and only keep the line
that seperates the phone number from rest
press next
then finish
the numbers should be transferred to the next column
be carefull, this will replace anything that is in that column, so you
may have to insert a column before you do this


--
davesexcel


------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=564613

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default extract non-specific info from multiple cells


You could try this. It works on selected cells, so select your cells and
then run the macro. It will populate the next righthand cell with the
text part and the second right hand cell with the number part.

See how you get on with it.

Sub a()
Dim rng As Range
Dim i As Integer

Dim strRng As String
Dim str As String
Dim strOutAlpha As String
Dim strOutNum As String

Dim j As Integer
Dim IsAlpha As Boolean

For Each rng In Selection
i = 0
j = 0
strRng = rng
strOutAlpha = ""
strOutNum = "'"
IsAlpha = True

For j = 1 To Len(strRng)
str = Mid(strRng, j, 1)
Select Case str
Case "0" To "9"
IsAlpha = False
strOutNum = strOutNum & str
Case " "
If IsAlpha Then
strOutAlpha = strOutAlpha & str
End If
Case Else
IsAlpha = True
strOutAlpha = strOutAlpha & str
End Select
Next
rng.Offset(, 1) = strOutAlpha
rng.Offset(, 2) = strOutNum
Next
MsgBox "done"
End Sub


--
tony h
------------------------------------------------------------------------
tony h's Profile: http://www.excelforum.com/member.php...o&userid=21074
View this thread: http://www.excelforum.com/showthread...hreadid=564613

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
search column of text cellto identify those cells with specific w Ross Headifen Excel Worksheet Functions 1 July 8th 06 02:49 PM
Automate selection of specific reference cells njg Excel Discussion (Misc queries) 0 February 26th 06 04:48 AM
adding specific cells Shooter Excel Worksheet Functions 1 January 23rd 06 04:42 PM
Adding separate accumulators for multiple cells jrambo63 New Users to Excel 1 May 26th 05 06:56 PM
How do I extract cells from multiple workbooks Trevor Excel Discussion (Misc queries) 1 November 25th 04 10:59 PM


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