handelling hindi numerics via power query

egyblind

New Member
Joined
Dec 4, 2020
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
hello dears

please i've data collected from online users
i want to apply some steps for data cleaning to load data faster without human review as possible
one of main problems: numbers input
some users input hindi numbers while i need all number to be arabic
example:
Hindi: ٠١٢ Arabic: 012

also which type to keep 0 as it phone number


any guide to use for data cleaning using power query?
thanks very much
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
How about adding a new column and using the List.Accumulate function to replace numbers from 0 to 9?
Needs to be adapted to your source data.

Power Query:
let
    Source = #table(
      {"Column"},
      {
        {"٠١٢"},
        {"٠١٢١٢"},
        {"٠١٢٢٠"}
      }
    ), // Sample table
    Find = {"٠", "١", "٢"}, // This is 0, 1, and 2. Add other numbers here in Hindi
    Replace = {"0", "1", "2"}, // Add other numbers here as well

    Result = Table.AddColumn(Source, "Custom", each List.Accumulate(
                List.Numbers(0, List.Count(Find)),
                [Column],
                (A, B) => Text.Replace(A, Find{B}, Replace{B}))
            )
in
    Result

1685658642372.png
 
Upvote 0

Forum statistics

Threads
1,223,952
Messages
6,175,593
Members
452,654
Latest member
mememe101

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