A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Formula Needed to Omit Characters



 
 
Thread Tools Display Modes
  #1  
Old February 17th, 2006, 03:03 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default Formula Needed to Omit Characters


Is there a formula that would recognize and omit specific characters
within a field?

Example:

Data Field has the following 9 characters "R0502AA01".

Only the following 7 characters: "R0502--01" should be picked up or
recognized.

What formula will pick up the 1st-5th and the 8th-9th characters and
bypass the 6th & 7th characters?

Addie


--
addie
------------------------------------------------------------------------
addie's Profile: http://www.excelforum.com/member.php...o&userid=25526
View this thread: http://www.excelforum.com/showthread...hreadid=513674

  #2  
Old February 17th, 2006, 03:28 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default Formula Needed to Omit Characters

No sure what is meant by 'recognized'
=LEFT(A1,5)
=RIGHT(A1,2)
=MID(A1,1,5)
=SUBSTITUTE(A1,"AA","--")
Any help?
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"addie" wrote in
message ...

Is there a formula that would recognize and omit specific characters
within a field?

Example:

Data Field has the following 9 characters "R0502AA01".

Only the following 7 characters: "R0502--01" should be picked up or
recognized.

What formula will pick up the 1st-5th and the 8th-9th characters and
bypass the 6th & 7th characters?

Addie


--
addie
------------------------------------------------------------------------
addie's Profile:
http://www.excelforum.com/member.php...o&userid=25526
View this thread: http://www.excelforum.com/showthread...hreadid=513674



  #3  
Old February 17th, 2006, 03:29 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default Formula Needed to Omit Characters

And you could experiment with Data | Text to Columns
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"addie" wrote in
message ...

Is there a formula that would recognize and omit specific characters
within a field?

Example:

Data Field has the following 9 characters "R0502AA01".

Only the following 7 characters: "R0502--01" should be picked up or
recognized.

What formula will pick up the 1st-5th and the 8th-9th characters and
bypass the 6th & 7th characters?

Addie


--
addie
------------------------------------------------------------------------
addie's Profile:
http://www.excelforum.com/member.php...o&userid=25526
View this thread: http://www.excelforum.com/showthread...hreadid=513674



  #4  
Old February 17th, 2006, 03:43 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default Formula Needed to Omit Characters


Addie,

As long as your data is always in the same format (9 characters with
the 6th & 7th being the data to omit),

=SUBSTITUTE(A1,MID(A1,6,2),"")

HTH

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=513674

  #5  
Old February 17th, 2006, 03:53 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default Formula Needed to Omit Characters


Another option, if your numbers are inconsitently formatted where some
have 1 letter in the 6th position, 2 letters in 6th & 7th or no letters
then try,

=CHOOSE(LEN(A1)-6,A1,SUBSTITUTE(A1,MID(A1,6,1),""),SUBSTITUTE(A1,M ID(A1,6,2),""))

This only works if the smallest number of characters you'll have is 7.

HTH

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=513674

  #6  
Old February 17th, 2006, 04:02 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default Formula Needed to Omit Characters


Steve,

Thanks. You were a great help!

Addie


--
addie
------------------------------------------------------------------------
addie's Profile: http://www.excelforum.com/member.php...o&userid=25526
View this thread: http://www.excelforum.com/showthread...hreadid=513674

  #7  
Old February 17th, 2006, 04:55 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default Formula Needed to Omit Characters


Glad it was what you needed.

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=513674

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Match then lookup Tenacity Worksheet Functions 10 December 3rd, 2005 05:30 AM
Formula needed. Beertje General Discussion 7 November 29th, 2005 09:54 AM
Formula needed Worksheet Functions 2 November 25th, 2005 05:07 PM
Formula checking multiple worksheets sonic-the-mouse Worksheet Functions 11 June 6th, 2005 06:37 PM
Remove characters from a text string using a formula duncrbrt General Discussion 1 June 4th, 2005 02:19 AM


All times are GMT +1. The time now is 09:22 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.