Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
footballcmr2
 
Posts: n/a
Default How do I strip out some parts of a column of text data?

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.
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

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.

footballcmr2 wrote:

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.


--

Dave Peterson
  #3   Report Post  
SVC
 
Posts: n/a
Default

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).

"footballcmr2" wrote:

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.

  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

Oops. I thought you wanted to keep the rightmost 6 characters.

Sorry.

Dave Peterson wrote:

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.

footballcmr2 wrote:

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.


--

Dave Peterson


--

Dave Peterson
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
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 8 May 18th 05 04:23 AM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 0 May 15th 05 08:14 PM
Return Count for LAST NonBlank Cell in each Row Sam via OfficeKB.com Excel Worksheet Functions 12 April 17th 05 10:36 PM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM
Counting NUMBERS &/or TEXT from a column to other sheet ? Trixie Excel Worksheet Functions 4 March 3rd 05 07:59 PM


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