Hi All,
I recently discovered a way to use the aggregate function in conjunction with index / match to identify min / max values for like records in a table (i.e. if I have a table of animals and their weights, I could use this function to identify the smallest dog, or the largest cat, etc.).
This is what the formula looks like:
Where column A is my criteria column (dog, cat, etc.) and column B is my values column (e.g. height).
The formula works great, I've already implemented it a few times with success. But it bothers me that I don't understand how a certain part of it works. There are two places in the formula where it appears to declare array variables (B4:Index(....) & A4:Index(....)). I've tried to find documentation on how this works, but haven't had any luck yet.
Any ideas?
Thank you,
Bruce
PS - This is where I discovered the formula in the first place:
https://stackoverflow.com/questions/36953520/finding-minimum-value-in-indexmatch-array-excel
I recently discovered a way to use the aggregate function in conjunction with index / match to identify min / max values for like records in a table (i.e. if I have a table of animals and their weights, I could use this function to identify the smallest dog, or the largest cat, etc.).
This is what the formula looks like:
Code:
=AGGREGATE(15, 6, B4:INDEX(B:B, MATCH(1E+99, B:B))/((A4:INDEX(A:A, MATCH(1E+99,B:B))=G1)),1)
Where column A is my criteria column (dog, cat, etc.) and column B is my values column (e.g. height).
The formula works great, I've already implemented it a few times with success. But it bothers me that I don't understand how a certain part of it works. There are two places in the formula where it appears to declare array variables (B4:Index(....) & A4:Index(....)). I've tried to find documentation on how this works, but haven't had any luck yet.
Any ideas?
Thank you,
Bruce
PS - This is where I discovered the formula in the first place:
https://stackoverflow.com/questions/36953520/finding-minimum-value-in-indexmatch-array-excel
Last edited: