How do I strip out some parts of a column of text data?

F

footballcmr2

I have a column of text data, which happens to be 11 characters wide. I want
to strip the right-most 6 characters out of the entire column, without having
to do each cell one at a time. For example I want to to from this data: 2039
041175 to this data: 2039 for all 350 or so rows of data in the column on the
Excel sheet.
 
D

Dave Peterson

Use a helper column of formulas

=right(a1,6)
will return the value as text

=--right(a1,6)
will return the value as numeric

Just copy that down the helper column.
 
S

SVC

To pull the leftmost four characters of cell A1, set up a dummy column and
use the formula =Left(A1, 4) [change the cell name as appropriate]. Now copy
down to the last row. Finally, Copy the converted cells and, in the same
location, Paste Special > Values (this will eliminate the formula).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top