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: 16
  • report.png
    report.png
    6.4 KB · Views: 16
That would suggest that you don't have any rows that meet the criteria.
 
Upvote 0

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
That would suggest that you don't have any rows that meet the criteria.
I've put test risks in two open and two closed, none of them pull through unfortunately.
 

Attachments

  • example 2.png
    example 2.png
    46.1 KB · Views: 5
Upvote 0
The priority # column is empty, which is why you get the error.
 
Upvote 0
The priority # column is empty, which is why you get the error.
Ah, cos it was meant for Issues I see and not Risks. Brilliant so that now works for the Issues.

Do you have a formula I can use for the Risk report; original formula:
=index(sort(Table1[[Risk/Issue Description]:[Mitigation Strategy]],4,-1),SEQUENCE(5),{1,4,5})

Again taking out the closed ones.
 
Upvote 0
Try
Excel Formula:
=INDEX(SORT(FILTER(Table1[[Risk/Issue Description]:[Mitigation Strategy]],Table1[Status]="Open"),4,-1),SEQUENCE(5),{1,4,5})
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,881
Messages
6,122,074
Members
449,064
Latest member
MattDRT

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