vlookup() with multiple results?

SirMille

New Member
Joined
Oct 25, 2011
Messages
11
In Google Spreadsheets you can use

=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!
 

Some videos you may like

Excel Facts

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

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,178
In Google Spreadsheets you can use

=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
Joined
May 9, 2009
Messages
16,623
In Google Spreadsheets you can use

=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
 

Watch MrExcel Video

Forum statistics

Threads
1,099,482
Messages
5,468,870
Members
406,618
Latest member
SAMEERS

This Week's Hot Topics

Top