Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
tri_p
 
Posts: n/a
Default removing everything from the left after 10 digits

I have a column of phone numbers. I would like to "strip" off everything
after 10 digits ie1: 5555551212 ie2: 95555551212 ie3: 5551212 ie4: 15555551212

so in columns 2 and 4 I would like to strip off the 9 and 1

I do not have alot of programming exp.

thanks for your help


  #2   Report Post  
Aussie CPA
 
Posts: n/a
Default

The "Right" function would probably be useful for this. Ie =right("Cell
reference",10)

Regards,

Adam Wood

"tri_p" wrote:

I have a column of phone numbers. I would like to "strip" off everything
after 10 digits ie1: 5555551212 ie2: 95555551212 ie3: 5551212 ie4: 15555551212

so in columns 2 and 4 I would like to strip off the 9 and 1

I do not have alot of programming exp.

thanks for your help


  #3   Report Post  
Richard Buttrey
 
Posts: n/a
Default

On Thu, 29 Sep 2005 22:40:02 -0700, "tri_p"
wrote:

I have a column of phone numbers. I would like to "strip" off everything
after 10 digits ie1: 5555551212 ie2: 95555551212 ie3: 5551212 ie4: 15555551212

so in columns 2 and 4 I would like to strip off the 9 and 1

I do not have alot of programming exp.

thanks for your help


with phone numbers in column B starting in B1, put in A1

=IF(LEN(B1)<=10,B1,RIGHT(B1,LEN(B1)-(LEN(B1)-10)))


HTH


__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
  #4   Report Post  
tri_p
 
Posts: n/a
Default

That worked PERFECT (which I'm sure you knew that it would)

Thank you so much!!!

"Richard Buttrey" wrote:

On Thu, 29 Sep 2005 22:40:02 -0700, "tri_p"
wrote:

I have a column of phone numbers. I would like to "strip" off everything
after 10 digits ie1: 5555551212 ie2: 95555551212 ie3: 5551212 ie4: 15555551212

so in columns 2 and 4 I would like to strip off the 9 and 1

I do not have alot of programming exp.

thanks for your help


with phone numbers in column B starting in B1, put in A1

=IF(LEN(B1)<=10,B1,RIGHT(B1,LEN(B1)-(LEN(B1)-10)))


HTH


__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________

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
Excel should calculate exponentials properly (right to left) expatrie Excel Worksheet Functions 5 April 26th 06 08:34 AM
Mod 10 & 11 Pablo Excel Worksheet Functions 13 August 10th 05 11:39 AM
help with removing digits from a number frank Excel Discussion (Misc queries) 4 July 12th 05 02:31 AM
The left function does not work when displaying times, how is thi. Nambo27 Excel Worksheet Functions 3 February 25th 05 06:46 PM
Least number of digits in Y-axis labels Charley Kyd Charts and Charting in Excel 9 February 6th 05 03:03 PM


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