Find any stand alone letter and replace with ""

Stuepef

Board Regular
Joined
Oct 23, 2017
Messages
128
Office Version
  1. 2021
Platform
  1. Windows
I have a spreadsheet where users can paste employee census information with varying formats. Is there a formula that would locate any stand alone letter (A-Z) within a cell and replace it with ""? Here is how the names can be formatted:

[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]Washington,Richard Y (Last,First)[/TD]
[/TR]
[TR]
[TD]White, Julie K (Last, First MI)[/TD]
[/TR]
[TR]
[TD]Brown,Tony F (Last,First MI)[/TD]
[/TR]
[TR]
[TD]Joan T Franks (First MI Last)[/TD]
[/TR]
[TR]
[TD]Bobby U Flarry (First Last)[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Desired Result:
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]Washington,Richard[/TD]
[/TR]
[TR]
[TD]White, Julie[/TD]
[/TR]
[TR]
[TD]Brown,Tony[/TD]
[/TR]
[TR]
[TD]Joan Franks[/TD]
[/TR]
[TR]
[TD]Bobby Flarry[/TD]
[/TR]
</tbody>[/TABLE]

Thank you!
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Possibly:

=REPLACE(A1,AGGREGATE(15,6,SEARCH(" "&CHAR(ROW(INDIRECT("65:90")))&" ",A1&" A "),1),2,"")

but these kind of formulas always have issues when the data is formatted inconsistently, with extra spaces, commas, periods, etc.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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