Aggregating based on multiple conditions

SiddharthK

New Member
Joined
Jan 13, 2018
Messages
1
Hello all,

I am trying to summarise Value by IND (column B) and summarise in the 2nd table (columns F - column M). The query I am trying is to match 2 criteria - IND & Value <= value in column E. So , cell F3 & G3 has the count of values for Beta with Value <= 1.2 & Average Value for cases with Value <= 1.2. The main table is Table 1 (column - column C) and summary table is table 2 (columns F - column M). The table sample is as below.

Please help.

Regards

[TABLE="width: 865"]
<colgroup><col><col><col span="11"></colgroup><tbody>[TR]
[TD][/TD]
[TD]IND[/TD]
[TD]Value[/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 2"] Beta[/TD]
[TD="colspan: 2"] Alpha[/TD]
[TD="colspan: 2"] Property[/TD]
[TD="colspan: 2"] Gamma[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Alpha[/TD]
[TD="align: right"]2.7[/TD]
[TD][/TD]
[TD]Value[/TD]
[TD]Cnt N[/TD]
[TD]Avg Value[/TD]
[TD]Cnt N[/TD]
[TD]Avg Value[/TD]
[TD]Cnt N[/TD]
[TD]Avg Value[/TD]
[TD]Cnt N[/TD]
[TD]Avg Value[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Gamma[/TD]
[TD="align: right"]1.9[/TD]
[TD][/TD]
[TD]1.2[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Gamma[/TD]
[TD="align: right"]1.8[/TD]
[TD][/TD]
[TD]1.3[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Alpha[/TD]
[TD="align: right"]1.8[/TD]
[TD][/TD]
[TD]1.4[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Alpha[/TD]
[TD="align: right"]2.6[/TD]
[TD][/TD]
[TD]1.5[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Beta[/TD]
[TD="align: right"]2.5[/TD]
[TD][/TD]
[TD]1.6[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Gamma[/TD]
[TD="align: right"]1.9[/TD]
[TD][/TD]
[TD]1.7[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Alpha[/TD]
[TD="align: right"]2[/TD]
[TD][/TD]
[TD]1.8[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Gamma[/TD]
[TD="align: right"]2.4[/TD]
[TD][/TD]
[TD]1.9[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Gamma[/TD]
[TD="align: right"]2[/TD]
[TD][/TD]
[TD]2.0[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Alpha[/TD]
[TD="align: right"]2.7[/TD]
[TD][/TD]
[TD]2.1[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Alpha[/TD]
[TD="align: right"]2.6[/TD]
[TD][/TD]
[TD]2.2[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Gamma[/TD]
[TD="align: right"]2.3[/TD]
[TD][/TD]
[TD]2.3[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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