Solved

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

Posted on 2013-12-19
6
452 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
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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

777 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