I'm trying to search an array for a specific value and then return all instances in the array.
=index(Sheet1!C48:D77,SMALL(IF(Sheet1!J48:J77="Gold",ROW(Sheet1!J48:J77)),ROW(1:1)),1)
If I use the following function it returns a value correctly.
SMALL(IF(Sheet1!J48:J77="Gold",ROW(Sheet1!J48:J77)),ROW(1:1))
However, when I embedded it into the index function it returns a reference error.
What do I have wrong, should I be using a different function?
=index(Sheet1!C48:D77,SMALL(IF(Sheet1!J48:J77="Gold",ROW(Sheet1!J48:J77)),ROW(1:1)),1)
If I use the following function it returns a value correctly.
SMALL(IF(Sheet1!J48:J77="Gold",ROW(Sheet1!J48:J77)),ROW(1:1))
However, when I embedded it into the index function it returns a reference error.
What do I have wrong, should I be using a different function?