Use AverageIFS to find data in a certain column before taking the average of another column

Jason12345

New Member
Joined
Dec 16, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi

I have a set of data conduit 1,2,3
1639694873918.png


I need to search across each conduit number to see if a particular conduit is there. If the conduit is found in either spot. it needs to then take the average of the the Cable Area.
Note: there are three categories due to cables running through multiple conduits so the conduits have been split up.
Note. there will be instances where the same number for example 8 will be displayed in all three conduits.

On a new sheet I have tried the following:
1639695180484.png

Where is says average:
=AVERAGE(IF('20175858_A2_DEVICE'!I:I='Conduit ratio'!B42,'20175858_A2_DEVICE'!$L:$L,""),IF('20175858_A2_DEVICE'!J:J='Conduit ratio'!B42,'20175858_A2_DEVICE'!$L:$L,""),IF('20175858_A2_DEVICE'!K:K='Conduit ratio'!B42,'20175858_A2_DEVICE'!$L:$L,""))

It goes to the previous page to find the conduit location and and searches for the number and then takes the average across them. How ever it has come back incorrect given the the correct answer is 1.98745 and NOT 1.8947

My second attempt was to do AVERAGEIFS:
=AVERAGEIFS('20175858_A2_DEVICE'!L156:L5357,'20175858_A2_DEVICE'!I:I,'Conduit ratio'!G42,'20175858_A2_DEVICE'!J:J,'Conduit ratio'!G42,'20175858_A2_DEVICE'!K:K,'Conduit ratio'!G42)
However when doing average ifs where the cable Area is the average condition and then setting each conduit column as the criteria but I keep getting
1639695637407.png


Not sure where I am going wrong or if what I am trying to achieve is possible.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Welcome to the MrExcel forum!

It's hard to tell exactly what you want, since you're not showing all of your data, and what you do have doesn't show the rows/columns so that we can see how they relate to your formulas. There is a tool here called XL2BB which helps you display that. See the link in my signature or in the reply box. I use it below.

Based on your description, maybe something like this:

Book3
ABCDEFGH
1Conduit 1Conduit 2Conduit 3Cable Area mm^2Conduit
21310111.33333
32111213.5
4312311
55113513.5
67514714
7159#CALC!
8216
917
10
Sheet4
Cell Formulas
RangeFormula
H2:H7H2=AVERAGE(FILTER($D$2:$D$10,($A$2:$A$10=G2)+($B$2:$B$10=G2)+($C$2:$C$10=G2)))
 
Upvote 0
Solution
Welcome to the MrExcel forum!

It's hard to tell exactly what you want, since you're not showing all of your data, and what you do have doesn't show the rows/columns so that we can see how they relate to your formulas. There is a tool here called XL2BB which helps you display that. See the link in my signature or in the reply box. I use it below.

Based on your description, maybe something like this:

Book3
ABCDEFGH
1Conduit 1Conduit 2Conduit 3Cable Area mm^2Conduit
21310111.33333
32111213.5
4312311
55113513.5
67514714
7159#CALC!
8216
917
10
Sheet4
Cell Formulas
RangeFormula
H2:H7H2=AVERAGE(FILTER($D$2:$D$10,($A$2:$A$10=G2)+($B$2:$B$10=G2)+($C$2:$C$10=G2)))

That worked. Thanks so much. Its an interesting way of doing it. I thought of a similar process but couldnt quite get it right. Thanks for your assistance.
 
Upvote 0

Forum statistics

Threads
1,214,881
Messages
6,122,074
Members
449,064
Latest member
MattDRT

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