Remove numbers after a string of text

neelymedlock

New Member
Joined
Jun 15, 2018
Messages
8
Looking for a formula to remove numbers listed after a name.

Ex

[TABLE="width: 195"]
<colgroup><col></colgroup><tbody>[TR]
[TD]Aagard, Erik 0009515[/TD]
[/TR]
[TR]
[TD]Abala, Judy 0010752[/TD]
[/TR]
[TR]
[TD]Abbey, Denis 0016052[/TD]
[/TR]
[TR]
[TD]Abbuhl, Karen 0006640[/TD]
[/TR]
[TR]
[TD]Abdelnour, Medhat 0013276

Thank you[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Are all your number exactly 7 digits?
If so, a formula like this would work:
Code:
=LEFT(A1,LEN(A1)-8)
 
Upvote 0
Okay, so it worked for A1, but then when I drag the formula down, it keeps looking at cell A1, instead of progressing to the next cell. Appreciate any help.
 
Upvote 0
Okay, so it worked for A1, but then when I drag the formula down, it keeps looking at cell A1, instead of progressing to the next cell.
The formula should automatically increment.
If you look at the formula in the next cell, does it look correct?

I suspect maybe you have the Calculations set to Manual. If you press F9, does it update the values shown?
If so, then that is the reason.
 
Upvote 0
On my sample sheet it works fine. On the true data sheet, it's the same formula in all the cells looking at A1, even when pressing F9
 
Upvote 0
On my sample sheet it works fine. On the true data sheet,
OK, so what is different about your "True" data sheet.
Is it in a different Excel format?
Where did it originate from?
Are you using a Mac version of Excel?

Try this:
Enter the formula in the first cell:
Code:
=LEFT(A1,LEN(A1)-8)
and then manually enter the incremented formula in the second cell:
Code:
=LEFT(A[COLOR=#ff0000][B]2[/B][/COLOR],LEN(A[B][COLOR=#ff0000]2[/COLOR][/B])-8)

Then, highlight BOTH of those cells at the same time, and try dragging down for all rows.
Does that work?
 
Upvote 0
Got it! The formula progressed, but the result was the same name as the first line, but I had him highlight the column with the formula and press F9 and it worked. thanks!
 
Upvote 0
Note that if your worksheet to set to Manual Calculation, you can change that to Automatic in the Options, so you do not need to press F9 every time.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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