Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default How can I remove 5 digit from a string ?

hello
how can i remove or killed 5 digits from right side of a string ?


JN1BAUJ31Z0001807 JN1BAUJ31Z0
GM6BK1061012056 GM6BK1061

thanks in advance


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default How can I remove 5 digit from a string ?

Hi,

You can remove the 5 rightmost digiits with this

=LEFT(A1,LEN(A1)-5)

But your example show the 6 leftmost digits removed so prehaps you really mean
=LEFT(A1,LEN(A1)-6)

Mike


"Tufail" wrote:

hello
how can i remove or killed 5 digits from right side of a string ?


JN1BAUJ31Z0001807 JN1BAUJ31Z0
GM6BK1061012056 GM6BK1061

thanks in advance


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default How can I remove 5 digit from a string ?

thank you very much MIKE !

"Mike H" wrote:

Hi,

You can remove the 5 rightmost digiits with this

=LEFT(A1,LEN(A1)-5)

But your example show the 6 leftmost digits removed so prehaps you really mean
=LEFT(A1,LEN(A1)-6)

Mike


"Tufail" wrote:

hello
how can i remove or killed 5 digits from right side of a string ?


JN1BAUJ31Z0001807 JN1BAUJ31Z0
GM6BK1061012056 GM6BK1061

thanks in advance


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
remove and replace a digit... Murph New Users to Excel 3 February 4th 08 08:56 PM
Excel converts 9-digit string to sci. not. when saved as csv epen Excel Discussion (Misc queries) 1 September 20th 06 10:15 PM
last digit in string gets changed to 0 (16 characters long) Mike Milmoe Excel Discussion (Misc queries) 3 June 29th 05 03:36 PM
Return a digit in a string of numbers W M Excel Discussion (Misc queries) 5 May 11th 05 06:51 PM
How to find if a string starts with a digit galsaba Excel Worksheet Functions 1 March 4th 05 06:01 PM


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