=FILTER(AQ3:AS6,AR3:AR6>=LARGE(AR3:AR6,MIN(5,ROWS(AQ3:AS6))))
=LET(a,AQ3:AS6,b,AR3:AR6,FILTER(a,b>=LARGE(b,MIN(5,ROWS(a)))))
=LET(a,AQ3:AS6,b,CHOOSECOLS(a,2),FILTER(a,b>=LARGE(b,MIN(5,ROWS(a)))))
Another function that is also applicable would be TAKE, applied to a sorted dataset.Hello,
I have this formula which will filter for the top 5 but it goes to error if there aren't at least 5 in range.
I still would like the ranked list if there are less than 5 to select from.
Is this possible?
Thank you
=FILTER(AQ3:AS20,AR3:AR20>=LARGE(AR3:AR20,5))
= TAKE(SORT(range, 2,-1), 5)
Certainly a lot of work has gone into it, it looks very difficult to manage!I think I may give up on this file
Set pt = Selection.PivotTable
For Each pf In pt.PivotFields
pf.EnableItemSelection = False 'True to bring them back.
Next pf
The range ChartData2 is not dynamic so the Total column contains blanks, which messes up the SORT (blanks tend to come last, but you want the sort order reversed). Some additional filtering would provide one solution to the problemsI have some issues and have tried all of the formulas. On the Transactions DB sheet I put the formula in Q26.
This is intended to provide data for the chart on the Money Mgr sheet. I either get no results or get errors.
Can you take a look please?
The file is too large and I do not know why but here is the link: (I think I may give up on this file. It seems to be corrupted and doesn't let me save it saying there isn't enough data. I have almost 1TB of storage in my drive.)
Dropbox
www.dropbox.com
= LET(
totals, CHOOSECOLS(ChartData2, 2),
data, FILTER(ChartData2, totals<>""),
TAKE(SORT(data, 2, -1), 5)
)