Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 102
Default How do I - Strip last letter from field

I want to strip the last character from a cell, but only if it is a number.
0040:P0200C would return C
040:PT1C would return C
0040:P202 wouldn't return anything or null



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default How do I - Strip last letter from field

Try the below formula with the data in cell A1

=IF(ISNUMBER(RIGHT(A1,1)+0),"",RIGHT(A1,1))

If this post helps click Yes
---------------
Jacob Skaria


"Benjamin" wrote:

I want to strip the last character from a cell, but only if it is a number.
0040:P0200C would return C
040:PT1C would return C
0040:P202 wouldn't return anything or null



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default How do I - Strip last letter from field

.... or you could simplify to =IF(ISNUMBER(RIGHT(A1)+0),"",RIGHT(A1))
--
David Biddulph

"Jacob Skaria" wrote in message
...
Try the below formula with the data in cell A1

=IF(ISNUMBER(RIGHT(A1,1)+0),"",RIGHT(A1,1))

If this post helps click Yes
---------------
Jacob Skaria


"Benjamin" wrote:

I want to strip the last character from a cell, but only if it is a
number.
0040:P0200C would return C
040:PT1C would return C
0040:P202 wouldn't return anything or null





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
How can you strip the time of day out of a date field Ron Excel Discussion (Misc queries) 3 April 19th 06 07:25 PM
Strip Out Time HeartSA New Users to Excel 2 October 13th 05 08:39 PM
column header changed from letter to number, how return to letter Ron Excel Discussion (Misc queries) 2 May 9th 05 08:34 PM
TAB STRIP icebreaker914 Excel Discussion (Misc queries) 1 April 16th 05 01:24 PM
tab strip icebreaker914 New Users to Excel 1 April 16th 05 01:24 PM


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