Remove numbers from alphanumeric from a cells and display only Text

sobinp

New Member
Joined
Mar 1, 2019
Messages
1
My Loaded sheet in the power query has data given as input in the below example I need formula to convert the data to another sheet by removing any thing other than alphabet from a cell and display it

Note : The input might contain Number, Special character or spaces before the actual text.


for example


Input


1. Toyota
2. Ford
3. Nissan
Toyota
Honda
4. Fiat

Output


Toyota
Ford
Nissan
Toyota
Honda
Fiat
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
is that what you want?

raw dataNames
1. ToyotaToyota
2. FordFord
3. NissanNissan
ToyotaToyota
HondaHonda
4. FiatFiat


Code:
[SIZE=1]let
    C2R = List.Transform({32..64,91..96,123..126}, each Character.FromNumber(_)),
    Source = Excel.CurrentWorkbook(){[Name="Table3"]}[Content],
    Names = Table.AddColumn(Source, "Names", each Text.Trim([raw data],C2R)),
    ROC = Table.SelectColumns(Names,{"Names"})

in
    ROC[/SIZE]
 
Upvote 0

Forum statistics

Threads
1,215,474
Messages
6,125,024
Members
449,204
Latest member
LKN2GO

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