Arrays in the Large function

charlie1105

Board Regular
Joined
Oct 16, 2007
Messages
182
Hi all

Short story - I'm trying to restrict the array used in the large function, so that it only considers certain rows (based on the value in another column). So if Column A contains my "Category" and Col B contains my values, I want to use large to return the kth item where the category = "some specific value"

If someone could help me with this step, I think I can take it from here - anyone who's interested, this is what my end goal is..

I'm building a dashboard, so that you can select the category from a drop down list (in cell), you'll then get a list generated with the top ten items. I'm pretty sure I can work out the index match to get the item name (col C) from the value (there are no duplicate values) which is returned by large, just stuck on restricting the array in large to only consider those values of a given category!

Cheers

Charlie
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
To return the largest value, assuming that D2 contains the category of interest, try...

=LARGE(IF(A2:A100=D2,B2:B100),1)

...confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!

xl-central.com
 
Upvote 0
Thanks for that - just what I'm looking for - so obvious now, I need to brush up on my array formulas!
 
Upvote 0

Forum statistics

Threads
1,214,638
Messages
6,120,674
Members
448,977
Latest member
moonlight6

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