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!
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
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).
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,212,929
Messages
6,110,740
Members
448,295
Latest member
Uzair Tahir Khan

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top