Averageif with multiple cells

kumara_faith

Well-known Member
Joined
Aug 19, 2006
Messages
922
Office Version
  1. 365
Hi,

I have the following table:

Book1
ABC
1Table 1
2DateBranchRevenue
31/1/2023Texas1,500
41/1/2023Texas
51/1/2023Texas1,354
61/1/2023Texas1,478
71/1/2023Texas
81,444
9
10Table 2
11DateBranchRevenue
121/1/2023New York1,500
131/1/2023New York1,500
141/1/2023New York
151/1/2023New York1,478
161/1/2023New York1,500
171,495
18
19Table 3
20DateBranchRevenue
211/1/2023Iowa
221/1/2023Iowa
231/1/2023Iowa
241/1/2023Iowa
251/1/2023Iowa
260
27
28Table 4
291/1/2023Summary
Sheet1
Cell Formulas
RangeFormula
C8,C26,C17C8=IFERROR(AVERAGEIF(C3:C7,">0",C3:C7),0)


Table 1-3 are the input tables. In Table 4,in cell C29, I am trying to calculate the average of cell C8, C17 and C26. The average should ignore the cell if the cell is blank or zero. In the above, the correct average is 1469. I tried using averageifs but I am not sure how to nest all the different cells in the formula. I appreciate any help.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,215,086
Messages
6,123,033
Members
449,092
Latest member
ikke

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