9 tables, list values that r in every list?

rexcel3

New Member
Joined
Apr 16, 2022
Messages
44
Office Version
  1. 2021
Platform
  1. Windows
is it possible to list values that appear in every table?

tab 1 name: "List 1", contains "tabell1"
tab 2 name: "List 2", contains "tabell2"
.......
tab 9 name: "List 9", contains "tabell9"

table headers r called Motherboards

i tried consulting with chatgpt without success.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
One of solutions could be using Power Query - go into Data->Get and transform data->get data _>from other sources->blank query
PQ editor will open Go Home->advanced editor and replace empty query there with:
Power Query:
let
    t1_t = Excel.CurrentWorkbook(){[Name="tabell1"]}[Content],
    t2_t = Excel.CurrentWorkbook(){[Name="tabell2"]}[Content],
    t3_t = Excel.CurrentWorkbook(){[Name="tabell3"]}[Content],
    t4_t = Excel.CurrentWorkbook(){[Name="tabell4"]}[Content],
    t5_t = Excel.CurrentWorkbook(){[Name="tabell5"]}[Content],
    t6_t = Excel.CurrentWorkbook(){[Name="tabell6"]}[Content],
    t7_t = Excel.CurrentWorkbook(){[Name="tabell7"]}[Content],
    t8_t = Excel.CurrentWorkbook(){[Name="tabell8"]}[Content],
    t9_t = Excel.CurrentWorkbook(){[Name="tabell9"]}[Content],
    Appended = Table.Combine({t1_t, t2_t, t3_t, t4_t, t5_t, t6_t, t7_t, t8_t, t9_t}),
    Changed = Table.TransformColumnTypes(Appended,{{"Motherboards", type text}}),
    Grouped = Table.Group(Changed, {"Motherboards"}, {{"Count", each Table.RowCount(_), Int64.Type}}),
    Filtered = Table.SelectRows(Grouped, each ([Count] = 9)),
    Removed = Table.RemoveColumns(Filtered,{"Count"})
in
    Removed


If in real life there is more tables and worksheets* , then the solution could be to prepare the PQ in separate workbook and "import" all tables from the original file.

*) (if possible please don't call them tabs)
 
Upvote 0
One of solutions could be using Power Query - go into Data->Get and transform data->get data _>from other sources->blank query
PQ editor will open Go Home->advanced editor and replace empty query there with:
Power Query:
let
    t1_t = Excel.CurrentWorkbook(){[Name="tabell1"]}[Content],
    t2_t = Excel.CurrentWorkbook(){[Name="tabell2"]}[Content],
    t3_t = Excel.CurrentWorkbook(){[Name="tabell3"]}[Content],
    t4_t = Excel.CurrentWorkbook(){[Name="tabell4"]}[Content],
    t5_t = Excel.CurrentWorkbook(){[Name="tabell5"]}[Content],
    t6_t = Excel.CurrentWorkbook(){[Name="tabell6"]}[Content],
    t7_t = Excel.CurrentWorkbook(){[Name="tabell7"]}[Content],
    t8_t = Excel.CurrentWorkbook(){[Name="tabell8"]}[Content],
    t9_t = Excel.CurrentWorkbook(){[Name="tabell9"]}[Content],
    Appended = Table.Combine({t1_t, t2_t, t3_t, t4_t, t5_t, t6_t, t7_t, t8_t, t9_t}),
    Changed = Table.TransformColumnTypes(Appended,{{"Motherboards", type text}}),
    Grouped = Table.Group(Changed, {"Motherboards"}, {{"Count", each Table.RowCount(_), Int64.Type}}),
    Filtered = Table.SelectRows(Grouped, each ([Count] = 9)),
    Removed = Table.RemoveColumns(Filtered,{"Count"})
in
    Removed


If in real life there is more tables and worksheets* , then the solution could be to prepare the PQ in separate workbook and "import" all tables from the original file.

*) (if possible please don't call them tabs)
this is overcomplicated for me.

i managed to copy all values to a list -> remove duplicates -> use count if formula.
 
Upvote 0
Sounds like you found a method to accomplish your goal. Here's a formula that should work too:

Book1
ABCDEFGH
1
2MotherboardsMotherboardsMotherboardsmotherboards
3aazz
4bbya
5ccxy
6dfcb
7egbx
8fhac
9
10Common
11a
12b
13c
14
Sheet1
Cell Formulas
RangeFormula
B11:B13B11=LET(a,tabell1[Motherboards],sh,SEQUENCE(,4),sv,TRANSPOSE(sh)^0,b,MMULT(SIGN(COUNTIF(INDIRECT("tabell"&sh&"[Motherboards]"),a)),sv),FILTER(a,b=4))
Dynamic array formulas.


The 4 tables are all named tabell1, tabell2, tabell3, and tabell4. For your workbook, just change the 4 to a 9 in the formula (2 places).
 
Upvote 0
What method did you use to:
i managed to copy all values to a list
If the task was "do it just once" then even manual copy is perfect and quite quick solution.
It could be also done with new excel functions, but I'm not sure if they are available in 2021 or only in 365 version, that's why I showed PQ approach (simple not optimized, basically - clicked-in PQ interface :-).
 
Upvote 0
Sounds like you found a method to accomplish your goal. Here's a formula that should work too:

Book1
ABCDEFGH
1
2MotherboardsMotherboardsMotherboardsmotherboards
3aazz
4bbya
5ccxy
6dfcb
7egbx
8fhac
9
10Common
11a
12b
13c
14
Sheet1
Cell Formulas
RangeFormula
B11:B13B11=LET(a,tabell1[Motherboards],sh,SEQUENCE(,4),sv,TRANSPOSE(sh)^0,b,MMULT(SIGN(COUNTIF(INDIRECT("tabell"&sh&"[Motherboards]"),a)),sv),FILTER(a,b=4))
Dynamic array formulas.


The 4 tables are all named tabell1, tabell2, tabell3, and tabell4. For your workbook, just change the 4 to a 9 in the formula (2 places).
is doesnt work for me. im getting #referens!
my excel 2021 is in swedish.
=LET(a;Tabell1[Motherboards];sh;SEKVENS(;;4);sv;TRANSPONERA(sh)^0;b;MMULT(TECKEN(ANTAL.OM(INDIREKT("tabell"&sh&"[Motherboards]");a));sv);FILTER(a;b=4))

1729619815412.png
 
Upvote 0
im getting #KALK! because Tabell4 was named Tabell5.

whats #KALK! ?
 
Upvote 0
I think you have an extra delimiter. My formula had:

SEQUENCE(,4)

and yours has

SEKVENS(;;4)

Using the formula translator at Translator I get this:

Excel Formula:
=LET(a;tabell1[Motherboards];sh;SEKVENS(;4);sv;TRANSPONERA(sh)^0;b;MMULT(TECKEN(ANTAL.OM(INDIREKT("tabell"&sh&"[Motherboards]");a));sv);FILTER(a;b=4))
 
Upvote 0
I think you have an extra delimiter. My formula had:

SEQUENCE(,4)

and yours has

SEKVENS(;;4)

Using the formula translator at Translator I get this:

Excel Formula:
=LET(a;tabell1[Motherboards];sh;SEKVENS(;4);sv;TRANSPONERA(sh)^0;b;MMULT(TECKEN(ANTAL.OM(INDIREKT("tabell"&sh&"[Motherboards]");a));sv);FILTER(a;b=4))
im still getting calc error. im so sad.
 
Upvote 0

Forum statistics

Threads
1,223,927
Messages
6,175,444
Members
452,642
Latest member
acarrigan

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