Extracting a List of Values Filtered by Criteria with Sub-Arrays

elcommissioner

New Member
Joined
Aug 18, 2017
Messages
2
Hi guys,

This is my first post on this forum so sorry if it's not clear but I'm hoping for some help with a formula.

I'm trying to design a formula that will present people with a list of holiday destinations based upon when they'd like to go. On the sheet 'Countries' there's data with each country listed as a separate row for every month that it's good to visit there, like so:

CountryContinentSafe?LangCurCost1Cost2Cost3GoAvoid
AngolaAfrica
September

<tbody>
</tbody>
BeninAfrica
January

<tbody>
</tbody>
BeninAfrica
February

<tbody>
</tbody>
BotswanaAfrica
April

<tbody>
</tbody>
BotswanaAfrica
May

<tbody>
</tbody>
BotswanaAfrica
June

<tbody>
</tbody>
BotswanaAfrica
July

<tbody>
</tbody>
BotswanaAfrica
August

<tbody>
</tbody>
Burkina FasoAfricaNovember

<tbody>
</tbody>

On a separate sheet 'Questions', I have a question with a drop-down list of months the person would like to travel then below a copy of the table template with the following formula pasted into the cells to generate a list based on the person's answer to the question 'When would you like to travel?':

Code:
IFERROR
(INDEX
('Master Sheet - Countries'!A$3:A$428,
SMALL
(IF
('Master Sheet - Countries'!$I$3:$I$428=Questions!$D$3,
ROW
('Master Sheet - Countries'!A$3:A$428)-
ROW
('Master Sheet - Countries'!A$3)+1),
ROWS
('Master Sheet - Countries'!A$3:'Master Sheet - Countries'!A3))),"")

The result is not an error message but in spite of the formula being posted to every row in the table, it only completes the first line of the empty table, usually with the wrong answer.

I constructed the formula based on something I found online but I don't have the expertise to identify where I have gone wrong.

Any help would be greatly appreciated. I'm running Excel version 15.31 for mac.

regards,

Elcommissioner
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Would you post the output that you want which goes with the input you show? (A non-working formula does not help much; on the contrary, it can be a hindrance.)
 
Upvote 0
Thanks for responding.

For example, I would want the following:

When would you like to go?September
CountryContinentSafe?LangCurCost1Cost2Cost3Go
AngolaAfricaSeptember
BurundiAfricaSeptember
Cabo VerdeAfricaSeptember
Equitorial GuineaAfricaSeptember

<tbody>
</tbody>


Let me know if you require more information.

Regards,
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,700
Members
448,979
Latest member
DET4492

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