Index & Match Multiple Criteria

Legskeattch

New Member
Joined
Oct 5, 2016
Messages
4
I apologise in advance if this is a confusing post!

At the moment I have a table of different investments in column A and in the columns adjacent I have the percentage allocation to each risk profile. The simplified table below should explain better.

InvestmentLow RiskCautious IncomeCautious GrowthModerate IncomeModerate GrowthHigh GrowthAggressive Growth
Royal London Corporate Bond M

<tbody>
</tbody><colgroup><col></colgroup>
10%9%3%1%2%4%7%
Rathbone Ethical Bond I

<tbody>
</tbody><colgroup><col></colgroup>
15%13%0%3%0%4%6%
Kames Investment Grade Bond B

<tbody>
</tbody><colgroup><col></colgroup>
0%12%7%2%4%0%12%
Aviva Investments Higher Income Plus 2

<tbody>
</tbody><colgroup><col></colgroup>
7%7%6%3%8%9%2%

<tbody>
</tbody>


At the top of my spread sheet I have a drop down with the risk profile of the client (low risk, cautious income etc) and I want to then be able to pre populate a table with the investments that are associated to that risk profile.

For example:

If I select Low Risk in the drop down, I expect Royal London 10%, Rathbone 15%, Aviva Investments 7% and for the Kames investment to not show on in the table.

Then, if I change the risk profile to Cautious Growth, I want the table to show Royal London 3%, Kames 7% and Aviva 6%.

Any help would be greatly appreciated.




Luke
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Hi Luke,

It can be done with INDEX / MATCH but I'd probably go with VLOOKUP / MATCH instead. The following formula assumes your example table starts in cell A1 and the drop down is in cell Z1:

=VLOOKUP(A2,A:H,MATCH($Z$1,$B$1:$H$1,0)+1,0)

Now this will not return blanks instead of zeros but you can achieve that by adding in an IF:

=IF(VLOOKUP(A2,A:H,MATCH($Z$1,$B$1:$H$1,0)+1,0)=0,"",VLOOKUP(A2,A:H,MATCH($Z$1,$B$1:$H$1,0)+1,0))

I hope this helps.

Cheers,
Catalin
 
Last edited:
Upvote 0
Is it my understanding that you want the table to update based on the selection of a drop down (be it data validation or some form of user form?
 
Upvote 0
Hi Luke,

It can be done with INDEX / MATCH but I'd probably go with VLOOKUP / MATCH instead. The following formula assumes your example table starts in cell A1 and the drop down is in cell Z1:

=VLOOKUP(A2,A:H,MATCH($Z$1,$B$1:$H$1,0)+1,0)

Now this will not return blanks instead of zeros but you can achieve that by adding in an IF:

=IF(VLOOKUP(A2,A:H,MATCH($Z$1,$B$1:$H$1,0)+1,0)=0,"",VLOOKUP(A2,A:H,MATCH($Z$1,$B$1:$H$1,0)+1,0))

I hope this helps.

Cheers,
Catalin



Thanks very much, will give this a try now!
 
Upvote 0

Forum statistics

Threads
1,215,102
Messages
6,123,097
Members
449,096
Latest member
provoking

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