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

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
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,216,415
Messages
6,130,465
Members
449,583
Latest member
CatMama9

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