Filter formula Top N values. Duplicates ranked underneath - how?

Minilin

New Member
Joined
Oct 19, 2021
Messages
31
Office Version
  1. 365
Platform
  1. Windows
Hiya,

I have a table of risks and have got them into a top 5 report which works fine as long as there aren't two risks with the same value. As this then causes a spill error as it tries to stick the two with the same value into the cells surrounding it.

I have used the following formulas (left to right) in the report:
=FILTER(Table1 [ Risk/Issue Description] ,Table1[Risk Total]=LARGE(Table1[Risk Total],B4))
=LARGE(Table1[Risk Total],B4)
=FILTER(Table1 [ Mitigation Strategy] ,Table1[Risk Total]=LARGE(Table1[Risk Total],B4))

What can I add to the above formula that would prevent this from happening?

Rank 1 and 2 could have the same risk total, I wouldn't want it going into the same cell.
 

Attachments

  • risks and issues.png
    risks and issues.png
    29.4 KB · Views: 17
  • report.png
    report.png
    6.4 KB · Views: 17

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
How about using this one formula
Excel Formula:
=index(sort(Table1[[Risk/Issue Description]:[Mitigation Strategy]],4,-1),SEQUENCE(5),{1,4,5})
 
Upvote 0
Solution
How about using this one formula
Excel Formula:
=index(sort(Table1[[Risk/Issue Description]:[Mitigation Strategy]],4,-1),SEQUENCE(5),{1,4,5})
Hi Fluff,

That works and copies across the Risk Description and Risk Total but the Mitigation Strategy info doesn't appear.

Is it possible for this to come across as well?

Cheers
 

Attachments

  • test report 1.png
    test report 1.png
    19.1 KB · Views: 5
Upvote 0
the Mitigation Strategy info doesn't appear.
That's because it's in col E which is hidden. Can you live with it in col E, or does it have to be col F?
 
Upvote 0
That's because it's in col E which is hidden. Can you live with it in col E, or does it have to be col F?
Oh my days! What a thicky. Didn't even realise I had hidden that column!

Thank you this all works perfectly. Life saver!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
You're welcome & thanks for the feedback.
Could I do the same for my Issues report?

I used the same Filter formula as I had for the risks before but I based it on the value I assigned to Low ,Medium, High priority (1,2,3) in Column L instead of the Risk Total.
 

Attachments

  • issues.png
    issues.png
    31.3 KB · Views: 5
Upvote 0
Yes you could use
Excel Formula:
=index(sort(Table1[[Risk/Issue Description]:[Priority '#]],7,-1),SEQUENCE(5),{1,7,5})
 
Upvote 0
Yes you could use
Excel Formula:
=index(sort(Table1[[Risk/Issue Description]:[Priority '#]],7,-1),SEQUENCE(5),{1,7,5})
This still seems to be returning the risks rather than the issues.

I would have expected it to be: test 2, test5 then test 7.
 

Attachments

  • issues report.png
    issues report.png
    40.9 KB · Views: 12
Upvote 0
Which columns do you want to return?
 
Upvote 0

Forum statistics

Threads
1,215,481
Messages
6,125,057
Members
449,206
Latest member
Healthydogs

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