![]() |
![]() |
|
|||||||
| 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 |
|
Board Regular
Join Date: Apr 2002
Location: Washington State, USA
Posts: 250
|
Hi Folks,
I have a column of names that have a single digit number at the end of each name. e.g. (SMITH,JOE1) What I hope to do is hide the number ,and just the number. Everything else in the cell will be text. Any Ideas? Thanks for your time, Jim |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Mar 2002
Location: Kobe, Japan
Posts: 1,420
|
Hi.
Please copy this into a standard module. And after select range you want to change, run this code. This code will delete last character if it ware a number.
_________________ With regards, Colo [ This Message was edited by: Colo on 2002-04-29 22:26 ] |
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 18
|
Colo's suggestion will delete rather than hide the last character?
Will this work? =LEFT(A1,LEN(A1)-1) |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Apr 2002
Location: Washington State, USA
Posts: 250
|
Thanks Very Much, I can use them both in different applications.
I appreciate it! Jim |
|
|
|
|
|
#5 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
|
Schrodinger's cat.... alive and well... this should cause some ripples amongst our quantum physics friends !
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|