Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Removing digits from exel 2007 column

Posted on 2011-09-05
5
Medium Priority
?
303 Views
Last Modified: 2012-05-12
I want to remove leading numbers from an excel column, e.g. my column is like this
1   AlcoholConcern  
2   AlcoholFocus    
3   AlcoholInfScotl
and l want it like this
AlcoholConcern  
AlcoholFocus    
AlcoholInfScotl

thanks
0
Comment
Question by:mmalik15
  • 2
  • 2
5 Comments
 
LVL 50

Accepted Solution

by:
Ingeborg Hawighorst (Microsoft MVP / EE MVE) earned 2000 total points
ID: 36483676
Hello,

You could use Text to Columns and use the Space as the delimiter

OR

use a formula like

=trim(mid(A1,find(" ",A1)+1,99))

cheers, teylyn

0
 
LVL 19

Expert Comment

by:Arno Koster
ID: 36483685
this can be done in a number of ways, easiest would be to post this formula in cell B1, assuming that the data column is column A.

=MID(A1,5,LEN(A1)-5)

Open in new window


the formula removes the first 4 characters



0
 
LVL 34

Expert Comment

by:Rob Henson
ID: 36483686
Exactly what I was about to say but my Submit didn't work for some bizarre reason.

With a slight tweak, instead of hardcoding the 99 for the length, I used LEN(A1).

Thanks
Rob H
0
 
LVL 50
ID: 36483692
@akoster, what if the numbers go into the 10s or 100s with three spaces between number and text?

@Rob, right! I like 99. It does the job in most instances and is faster to type. For longer strings I use 999 :-))
0
 
LVL 19

Expert Comment

by:Arno Koster
ID: 36483776
Well, it does the job in most instances and is faster to type. For longer number i use 6 or 7 ;-))
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question