SUBTOTAL with Multiple Conditions

jayjavina

New Member
Joined
Feb 3, 2009
Messages
34
Hi gurus!

I would like to ask for your expertise on how I can resolve this issue of mine.
I would like to get the average of all the values under the R-E-D category on different locations.
I have tried using IF functions and SUBTOTAL but i am not getting the correct answer that i need.

Please help.

Thanks!

=IF(A1="North",SUBTOTAL(1,C8:C19,F8:F19,I8:I19),"")

Location:
R = SUBTOTAL(1,R1,R2,R3)
E = SUBTOTAL(1,E1,E2,E3)
D = SUBTOTAL(1,D1,D2,D3)

Agent NameLocationR1E1D1R2E2D2R3E3D3
Agent1North927555928797778966
Agent2East557463807668909996
Agent3West749660945963878695
Agent1South8182611006685848784
Agent2North779083728589839385
Agent3East649054856093747765
Agent1West679066636088976068
Agent2South918065636274598194
Agent3North798473986692937950
Agent1East748085879291798982
Agent2West808053767280837887
Agent3South8210071565074747358

<tbody>
</tbody>
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
For that given sample ...

- what columns/rows is it in?

- post again to show what the results for that sample would be and how that would be laid out.
 
Upvote 0
Control+shift+enter, not just enter:

=AVERAGE(IF($B$2:$B$13=M$1,IF(LEFT($C$1:$K$1)="R",$C$2:$K$13)))

where M1 houses a value like North. This formulation does not use SUBTOTAL at all. If this is not what you want, please elaborate.
 
Upvote 0

Forum statistics

Threads
1,213,497
Messages
6,113,999
Members
448,543
Latest member
MartinLarkin

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