Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default spliting text


I have in A1 "CNAN6"

I want to strip it into 2 parts.

CNA

and

N6

The N6 is found using =RIGHT(A1,2) so thats easy. But how do I get the
CNA part. Also note that this is not always going to be only 5
characters long. It could be 10. BUT the last two characters will
always be split away from the rest of the string.

Thanks for the help.


--
sungen99
------------------------------------------------------------------------
sungen99's Profile: http://www.excelforum.com/member.php...fo&userid=9144
View this thread: http://www.excelforum.com/showthread...hreadid=538024

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default spliting text


got it... thanks

--
sungen9
-----------------------------------------------------------------------
sungen99's Profile: http://www.excelforum.com/member.php...nfo&userid=914
View this thread: http://www.excelforum.com/showthread.php?threadid=53802

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default spliting text

=right(a1,2)
=left(a1,len(a1)-2)

--
Regards,
Tom Ogilvy


"sungen99" wrote:


I have in A1 "CNAN6"

I want to strip it into 2 parts.

CNA

and

N6

The N6 is found using =RIGHT(A1,2) so thats easy. But how do I get the
CNA part. Also note that this is not always going to be only 5
characters long. It could be 10. BUT the last two characters will
always be split away from the rest of the string.

Thanks for the help.


--
sungen99
------------------------------------------------------------------------
sungen99's Profile: http://www.excelforum.com/member.php...fo&userid=9144
View this thread: http://www.excelforum.com/showthread...hreadid=538024


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
Spliting a cell Jim Excel Discussion (Misc queries) 2 September 3rd 09 07:39 PM
Spliting and combing text down rows in Excel 2007 Glenn in London Excel Discussion (Misc queries) 1 August 17th 09 10:16 PM
Spliting dimensions down PSM[_17_] Excel Worksheet Functions 3 July 20th 09 07:00 PM
Spliting 1 Text field into 3 Janet BN Excel Discussion (Misc queries) 4 February 5th 07 12:36 AM
Spliting name Brian Excel Discussion (Misc queries) 3 November 21st 06 09:35 PM


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