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
Solved

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

Posted on 2013-12-19
6
453 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
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 demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

839 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