How to Find and Replace Multiple Values in Excel - All at once

preview_player
Показать описание
In this video you will learn how you can find and replace multiple values in Excel. i have used advance query in the video you can copy that from pinned Comment - and replace in your advance query section. watch full video to learn in detail.
Рекомендации по теме
Комментарии
Автор

et BulkReplace = (DataTable as table, FindReplaceTable as table, DataTableColumn as list) =>
let
FindReplaceList = Table.ToRows(FindReplaceTable),
Counter = Table.RowCount(FindReplaceTable),
BulkReplaceValues = (DataTableTemp, n) =>
let
ReplaceTable = Table.ReplaceValue(
DataTableTemp,
if FindReplaceList{n}{0} = null then "" else FindReplaceList{n}{0},
if FindReplaceList{n}{1} = null then "" else FindReplaceList{n}{1},
Replacer.ReplaceText,
DataTableColumn
)
in
if n = Counter - 1
then ReplaceTable
else @BulkReplaceValues(ReplaceTable, n + 1),
Output = BulkReplaceValues(DataTable, 0)
in
Output
in
BulkReplace

LernenTech
Автор

Thx a lot. It helped me too much. Appreciated :)

tigerking
Автор

Can this replace vale’s within the cells? For example, if you wanted to replace a certain domain in the list of emails with a different domain.

smerdonw
Автор

Hello
Can you please tell how to search single value from multiple workbooks open at a time.

deepaliparochey
Автор

Hi, do you know why I might be getting an error of "We cannot convert the value "Location" to type List? it says Value=Location Type=[Type]. Thank you

caritorres
Автор

Hi, How to find different names and replaces in entire workbook in one shot, which are not in any order ?

PrajwalTejaswi
Автор

We have error for code Expression.SyntaxError: Token Eof expected.

rajkumar
Автор

Correct Query -

let BulkReplace = (DataTable as table, FindReplaceTable as table, DataTableColumn as list) =>
let
FindReplaceList = Table.ToRows(FindReplaceTable),
Counter = Table.RowCount(FindReplaceTable),
BulkReplaceValues = (DataTableTemp, n) =>
let
ReplaceTable = Table.ReplaceValue(
DataTableTemp,
if FindReplaceList{n}{0} = null then "" else FindReplaceList{n}{0},
if FindReplaceList{n}{1} = null then "" else FindReplaceList{n}{1},
Replacer.ReplaceText,
DataTableColumn
)
in
if n = Counter - 1
then ReplaceTable
else @BulkReplaceValues(ReplaceTable, n + 1),
Output = BulkReplaceValues(DataTable, 0)
in
Output
in
BulkReplace

santoshpinku
Автор

= BulkR(#"Changed Type", Table2, {"wrong answer"})

rahulgnaik
Автор

so much complicated anybody can get error easily

theblank