Getting average value from several tables

eirikdaude

Board Regular
Joined
Nov 26, 2013
Messages
93
Office Version
  1. 365
Platform
  1. Windows
I have a spreadsheet in which I have several worksheets, each containing a table.

I then want to add another worksheet / table, in which I collate the data from the different sheets.

Atm, it looks something like this:
1611923293954.png


The formula in C13 is

Excel Formula:
=(INDEX(Karbon[For.mnd.];MATCH([@Målepunkt];Karbon[Målepunkt];0);1)+INDEX(Anodemontasje[For.mnd.];MATCH([@Målepunkt];Anodemontasje[Målepunkt];0);1)+INDEX(Elektrolyse[For.mnd.];MATCH([@Målepunkt];PFA[Målepunkt];0);1)+INDEX(PFA[For.mnd.];MATCH([@Målepunkt];Tya[Målepunkt];0);1))/4

As you can see, for each table I collect data from, I use the formula

Excel Formula:
INDEX(Karbon[For.mnd.];MATCH([@Målepunkt];Karbon[Målepunkt];0);1)

which I then sum for all the tables I want to collect data from, and divide by the how many tables I collect from to get an average.

As you can see, this is already a pretty cumbersome formula when just collecting from four tables, as the number grows it'll get even more so. Is there some simpler way to handle this? Is Power Query an option (I have very little experience with it)?
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,214,593
Messages
6,120,435
Members
448,961
Latest member
nzskater

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