
Originally Posted by
Bryan Hessey
The formula is:
=OFFSET(H$3,
by row:
MATCH(SMALL(B$3:B$18,ROW()+1),B$3:B$18 ,0)-1+COUNTIF(B$3:B$18,B3)+1
by column:
,0)
which looks ok in format, and for content has:
=OFFSET(H$3,
MATCH(
SMALL(B$3:B$18,ROW()+1) ie, as you are on row 3, the 4th smallest
,B$3:B$18 ,0) ie select the 4th smallest match
-1+COUNTIF(B$3:B$18,B3)+1 ie, add rows for Matches on Equal
on column:
,0)
-------------
perhaps
=OFFSET(H$3,MATCH(SMALL(B$3:B$18,ROW()-1),B$3:B$18 ,0)-1+COUNTIF(B$3:B$18,B3)-1,0)
will be closer ?
---
Bookmarks