VBA - INdex Match Multiple results

insightunlimited17

New Member
Joined
Feb 7, 2020
Messages
1
Office Version
  1. 365
Platform
  1. Windows
0
I have two sheets (As Diplayed Below). Sheet 1 or INformation is where i have all of my information Stored. And Sheet 2 is where i want it displayed based on the Urgency (Tab Selection).
Please can someone help me with a VBA code which can load this data on each of the Sections on Sheet 2. Producing multiple results in separate rows if the same Urgency selection is made. I tried it with INDEX MAtch and it works but it makes the file extremely slow.
=INDEX('Information'!B8:B12, SMALL(INDEX(MATCH($A$2, 'information'!I8:I1048576, 0), ), ROWS($A$1:A1)))
Sheet 1 - INFORMATION: This sheet contains all the data.
Sheet 1 - Information
Sheet 2 - Urgency: Where I want to display my Data.
Sheet 2 - Urgency
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
The reason it's very slow is this part of your formula
=INDEX('Information'!B8:B12, SMALL(INDEX(MATCH($A$2, 'information'!I8:I1048576, 0), ), ROWS($A$1:A1)))
as it is searching virtually the entire column. If you restrict to the used range & a small amount extra you should see a marked improvement.
 
Upvote 0

Forum statistics

Threads
1,213,531
Messages
6,114,172
Members
448,554
Latest member
Gleisner2

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