ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   remove unwanted text after the 7th position (https://www.excelbanter.com/excel-discussion-misc-queries/127563-remove-unwanted-text-after-7th-position.html)

George P

remove unwanted text after the 7th position
 
I have a range of cells, all consistent with the first 7 positions. I want
to remove everything to the right of the 7th position. I've tried various
special characters in 'edit/replace' to no avail.

thanks for your help!



David McRitchie

remove unwanted text after the 7th position
 
Hi George,
If all in a column you can use
Data, Test to columns, fixed length,
throw everything after the 7th position away.

test on a copy of the worksheet.
---
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"George P" wrote in message ...
I have a range of cells, all consistent with the first 7 positions. I want
to remove everything to the right of the 7th position. I've tried various
special characters in 'edit/replace' to no avail.

thanks for your help!





SteveW

remove unwanted text after the 7th position
 
=left(cell,7)

use a helper column, maybe copying the results back afterwards

Steve


On Wed, 24 Jan 2007 23:07:12 -0000, George P
wrote:

I have a range of cells, all consistent with the first 7 positions. I
want
to remove everything to the right of the 7th position. I've tried
various
special characters in 'edit/replace' to no avail.

thanks for your help!



All times are GMT +1. The time now is 09:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com