![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
I have a column of 4000 cells with text data of varying size in each cell. I only need the first 8 characters in each cell and I want to truncate (trash) the rest of the data. Any ideas. I tried to set up a validation in a new column, but this did not work. Thanks in advance.
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,757
|
Select the 4000 cells, go to Data, Text to Columns, select "Fixed With", and drag a line that divides the first 8 characters from the rest. Click Finish.
|
|
|
|
|
|
#3 |
|
Guest
Posts: n/a
|
Thanks Juan, This moves the remaining charaters into the adjacent column, is there any way to have it just delete the left over characters?
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,757
|
Sure. Instead of clicking "Finish", click "Next", then, you have the option to "Format" each column. In there, select the second column, and choose "Skip this column". Then you can click Finish.
|
|
|
|
|
|
#5 |
|
Guest
Posts: n/a
|
OK, maybe I'm just stupid (as you nod your head), but does this have anything to do with the destination field? When I hit skip, it simply deletes the characters that I need and not the ones that I don't. In this final step the next button is grayed out. urrrrgh.
|
|
|
|
#6 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,757
|
You're selecting the first column, try selecting the second one, and click "Skip".
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|