Clean cell to just show text

dgavin

Active Member
Joined
Feb 16, 2005
Messages
302
Is there a formula that will cut any numbers or symbols out of a cell

i.e

Joe Bloggs (01-56-90)

i just want Joe Bloggs

Mr Smith017789

I just want Mr Smith

Many Thanks
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
And what about:
Tom Smyth-Jones
?
You'd want that kept as it is, wouldn't you?
 
Upvote 0
OK, that's good. Your 2 examples are very similar in that the unwanted characters are on the end of you names ... is that the case for all your data?
 
Upvote 0
Here's one way, with an array formula, entered using Ctrl-Shift-Enter:
Code:
=LEFT(A2,MIN(IF(CODE(MID(SUBSTITUTE(A2," ","^"),ROW(INDIRECT("$A$1:A"&LEN(A2))),1))>64,999,ROW(INDIRECT("$A$1:A"&LEN(A2)))))-1)

... although I'm sure someone will come up with something a little simpler.
 
Upvote 0
Or this shorter array formula :

{=LEFT(A1,MATCH(1,N(INDIRECT(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)&65536))))}

Regards
 
Upvote 0
And, this non-array formula :

=LEFT(A1,LOOKUP(2,1/(ABS(CODE(MID(UPPER(A1),ROW($1:$1024),1))-77.5)<13),ROW($1:$1024)))

Regards
 
Upvote 0

Forum statistics

Threads
1,224,570
Messages
6,179,611
Members
452,931
Latest member
The Monk

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top