Originally Posted by
martindwilson
ah there is a slight flaw in the formula as written ,the end bit row() is to determine the first smallest but this depends on the formula being in row 1
to make it more dynamic you can put in a2 =min(k2:k100) and in b2 max(k2:k100)
or whatever your limits are instead
then use
=SMALL(IF(COUNTIF($K$2:$K$100,ROW(INDIRECT($A$2&":"&$B$2)))=0,ROW(INDIRECT($A$2&":"&$B$2)),""),ROWS($A$1:A1)) array entered and drag down
but now as i see you mention macro?
indirect is not one you can use in vba
INDIRECT() No direct equivalent - use Range,
Cells, Offset, or any other way of
referencing cells
Bookmarks