excel - How to find smallest values in AutoFiltered range? -


I have a column with two value ranges, especially 0-30000 and 60000+ of which I The values ​​need to be removed in the 60000 range.

I have found the only way to use the AutoFilter to produce a subset of the data needed to remove. My problem is that the autofilter function does not return the context of a category. If I did this, I could use the SMALL function to get those values.

How can I filter and extract two smallest values ​​from this filtered data?

I abandoned the idea of ​​using the autofilter instead, I used to SMALL And went with a combination of a loop.

  Cell (2, secIdCol). Choose the set valsRange = category (selection, selection. End (xlDown)) for each value valsRange if val.Value & lt; 599999 Then val.Value = "" // I did not save the change val1 = Application.WorksheetFunction.Small (valsRange, 1) val2 = Application.WorksheetFunction.Small (valsRange, 2) end if next val  

Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -