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

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

Lernen Tech

4 года назад

71,144 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@LernenTech
@LernenTech - 29.05.2020 20:44

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

Ответить
@user-bj2it4pz1q
@user-bj2it4pz1q - 07.08.2023 07:31

I am still getting error ...

Ответить
@ke.sy.a
@ke.sy.a - 08.03.2023 22:56

THANKS

Ответить
@lokeshganta1663
@lokeshganta1663 - 16.08.2022 18:38

Great Video Brother and thank you!

Ответить
@rajeevyadav6112
@rajeevyadav6112 - 14.07.2022 10:12

Ok

Ответить
@smerdonw
@smerdonw - 22.05.2022 20:54

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.

Ответить
@theblank4413
@theblank4413 - 24.04.2022 05:53

so much complicated anybody can get error easily

Ответить
@tigerking3377
@tigerking3377 - 23.12.2021 03:33

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

Ответить
@tunedin000
@tunedin000 - 13.12.2021 11:46

This worked Thanks so much!

Ответить
@2505rajkumar
@2505rajkumar - 02.10.2021 08:23

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

Ответить
@rahulgnaik1297
@rahulgnaik1297 - 12.09.2021 20:50

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

Ответить
@deepaliparochey2285
@deepaliparochey2285 - 30.06.2021 10:22

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

Ответить
@PrajwalTejaswi
@PrajwalTejaswi - 11.06.2021 15:18

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

Ответить
@caritorres2891
@caritorres2891 - 19.04.2021 21:17

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

Ответить
@seyedalihosseinighafari7700
@seyedalihosseinighafari7700 - 24.03.2021 15:16

THANKSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS

Ответить
@OmyJoshh
@OmyJoshh - 10.02.2021 00:34

Thanks alot :)

Ответить
@santoshpinku01
@santoshpinku01 - 29.10.2020 12:54

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

Ответить