ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Look up to return multiple corresponding values (https://www.excelbanter.com/excel-discussion-misc-queries/67167-look-up-return-multiple-corresponding-values.html)

Wk

Look up to return multiple corresponding values
 
I am using the following formula to look up a value (in column A) that has
multiple corresponding values in column B. However, when I insert an
additional row at the top, the formula doesn't work anymore. What can I do?

=INDEX($A$1:$B$7,SMALL(IF($A$1:$A$7=$A$10,ROW($A$1 :$A$7)),ROW(1:1)),2)

Thanks.

Biff

Look up to return multiple corresponding values
 
Hi!

Try this:

=INDEX($B$1:$B$7,SMALL(IF($A$1:$A$7=$A$10,ROW($A$1 :$A$7)-ROW(A$1)+1),ROWS($1:1)))

Biff

"Wk" wrote in message
...
I am using the following formula to look up a value (in column A) that has
multiple corresponding values in column B. However, when I insert an
additional row at the top, the formula doesn't work anymore. What can I
do?

=INDEX($A$1:$B$7,SMALL(IF($A$1:$A$7=$A$10,ROW($A$1 :$A$7)),ROW(1:1)),2)

Thanks.





All times are GMT +1. The time now is 02:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com