# vlookup() with multiple results?

#### SirMille

##### New Member

=TRANSPOSE( QUERY(D:H ; "select D where H='"&H11&"'" ))

So I was trying to find something similar to that for excel 2010, and found this

=INDEX(\$A\$2:\$C\$7, SMALL(IF(\$B\$9=\$A\$2:\$A\$7, ROW(\$A\$2:\$A\$7)-MIN(ROW(\$A\$2:\$A\$7))+1, ""), ROW(A1)),COLUMN(A1))

(it's better explained on How to return multiple values using vlookup in excel | Get Digital Help - Microsoft Excel resource)

The thing is that the forumla is super slow. It takes about 2-3 seconds per row in a document that has 300 rows... so that leaves me with ~5-10 minutes update when I change a row.

I was thinking having a dualcore 3 Ghz computer would do it fast, so I'm not sure weather it is the formula or excel all together that is slow.

Is there a better/faster solution for excel 2010? All tips are welcome! Thank you!

### Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

##### MrExcel MVP

=TRANSPOSE( QUERY(D:H ; "select D where H='"&H11&"'" ))

So I was trying to find something similar to that for excel 2010, and found this

=INDEX(\$A\$2:\$C\$7, SMALL(IF(\$B\$9=\$A\$2:\$A\$7, ROW(\$A\$2:\$A\$7)-MIN(ROW(\$A\$2:\$A\$7))+1, ""), ROW(A1)),COLUMN(A1))

(it's better explained on How to return multiple values using vlookup in excel | Get Digital Help - Microsoft Excel resource)

The thing is that the forumla is super slow. It takes about 2-3 seconds per row in a document that has 300 rows... so that leaves me with ~5-10 minutes update when I change a row.

I was thinking having a dualcore 3 Ghz computer would do it fast, so I'm not sure weather it is the formula or excel all together that is slow.

Is there a better/faster solution for excel 2010? All tips are welcome! Thank you!
The following set up is faster if you return records with multiple cells...

http://www.mrexcel.com/forum/excel-questions/307832-multiple-vlookups.html#post1511354 (post #3).

#### T. Valko

##### Well-known Member

=TRANSPOSE( QUERY(D:H ; "select D where H='"&H11&"'" ))

So I was trying to find something similar to that for excel 2010, and found this

=INDEX(\$A\$2:\$C\$7, SMALL(IF(\$B\$9=\$A\$2:\$A\$7, ROW(\$A\$2:\$A\$7)-MIN(ROW(\$A\$2:\$A\$7))+1, ""), ROW(A1)),COLUMN(A1))

(it's better explained on How to return multiple values using vlookup in excel | Get Digital Help - Microsoft Excel resource)

The thing is that the forumla is super slow. It takes about 2-3 seconds per row in a document that has 300 rows... so that leaves me with ~5-10 minutes update when I change a row.

I was thinking having a dualcore 3 Ghz computer would do it fast, so I'm not sure weather it is the formula or excel all together that is slow.

Is there a better/faster solution for excel 2010? All tips are welcome! Thank you!
Are you using entire columns as range references? That will certainly slow things down.

See if this helps:

Lookup when there are multiple instances of the lookup value