Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Remove all but the last seven digits in a cell

I have a Excel 2003 sheet that I download from a vendor and the column of
numbers that I need have more characters than I need. I am comparing the
column to another sheet so I need them to be uniform in length. Here is an
example: 075 - 9652582. I only need the 9652582 .
Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Remove all but the last seven digits in a cell

The usu al way:

=RIGHT(A1,7)
--
Gary''s Student - gsnu200764


"Gary Crisp" wrote:

I have a Excel 2003 sheet that I download from a vendor and the column of
numbers that I need have more characters than I need. I am comparing the
column to another sheet so I need them to be uniform in length. Here is an
example: 075 - 9652582. I only need the 9652582 .
Thanks in advance

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default Remove all but the last seven digits in a cell

Hi Gary

Try
Assuming the data is in column A, and there is nothing in columns to the
right
Mark column ADataText to ColumnsDelimitedOther type in the box next to
other space hyphen " -" (without the quotes)Finish
Column C will contain the numbers you want.
Columns A and B can be deleted if required.

Alternatively, in B1 enter
=RIGHT(A1,7) and copy down
Mark column BCopyPaste Special back over itself to "fix" the data
Delete column A
--

Regards
Roger Govier

"Gary Crisp" wrote in message
...
I have a Excel 2003 sheet that I download from a vendor and the column of
numbers that I need have more characters than I need. I am comparing the
column to another sheet so I need them to be uniform in length. Here is an
example: 075 - 9652582. I only need the 9652582 .
Thanks in advance


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Remove all but the last seven digits in a cell

Experiment with Data | Text to Columns. You will find it easy to separate
the two parts. Just use Delimited with -
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Gary Crisp" wrote in message
...
I have a Excel 2003 sheet that I download from a vendor and the column of
numbers that I need have more characters than I need. I am comparing the
column to another sheet so I need them to be uniform in length. Here is an
example: 075 - 9652582. I only need the 9652582 .
Thanks in advance



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Remove all but the last seven digits in a cell

Thanks to all. I had forgotten the ways to do it.

"Bernard Liengme" wrote:

Experiment with Data | Text to Columns. You will find it easy to separate
the two parts. Just use Delimited with -
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Gary Crisp" wrote in message
...
I have a Excel 2003 sheet that I download from a vendor and the column of
numbers that I need have more characters than I need. I am comparing the
column to another sheet so I need them to be uniform in length. Here is an
example: 075 - 9652582. I only need the 9652582 .
Thanks in advance






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Remove all but the last seven digits in a cell

I was wondering if your got this to work already. One way you can try is this
insert this formula on a helper cell:

assuming the cell is A2

=left(A2,LEN(A2),-6)


"Gary Crisp" wrote:

Thanks to all. I had forgotten the ways to do it.

"Bernard Liengme" wrote:

Experiment with Data | Text to Columns. You will find it easy to separate
the two parts. Just use Delimited with -
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Gary Crisp" wrote in message
...
I have a Excel 2003 sheet that I download from a vendor and the column of
numbers that I need have more characters than I need. I am comparing the
column to another sheet so I need them to be uniform in length. Here is an
example: 075 - 9652582. I only need the 9652582 .
Thanks in advance




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Remove all but the last seven digits in a cell

Two points...

1) You show an extra comma in your LEFT function...
you meant to post =LEFT(A2,LEN(A2)-6)

2) You didn't answer the question that was asked. The OP wants to keep the
last 6 characters, not remove them. The formula for that is =RIGHT(A2,6)

Did you post your message into the original thread? I ask because all I see
is your message... I see no other messages (not even the OP's original one;
although I do see your included copy of it) for the thread you have posted
to.

Rick


"Eddie Ortiz" wrote in message
...
I was wondering if your got this to work already. One way you can try is
this
insert this formula on a helper cell:

assuming the cell is A2

=left(A2,LEN(A2),-6)


"Gary Crisp" wrote:

Thanks to all. I had forgotten the ways to do it.

"Bernard Liengme" wrote:

Experiment with Data | Text to Columns. You will find it easy to
separate
the two parts. Just use Delimited with -
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Gary Crisp" wrote in message
...
I have a Excel 2003 sheet that I download from a vendor and the column
of
numbers that I need have more characters than I need. I am comparing
the
column to another sheet so I need them to be uniform in length. Here
is an
example: 075 - 9652582. I only need the 9652582 .
Thanks in advance




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default Remove all but the last seven digits in a cell

Did you post your message into the original thread? I ask because all I
see is your message... I see no other messages (not even the OP's original
one; although I do see your included copy of it) for the thread you have
posted to.


Rick, the reply from Eddie shows up in the thread posted originally
08/jan/2008 21:08 by Gary Crisp.
This shows up for me as part of the thread, as I had marked it (I had given
a response)
From time to time I do see totally (to me) disjointed responses just like
you appear to be seeing with this one.
I have no idea why this happens.

Thinking aloud about that a little further, I don't think I have seen that
problem since switching from OE6 to Windows Live Mail as my Newsreader.
--
Regards
Roger Govier

"Rick Rothstein (MVP - VB)" wrote in
message ...
Two points...

1) You show an extra comma in your LEFT function...
you meant to post =LEFT(A2,LEN(A2)-6)

2) You didn't answer the question that was asked. The OP wants to keep the
last 6 characters, not remove them. The formula for that is =RIGHT(A2,6)

Did you post your message into the original thread? I ask because all I
see is your message... I see no other messages (not even the OP's original
one; although I do see your included copy of it) for the thread you have
posted to.

Rick


"Eddie Ortiz" wrote in message
...
I was wondering if your got this to work already. One way you can try is
this
insert this formula on a helper cell:

assuming the cell is A2

=left(A2,LEN(A2),-6)


"Gary Crisp" wrote:

Thanks to all. I had forgotten the ways to do it.

"Bernard Liengme" wrote:

Experiment with Data | Text to Columns. You will find it easy to
separate
the two parts. Just use Delimited with -
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Gary Crisp" wrote in message
...
I have a Excel 2003 sheet that I download from a vendor and the
column of
numbers that I need have more characters than I need. I am comparing
the
column to another sheet so I need them to be uniform in length. Here
is an
example: 075 - 9652582. I only need the 9652582 .
Thanks in advance




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
How to customize number to 10 digits including 2 digits after deci Carina Excel Worksheet Functions 3 September 20th 07 02:50 AM
Formula amendment to not remove digits Sarah (OGI) Excel Worksheet Functions 3 August 20th 07 04:42 PM
Remove first few digits from all cells in the column Magwine Excel Worksheet Functions 7 August 2nd 07 10:39 PM
remove and replace digits from a number spreadsheet monkey Excel Worksheet Functions 3 April 20th 07 02:08 PM
Excel 2002 : How to remove the digits from original reference ? Mr. Low Excel Discussion (Misc queries) 6 April 13th 07 02:04 PM


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