I have a table and would like to quickly filter the top 5 and bottom 5 variances.
Can a macro help with that?
Attached file shows original data and the result expected
Thanks
I have a table and would like to quickly filter the top 5 and bottom 5 variances.
Can a macro help with that?
Attached file shows original data and the result expected
Thanks
while you undoubtedly could do this with code, (not my strong side), I would use a helper column, with this in, say, C2, copied down...
=OR(B2<=SMALL($B$2:$B$15,5),B2>=LARGE($B$2:$B$15,5))
then just filter on TRUE
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
Done with a pivot table.
Thanks to both on a quick reply.
Just keen to know how that was done with a pivot?
I am able to understand that 2 pivots are created but then how is the top and bottom 5 filtered quickly?
If you click on the filter icon and then go into the value filter you'll see the setting for top or bottom 5.
Try
![]()
Please Login or Register to view this content.
Thanks all
Happy to help and thanks for the feedback![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks