Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Conversion to Text file format error | Excel Discussion (Misc queries) | |||
How do I copy text from one workbook to another | Excel Discussion (Misc queries) | |||
Grid column display text trimming | Excel Discussion (Misc queries) | |||
Text to Columns in excel for delimited files - allow trimming opt. | New Users to Excel | |||
Read Text File into Excel Using VBA | Excel Discussion (Misc queries) |