Excel 2013 - Using FILTER limit the minimum number of rows returned.

homer_123

New Member
Joined
Aug 5, 2015
Messages
1
I've using the `FILTER` option (Auto Filter) in Excel 2013.

When filtering what I need is to place a 'minimum' number of rows that must be returned.

For example, if I place a filter on a column and then choose a filter option and the number of rows returned is less than 10 then the rows should not be shown and/ or the filter doesn't take place.

Happy to explore VBA if that is the only way to achieve this behaviour in Excel 2013.

Thanks,

Homer.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Code:
Sub MacFilter()
'To filter in A1 if less than 10 rows
    Range("A1").Select
    Selection.End(xlDown).Select
    If Selection.Row < 10 Then
    Range("A1").Select
    Selection.AutoFilter
    End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,216,095
Messages
6,128,804
Members
449,468
Latest member
AGreen17

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