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
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