Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
SubliminalJones
 
Posts: n/a
Default text and number separation


Hello everyone...


I'm trying to do a spreadsheet that logs contact names and number
pulled from a network application. Normally I copy and paste the
information into one cell.

(cell a1) Ex: Steven Tyler p: 123-456-7890 f:369-125-1821.

How can I get 3 cells to seperate these and return:

Steven Tyler (in b1)
123-456-7890 (in c1)
369-125-1821 (in d1)

i cannot get it to remove the "p:" or "f:".


Please help if possible

Thanks, SJ


--
SubliminalJones
------------------------------------------------------------------------
SubliminalJones's Profile: http://www.excelforum.com/member.php...o&userid=27597
View this thread: http://www.excelforum.com/showthread...hreadid=475910

  #2   Report Post  
Dave O
 
Posts: n/a
Default

Formula in B1:
=MID(A1,1,FIND("p: ",A1,1)-2)

Formula in C1:
=MID(A1,FIND("p: ",A1,1)+3,12)

Formula in D1:
=RIGHT(A1,12)

These formulas rely on the assumption that the cell in column A will
always have "p: " and that telephone numbers will always be in
###-###-#### format.

  #3   Report Post  
MatthewTap
 
Posts: n/a
Default

SJ --

And, if the telephone numbers have the possibility of coming in different
lengths, then use what Dave O said and something kind of clumsy like this,
since you mentioned the "f:" and "p:"


=RIGHT(a1,(((LEN(a1)-1)) - (SEARCH("f:",a1))))

"Dave O" wrote:

Formula in B1:
=MID(A1,1,FIND("p: ",A1,1)-2)

Formula in C1:
=MID(A1,FIND("p: ",A1,1)+3,12)

Formula in D1:
=RIGHT(A1,12)

These formulas rely on the assumption that the cell in column A will
always have "p: " and that telephone numbers will always be in
###-###-#### format.


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
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
Text number to number value for calculating ddiebold7 Excel Worksheet Functions 3 June 13th 05 12:48 PM
Sort or Filter option? Mcobra41 Excel Worksheet Functions 3 February 23rd 05 07:22 PM
Formatting a cell as "text" in the number catagory. Ed Excel Worksheet Functions 3 December 7th 04 07:12 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


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