Index/Match Formula

SimonGeoghegan

Board Regular
Joined
Nov 5, 2013
Messages
68
Hi All,

I have a table with a number of risks in it across 50+ departments. I have a formula which provides me with the top 5 risks (based on risk score) across the entire building as a whole, however, I want to adapt this so that when I change the department via a combo box with a Cell Link and subsequent named range of "Department_Description" which just runs an index against the cell link to give me the name of the department.

The formula I have so far is:

=INDEX(Risks!$D$2:$D$2625,MATCH(1,INDEX((Risks!$E$2:$E$2625=LARGE(Risks!$E$2:$E$2625,ROWS(D$1:D1)))*(COUNTIF(D$1:D1,Risks!$D$2:$D$2625)=0),),0))

For the above:

Column D = column with Risk Names
Column E = column with Risk Scores

The column contain Department Names is Column A

This works brilliantly but I need to try and take it to the next level now however I don't have the knowledge to get to that stage.

If anyone can assist/advise on how I may be able to amend the formula above to take into account a department selection, I would very much appreciate it!

Hopefully it can be achieved!

Regards,
Simon
 

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
Re: Help with Index/Match Formula

Hi Aladin,

Yes, I want to select a department from the combo box and then the formula show me the top risk for that department (I'd then drag the formula down so that it changed to give me the 2nd risk, 3rd risk, 4th etc.)
 
Upvote 0
Re: Help with Index/Match Formula

Hi Aladin,

Yes, I want to select a department from the combo box and then the formula show me the top risk for that department (I'd then drag the formula down so that it changed to give me the 2nd risk, 3rd risk, 4th etc.)

Row\Col
A​
D​
E​
F​
G​
H​
I​
1​
DepRiskRisk Scoresales
6
2​
salesr-1
2000
r-6
6000
3​
salesr-9
2000
r-2
6000
4​
salesr-4
3000
r-3
4000
5​
salesr-3
4000
r-4
3000
6​
admr-2
4000
r-1
2000
7​
admr-6
2000
r-9
2000
8​
admr-8
2000
9​
accountingr-8
1000
10​
salesr-6
6000
11​
accountingr-9
6000
12​
salesr-2
6000
13​
admr-5
3000

In I1 control+shift+enter, not just enter:

=SUM(IF($A$2:$A$13=$H$1,IF($E$2:$E$13>=LARGE(IF($A$2:$A$13=$H$1,$E$2:$E$13),MIN(5,COUNT(IF($A$2:$A$13=$H$1,$E$2:$E$13)))),1)))

In H2 control+shift+enter, not just enter, and copy down:

=IF($I2="","",INDEX($D$2:$D$13,SMALL(IF($A$2:$A$13=$H$1,IF($E$2:$E$13=$I2,ROW($A$2:$A$13)-ROW($A$2)+1)),COUNTIFS($I$2:I2,I2))))

In I2 control+shift+enter, not just enter, and co[y down:

=IF(ROWS($I$2:I2)>$I$1,"",LARGE(IF($A$2:$A$13=$H$1,$E$2:$E$13),ROWS($I$2:I2)))
 
Upvote 0
Re: Help with Index/Match Formula

Also, if anyone can let me know how I mark the thread as resolved, i'll certainly do this! :)
 
Upvote 0

Forum statistics

Threads
1,215,375
Messages
6,124,578
Members
449,174
Latest member
chandan4057

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