#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 577
Default Trimming text

I need some help trimming text.

Dilemma: I want to remove the number coding in front of the state code so
that in column B in range B1:B3, I have California/Ohio/Maryland without the
numbers. How do I trim the first four characters in the cell range A1:A3?

Col A
001-California
002-Ohio
003-Maryland

Col B - desired result
California
Ohio
Maryland

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default Trimming text

=MID(A1,FIND("-",A1)+1,255)

and copy down.

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Scott" wrote in message
...
I need some help trimming text.

Dilemma: I want to remove the number coding in front of the state code so
that in column B in range B1:B3, I have California/Ohio/Maryland without
the
numbers. How do I trim the first four characters in the cell range A1:A3?

Col A
001-California
002-Ohio
003-Maryland

Col B - desired result
California
Ohio
Maryland



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Trimming text

Scott

Try this:

=RIGHT(A1,LEN(A1)-4)

bob

"Scott" wrote:

I need some help trimming text.

Dilemma: I want to remove the number coding in front of the state code so
that in column B in range B1:B3, I have California/Ohio/Maryland without the
numbers. How do I trim the first four characters in the cell range A1:A3?

Col A
001-California
002-Ohio
003-Maryland

Col B - desired result
California
Ohio
Maryland

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Trimming text

If your example is representative you could use DataText to ColumnsDelimited
by "-"

If you want to keep original column A just copy it to B then run the text to
columns and in step 3 select 1st column to skip.


Gord Dibben MS Excel MVP

On Fri, 15 Dec 2006 12:11:01 -0800, Scott
wrote:

I need some help trimming text.

Dilemma: I want to remove the number coding in front of the state code so
that in column B in range B1:B3, I have California/Ohio/Maryland without the
numbers. How do I trim the first four characters in the cell range A1:A3?

Col A
001-California
002-Ohio
003-Maryland

Col B - desired result
California
Ohio
Maryland


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Trimming text

Could he not just select the column and do a replace (without the quotes)
"*-" ?


"Scott" wrote in message
...
I need some help trimming text.

Dilemma: I want to remove the number coding in front of the state code so
that in column B in range B1:B3, I have California/Ohio/Maryland without
the
numbers. How do I trim the first four characters in the cell range A1:A3?

Col A
001-California
002-Ohio
003-Maryland

Col B - desired result
California
Ohio
Maryland



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
Conversion to Text file format error Rob Excel Discussion (Misc queries) 1 June 26th 06 10:33 AM
How do I copy text from one workbook to another kmb0702 Excel Discussion (Misc queries) 7 June 23rd 06 04:21 PM
Grid column display text trimming ExcellUser Excel Discussion (Misc queries) 0 December 13th 05 05:21 PM
Text to Columns in excel for delimited files - allow trimming opt. D. Young New Users to Excel 1 April 25th 05 05:06 PM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM


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

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"