Hi
Biff posted
=INDEX(Rng2,SMALL(IF((Rng1=$z$1)*(Rng3>0),ROW(INDIRECT("1:"&ROWS(Rng2)))),ROW(A1)))
^^^^^
You posted
=INDEX('PO Detail'!D$1
$500,
SMALL(IF(('PO Detail'!B$1:B$500=$B$3)*
('PO Detail'!G$1:G$500>0),
ROW(INDIRECT("1:"&ROWS('PO Detail'!B$1:B$500)))),ROW(A1)))
You therefore seem to have
=INDEX(Rng2,SMALL(IF((Rng1=$z$1)*(Rng3>0),ROW(INDIRECT("1:"&ROWS(Rng1)))),ROW(A1)))
^^^^^
This should not affect the result as it is only a way of getting an
array of results corresponding with the size of your table.
It certainly doesn't affect results with the original sample of data you
posted, which works perfectly with Biff's formula using rng1 or rng2
I don't know what your full set of data contains. I presume $B$3 does
contain the value you are looking for.
It should work OK.
Did you use Ctrl+Shift+Enter to make it an array formula when you
amended?
You say you are getting an error, what error is it coming up with?