Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default Trim or Extract from a Text Field

Within Excel, how do I either trim the characters in a text field or extract
characters? I have a field that is in the xxxxxxyyyyxxxxx format and need
only the yyyy portion.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Trim or Extract from a Text Field

With in cell A1

If you want to extract those yyyy characters using a formula....

try this:
B1: =MID(A1,7,4)

OR...you could use Text-to-Columns:

Select the single column range of values (eg: A1:A10)
From the Excel Main Menu:
<data<text-to-columns
Check: Fixed Width
Click [Next]
Insert break points before and just after the yyyy chars (by clicking)
Click [Next]
Select the 1st column.....Click: Do not import column
Select the 3rd column.....Click: Do not import column

Then....you have a decision:
To trim the excess characters from the actual cells...Click [Finish]

To extract the yyyy chars to another location:
Set the Destination cell (eg B1)....Click [Finish]

Does that help?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"billbrandi" wrote in message
...
Within Excel, how do I either trim the characters in a text field or
extract
characters? I have a field that is in the xxxxxxyyyyxxxxx format and need
only the yyyy portion.




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
Text to Columns or TRIM? Kevin Excel Discussion (Misc queries) 2 February 5th 07 10:20 PM
Extract only numbers from an alphanumeric field in Excel? Brian Excel Discussion (Misc queries) 2 April 3rd 06 07:57 PM
Extract last name and insert into a different field. Barb Excel Worksheet Functions 8 March 6th 06 03:32 PM
text trim combine Ian Bartlett Excel Discussion (Misc queries) 4 December 14th 05 12:37 AM
Extract Portion of field into other fields Jay Excel Worksheet Functions 7 December 18th 04 02:01 AM


All times are GMT +1. The time now is 06:05 AM.

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"