Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Extracting part of data

I have a list of phone numbers in one column and I need to separate
the bit before the space from the bit after it. e.g. 0 0 01444 831918
etc So I need to extract the 01444 before the space into column
Telephone area code and 831918 into telephone. Can someone please
advise? Thanks Himani
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 202
Default Extracting part of data

If your phone numbers are in column A then column B gets the code with
=LEFT(A1,FIND(" ",A1)-1)
Column C gets the phone number with
=MID(A1,FIND(" ",A1)+1,LEN(A1)-FIND(" ",A1))

"Himani" wrote:

I have a list of phone numbers in one column and I need to separate
the bit before the space from the bit after it. e.g. 0 0 01444 831918
etc So I need to extract the 01444 before the space into column
Telephone area code and 831918 into telephone. Can someone please
advise? Thanks Himani

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 427
Default Extracting part of data

If all your entries are the same length and follow the same format of
spaces, 5 characters in the area code and 6 characters in the numbers,
you can use these formulas:
=MID(A1,5,5)
=RIGHT(A1,6)

Dave O
Eschew obfuscation
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Extracting part of data

What did that do with the OP's example of 0 0 01444 831918, Dennis?

If there is always the same structure of segments, the easiest option may be
Data/ Text to columns/ Delimited/ by space.
--
David Biddulph

"Dennis" wrote in message
...
If your phone numbers are in column A then column B gets the code with
=LEFT(A1,FIND(" ",A1)-1)
Column C gets the phone number with
=MID(A1,FIND(" ",A1)+1,LEN(A1)-FIND(" ",A1))

"Himani" wrote:

I have a list of phone numbers in one column and I need to separate
the bit before the space from the bit after it. e.g. 0 0 01444 831918
etc So I need to extract the 01444 before the space into column
Telephone area code and 831918 into telephone. Can someone please
advise? Thanks Himani



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Extracting part of data

On 3 Jun, 16:42, Dennis wrote:
If your phone numbers are in column A then column B gets the code with
=LEFT(A1,FIND(" ",A1)-1)
Column C gets the phone number with
=MID(A1,FIND(" ",A1)+1,LEN(A1)-FIND(" ",A1))



"Himani" wrote:
I have a list of phone numbers in one column and I need to separate
the bit before the space from the bit after it. e.g. 0 0 01444 831918
etc So I need to extract the 01444 before the space into column
Telephone area code and 831918 into telephone. Can someone please
advise? Thanks Himani- Hide quoted text -


- Show quoted text -


Thank you very much. It works perfectly. Would it be possible to
explain the syntax at all?

Regards

Himani
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
Extracting part of a cell [email protected] Excel Worksheet Functions 6 May 22nd 08 01:11 AM
Extracting part of Text from one cell to another JayW Excel Worksheet Functions 12 August 21st 06 12:47 PM
Extracting Part of a Date GLT Excel Discussion (Misc queries) 2 November 23rd 05 12:04 AM
extracting comments in a cell and making these part of the Chart . Charles Charts and Charting in Excel 2 April 19th 05 03:40 PM
Formula for Extracting Alphabetic Part of a Product Code ob3ron02 Excel Worksheet Functions 1 October 29th 04 06:07 PM


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