Aggregate Function - Multiple Criteria

ExcelKid_10

Board Regular
Joined
Mar 17, 2004
Messages
87
Hello-

I am just starting to use the Aggregate Function and encountering some problems. I have a table in Excel that I am using as my data source from which I am selecting using 3 string values as criteria in my aggregation. I have been able to get percentiles calculated using aggregate but cannot get my Max/Min/Count to work using the same criteria. I have done plenty of searches and have come up blank so wondering if someone could take a look at my formula and let me know what I am doing wrong.

These ones work:
75th Percentile:
AGGREGATE(17,6,IndexData[Yield to Worst]/((IndexData[Sector Level 4]=$B$2)*(IndexData[Composite Rating]=$A4)*(IndexData[MatBucket]=$B$1)),3)

25th Percentile:
AGGREGATE(17,6,IndexData[Yield to Worst]/((IndexData[Sector Level 4]=$B$2)*(IndexData[Composite Rating]=$A4)*(IndexData[MatBucket]=$B$1)),1)

However, these ones do not and I get a #VALUE!
Count:
AGGREGATE(2,6,IndexData[Yield to Worst]/((IndexData[Sector Level 4]=$B$2)*(IndexData[Composite Rating]=$A4)*(IndexData[MatBucket]=$B$1)))

Max:
AGGREGATE(4,6,IndexData[Yield to Worst]/(IndexData[Sector Level 4]=$B$2)*(IndexData[Composite Rating]=$A4)*(IndexData[MatBucket]=$B$1))

Min:
AGGREGATE(5,6,IndexData[Yield to Worst]/((IndexData[Sector Level 4]=$B$2)*(IndexData[Composite Rating]=$A4)*(IndexData[MatBucket]=$B$1)))

Thanks in Advance for your help!
EK
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
I know this is very old but I just managed to work around the issue with MAX.

This is what I did, using the LARGE function:

=AGGREGATE(14,6,(K4:K12)/((LEFT(C4:C12,2)="LD")+(C4:C12="RAT")),1)</SPAN>

I hope this might prove useful to someone else who's been tearing their hair out!!!
 
Upvote 0

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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