Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default How to delete fist 6 digit of all contents in a column?

How to delete fist 6 digit of all contents in a column?
Column has 13 digits(alpha-numeric) and we need to delete the first 6 of
each cell in the same column (D1 to D500)
--
capxc
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default How to delete fist 6 digit of all contents in a column?

=Right(A1,LEN(A1)-6)
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default How to delete fist 6 digit of all contents in a column?

How do i put this command?
--
capxc


"Jarek Kujawa" wrote:

=Right(A1,LEN(A1)-6)

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default How to delete fist 6 digit of all contents in a column?

presume E is a column of blank cells, go to E1 and insert the formula:
=Right(D1,LEN(D1)-6)
then copy down
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default How to delete fist 6 digit of all contents in a column?

You don't. You do it as follows:

1. Insert a helper column, typically right next to the current one (so it
will be column E).
2. Insert the formula given in E1, and copy it down. The easiest way to copy
it down is double click on the fill handle (bottom right hand cornet of the
box).
3. Copy the column (highlight the top box with the E in it, right click and
choose Copy).
4. Paste SpecialValues... (Right click anywhere in the column, choose Paste
Special... Chose Values).
5. Delete the old column.

Regards,
Fred.

"capxc" wrote in message
...
How do i put this command?
--
capxc


"Jarek Kujawa" wrote:

=Right(A1,LEN(A1)-6)




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 56
Default How to delete fist 6 digit of all contents in a column?

Capxc

If you wanted a little bit of Visual basic code, you could achieve the same
result without any helper columns with the following:

Sub TrimFirstSix()
For Each TrimCell In Range("D1:D500")
TrimCell.Formula = Right(TrimCell, Len(TrimCell) - 6)
Next
End Sub

If you wanted to select a range of cells and trim THOSE, replace the second
line with: For Each TrimCell In selection

Regards

Pete


"capxc" wrote:

How to delete fist 6 digit of all contents in a column?
Column has 13 digits(alpha-numeric) and we need to delete the first 6 of
each cell in the same column (D1 to D500)
--
capxc

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default How to delete fist 6 digit of all contents in a column?

Formula is succesful but when Idelete the old column, the new column shows
only
#VALUE!
How do I get to see the numbers?
--
capxc


"Fred Smith" wrote:

You don't. You do it as follows:

1. Insert a helper column, typically right next to the current one (so it
will be column E).
2. Insert the formula given in E1, and copy it down. The easiest way to copy
it down is double click on the fill handle (bottom right hand cornet of the
box).
3. Copy the column (highlight the top box with the E in it, right click and
choose Copy).
4. Paste SpecialValues... (Right click anywhere in the column, choose Paste
Special... Chose Values).
5. Delete the old column.

Regards,
Fred.

"capxc" wrote in message
...
How do i put this command?
--
capxc


"Jarek Kujawa" wrote:

=Right(A1,LEN(A1)-6)



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default How to delete fist 6 digit of all contents in a column?

Before you delete the old copy all new and paste special as values in place,
then delete the old

--


Regards,


Peo Sjoblom

"capxc" wrote in message
...
Formula is succesful but when Idelete the old column, the new column shows
only
#VALUE!
How do I get to see the numbers?
--
capxc


"Fred Smith" wrote:

You don't. You do it as follows:

1. Insert a helper column, typically right next to the current one (so it
will be column E).
2. Insert the formula given in E1, and copy it down. The easiest way to
copy
it down is double click on the fill handle (bottom right hand cornet of
the
box).
3. Copy the column (highlight the top box with the E in it, right click
and
choose Copy).
4. Paste SpecialValues... (Right click anywhere in the column, choose
Paste
Special... Chose Values).
5. Delete the old column.

Regards,
Fred.

"capxc" wrote in message
...
How do i put this command?
--
capxc


"Jarek Kujawa" wrote:

=Right(A1,LEN(A1)-6)





  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default How to delete fist 6 digit of all contents in a column?

Never mind my last question. I fugure it out.
Thanks.
--
capxc


"Fred Smith" wrote:

You don't. You do it as follows:

1. Insert a helper column, typically right next to the current one (so it
will be column E).
2. Insert the formula given in E1, and copy it down. The easiest way to copy
it down is double click on the fill handle (bottom right hand cornet of the
box).
3. Copy the column (highlight the top box with the E in it, right click and
choose Copy).
4. Paste SpecialValues... (Right click anywhere in the column, choose Paste
Special... Chose Values).
5. Delete the old column.

Regards,
Fred.

"capxc" wrote in message
...
How do i put this command?
--
capxc


"Jarek Kujawa" wrote:

=Right(A1,LEN(A1)-6)



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
Use 2nd digit from the left in cell contents for vlookup Pierre Excel Worksheet Functions 4 December 5th 06 06:40 PM
Delete contents of cells mikespeck Excel Worksheet Functions 3 July 27th 06 03:16 PM
In excel, how can i delete 1 digit and the decimal point? rjtees Excel Worksheet Functions 1 November 17th 05 09:43 PM
How to Delete Contents of D2 if B2 = "SD" StarBoy2000 New Users to Excel 5 July 21st 05 06:46 PM
How do I make a formula that uses the fist cell as a starting posi mrbshansen Excel Discussion (Misc queries) 1 April 18th 05 03:48 PM


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