ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   remove last character in a series of different length part #'s (https://www.excelbanter.com/excel-discussion-misc-queries/59532-remove-last-character-series-different-length-part-s.html)

leo

remove last character in a series of different length part #'s
 
i have a series of part numbers in a column in xl that vary in length but
all end in "v'. I want to remove just the "v". I tried text to coulmns and
all the functions i know.

Dave Peterson

remove last character in a series of different length part #'s
 
If the v only shows up in the last character, maybe just
select your range
edit|replace
what: v
with: leave blank
replace all

If you don't want to do that, maybe a helper column of cells:

=left(a1,len(a1)-1)
drag down
copy|paste special|values
and delete the original column

leo wrote:

i have a series of part numbers in a column in xl that vary in length but
all end in "v'. I want to remove just the "v". I tried text to coulmns and
all the functions i know.


--

Dave Peterson

Ed Ferrero

remove last character in a series of different length part #'s
 
Hi leo,

This removes the last charachter
=LEFT(A1,LEN(A1)-1)

This removes the last charachter only if it is a "v"
=IF(RIGHT(A1,1)="v",LEFT(A1,LEN(A1)-1),A1)

Ed Ferrero
http://www.edferrero.com


i have a series of part numbers in a column in xl that vary in length but
all end in "v'. I want to remove just the "v". I tried text to coulmns and
all the functions i know.





All times are GMT +1. The time now is 05:10 AM.

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