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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
is that what you want?

[Table="width:, class:head"]
[tr=bgcolor:#FFFFFF][td=bgcolor:#5B9BD5]raw data[/td][td][/td][td=bgcolor:#70AD47]Names[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7]1. Toyota[/td][td][/td][td=bgcolor:#E2EFDA]Toyota[/td][/tr]

[tr=bgcolor:#FFFFFF][td]2. Ford[/td][td][/td][td]Ford[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7]3. Nissan[/td][td][/td][td=bgcolor:#E2EFDA]Nissan[/td][/tr]

[tr=bgcolor:#FFFFFF][td]Toyota[/td][td][/td][td]Toyota[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7]Honda[/td][td][/td][td=bgcolor:#E2EFDA]Honda[/td][/tr]

[tr=bgcolor:#FFFFFF][td]4. Fiat[/td][td][/td][td]Fiat[/td][/tr]
[/table]



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,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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