Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default Extract part of a text string

Hi
I regularly import data from another program with part numbers identified in coloum A as:
R/RVI/0444
R/RVI/5362
R/VOL/3699 etc.

Is there a way of interogating the full part number and displaying only the middle three letters and the last digits with out the / between

Thanks in anticipation

Martin
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Extract part of a text string

If it's always the same number of characters in each part, then =MID(A1,3,3)&RIGHT(A1,4)
--
David Biddulph

"Martin B" wrote in message ...
Hi
I regularly import data from another program with part numbers identified in coloum A as:
R/RVI/0444
R/RVI/5362
R/VOL/3699 etc.

Is there a way of interogating the full part number and displaying only the middle three letters and the last digits with out the / between

Thanks in anticipation

Martin
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default Extract part of a text string

Thanks for the quick reponse but if possible I'd like a space between the 3 letters and the 4 digits ie RVI 0444, not RVI0444. This is because I use the result as a look up value in a database which has spaces and also as a direct print out for production who are familier a 3 letter customer code and seperate 4 digit number.
Sorry for not being more specific in my original post

Martin
"David Biddulph" <groups [at] biddulph.org.uk wrote in message ...
If it's always the same number of characters in each part, then =MID(A1,3,3)&RIGHT(A1,4)
--
David Biddulph

"Martin B" wrote in message ...
Hi
I regularly import data from another program with part numbers identified in coloum A as:
R/RVI/0444
R/RVI/5362
R/VOL/3699 etc.

Is there a way of interogating the full part number and displaying only the middle three letters and the last digits with out the / between

Thanks in anticipation

Martin
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Extract part of a text string

=MID(A1,3,3)&" "&RIGHT(A1,4)
--
David Biddulph

"Martin B" wrote in message ...
Thanks for the quick reponse but if possible I'd like a space between the 3 letters and the 4 digits ie RVI 0444, not RVI0444. This is because I use the result as a look up value in a database which has spaces and also as a direct print out for production who are familier a 3 letter customer code and seperate 4 digit number.
Sorry for not being more specific in my original post

Martin
"David Biddulph" <groups [at] biddulph.org.uk wrote in message ...
If it's always the same number of characters in each part, then =MID(A1,3,3)&RIGHT(A1,4)
--
David Biddulph

"Martin B" wrote in message ...
Hi
I regularly import data from another program with part numbers identified in coloum A as:
R/RVI/0444
R/RVI/5362
R/VOL/3699 etc.

Is there a way of interogating the full part number and displaying only the middle three letters and the last digits with out the / between

Thanks in anticipation

Martin
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default Extract part of a text string

Thanks David, I've played around with some of the other sugestions and got a result.

Have a great 2008
"David Biddulph" <groups [at] biddulph.org.uk wrote in message ...
If it's always the same number of characters in each part, then =MID(A1,3,3)&RIGHT(A1,4)
--
David Biddulph

"Martin B" wrote in message ...
Hi
I regularly import data from another program with part numbers identified in coloum A as:
R/RVI/0444
R/RVI/5362
R/VOL/3699 etc.

Is there a way of interogating the full part number and displaying only the middle three letters and the last digits with out the / between

Thanks in anticipation

Martin


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Extract part of a text string

Martin

Maybe this

=MID(A1,FIND("/",A1)+1,3)

Mike

"Martin B" wrote:

Hi
I regularly import data from another program with part numbers identified in coloum A as:
R/RVI/0444
R/RVI/5362
R/VOL/3699 etc.

Is there a way of interogating the full part number and displaying only the middle three letters and the last digits with out the / between

Thanks in anticipation

Martin

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,290
Default Extract part of a text string

Data in B5...
=SUBSTITUTE(MID(B5,FIND("/",B5,1)+1,255),"/","")
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



"Martin B"
wrote in message
Hi
I regularly import data from another program with part numbers identified in coloum A as:
R/RVI/0444
R/RVI/5362
R/VOL/3699 etc.

Is there a way of interogating the full part number and displaying only the middle three letters and the last digits with out the /
between
Thanks in anticipation
Martin

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default Extract part of a text string

If I understand your requirements try:

=SUBSTITUTE(RIGHT(A2,LEN(A2)-FIND("/",A2)),"/","")

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Martin B" wrote in message ...
Hi
I regularly import data from another program with part numbers identified in coloum A as:
R/RVI/0444
R/RVI/5362
R/VOL/3699 etc.

Is there a way of interogating the full part number and displaying only the middle three letters and the last digits with out the / between

Thanks in anticipation

Martin
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
extract text from string AskExcel Excel Worksheet Functions 2 October 9th 07 06:54 AM
How do I extract part of a text string Brennan Excel Discussion (Misc queries) 2 November 28th 06 07:26 PM
Extract text string using MID Turk Excel Worksheet Functions 5 October 11th 06 06:39 PM
Extract text from String Dan Excel Worksheet Functions 8 July 1st 06 12:39 PM
Extract Part of String [email protected] Excel Worksheet Functions 1 June 9th 05 08:33 AM


All times are GMT +1. The time now is 08:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"