Excel returning more than one value from a lookup table that match the same value
This formula is more robust, also entered with ctrl + shift & enter
=IF(COLUMNS($B1:B1)<=COUNTIF(Sheet2!$C$2:$C$2934,$ C$2),INDEX(Sheet2!$D$1:$D$2934,SMALL(IF(Sheet2!$C$ 2:$C$2934=$C$2,ROW(Sheet2!$C$2:$C$2934)-COLUMN(Sheet2!$C$2)+3),COLUMNS($B1:B1))),"")
test them side by side
then select column A in the same sheet that holds the formulas and insert a
new column, every time you insert a new column the first formula will change
the result and eventually there will just be blank cells returned while the
above formula still returns the correct result, also it has less function
calls so it should be faster
--
Regards,
Peo Sjoblom
wrote in message
oups.com...
Thanks doing it like that appears to work. Any tips on a better way
to do it. I was just going off that micorosft example.
-Nick
|