Forum Discussion
JJL4677
Jan 30, 2021Copper Contributor
Search Multiple Columns all at once to Find, Locate and return Matching Data Details (Power Query)?
Help please! What is the best, quickest and simplest method? I have a column of [default emails] on one Worksheet1; And three(3) different columns of [email_1], [email_2] and [email_3] on a dif...
SergeiBaklan
Jan 30, 2021Diamond Contributor
Thanks, with sample file it's more clear. You may simply add one more column to Names table, entire script is
let
Source = Excel.CurrentWorkbook(){[Name="Names"]}[Content],
#"Add Default Email" = Table.AddColumn(
Source,
"Default Email",
each
try List.Intersect(
{
{[Email_1],[Email_2],[Email_3]},
DefaultEmail[Default Email]
}
){0}
otherwise null
)
in
#"Add Default Email"