Solved

Excel - remove all characters in a cell/column until a numeric character is found

Posted on 2013-12-19
6
458 Views
Last Modified: 2013-12-19
I have a column that has both text and numbers like this:

Jeff - 28pts

I want to remove the "Jeff - " and just have the "28pts" show in the cell/column.

Also, if the cell/column does not have any numeric characters, I want to just remove all text.

Any help is appreciated--thanks!
0
Comment
Question by:saturation
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 19

Expert Comment

by:jss1199
ID: 39729550
You're looking for MID.

If column A contains

                     A                                                           C                                             D
    ====================       ======================    ==============
1   dfgdgfdgf12345                               D1=MID(A1, 6, LEN(A1))             12345
2   DFGGKJD1234567890ABCD         D2=MID(A2, 6, LEN(A2))             1234567890ABCD
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39729696
Can you give a few more examples of "with numbers"

and also some examples of "without numbers"
0
 
LVL 23

Expert Comment

by:NBVC
ID: 39730014
Perhaps:

=RIGHT(A2,LEN(A2)-MIN(FIND(0,SUBSTITUTE(A2,{1,2,3,4,5,6,7,8,9},0)&0))+1)

where A2 is first cell to check.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:saturation
ID: 39730217
Here's another example:

C5 (cell/column)
Jeff - 95pts
Michael - 100pts
Stuart - 5pts

I need it to look like

C5 (cell/column)
95pts
100pts
5pts
0
 
LVL 23

Accepted Solution

by:
NBVC earned 500 total points
ID: 39730270
Try my formula...

or if the dash is there as a separator, you can use:

=IFERROR(TRIM(MID(A2,FIND("-",A2)+1,255)),"")

when there is no dash, you will get a blank.
0
 

Author Closing Comment

by:saturation
ID: 39730410
Perfect.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

617 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