VLOOKUP, HLOOKUP or MATCH?

L

Legacy 90606

Guest
The table I have below is a list of consultant details.


[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Consultancy Name[/TD]
[TD]Consultant[/TD]
[TD]Email Address[/TD]
[TD]Phone Number[/TD]
[/TR]
[TR]
[TD]Consultancy 1[/TD]
[TD]Mr Smith[/TD]
[TD]smith@cons.com[/TD]
[TD]020 155 6500[/TD]
[/TR]
[TR]
[TD]Consultancy 1[/TD]
[TD]Ms Wright[/TD]
[TD]wright@cons.com[/TD]
[TD]020 155 6501[/TD]
[/TR]
[TR]
[TD]Consultancy 2[/TD]
[TD]Mr Dunbar[/TD]
[TD]dunbar@cons.com[/TD]
[TD]020 155 6502[/TD]
[/TR]
[TR]
[TD]Consultancy 1[/TD]
[TD]Mr Peston[/TD]
[TD]peston@cons.com[/TD]
[TD]020 155 6503[/TD]
[/TR]
[TR]
[TD]Consultancy 2[/TD]
[TD]Mrs Andrews[/TD]
[TD]andrews@cons.com[/TD]
[TD]020 155 6504[/TD]
[/TR]
[TR]
[TD]Consultancy 3[/TD]
[TD]Mr Cooper[/TD]
[TD]cooper@cons.com[/TD]
[TD]020 155 6505[/TD]
[/TR]
[TR]
[TD]Consultancy 1[/TD]
[TD]Ms Lewis[/TD]
[TD]lewis@cons.com[/TD]
[TD]020 155 6506[/TD]
[/TR]
</tbody>[/TABLE]

A dropdown will then let you select Consultancy 1 / Consultancy 2/ Consultancy 3 which should then display the following results in a separate table.

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Consultancy 1[/TD]
[TD]Consultancy 2[/TD]
[TD]Consultancy 3[/TD]
[/TR]
[TR]
[TD]Mr Smith[/TD]
[TD]Mr Dunbar[/TD]
[TD]Mr Cooper[/TD]
[/TR]
[TR]
[TD]Ms Wright[/TD]
[TD]Mrs Andrews[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Mr Peston[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Ms Lewis[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
You would have to use a macro to get that output or some fairly complex Array formulas.
However, have you considered using a Table Slicer?

Also, users with O365 that participate in the advanced Office Insiders program have access to a new calculation Engine and Array formulas that could get your results fairly easily.
 
Upvote 0
If the dropdown feature was removed would there be an array formula that could be used for each 3 consultancies.
 
Upvote 0
If you have Excel ver. 2010 or later try:
Copy formula down and across as needed.
Excel Workbook
ABCD
1Consultancy NameConsultantEmail AddressPhone Number
2Consultancy 1Mr Smithsmith@cons.com020 155 6500
3Consultancy 1Ms Wrightwright@cons.com020 155 6501
4Consultancy 2Mr Dunbardunbar@cons.com020 155 6502
5Consultancy 1Mr Pestonpeston@cons.com020 155 6503
6Consultancy 2Mrs Andrewsandrews@cons.com020 155 6504
7Consultancy 3Mr Coopercooper@cons.com020 155 6505
8Consultancy 1Ms Lewislewis@cons.com020 155 6506
9
10
11Consultancy 1Consultancy 2Consultancy 3
12Mr SmithMr DunbarMr Cooper
13Ms WrightMrs Andrews
14Mr Peston
15Ms Lewis
Sheet
 
Upvote 0
If the dropdown feature was removed would there be an array formula that could be used for each 3 consultancies.
Drop downs still exist and have not changed outside of some additions. However, the table format you are asking for has not existed with a dropdown list. Dropdowns have been primarily under Auto-Filters or Data Validation options.
So yes you could use a cell with Data Validation to make your choice and then, using a change event, create the table as you have demonstrated.
AHoy's solution is valid, but I don't like having to encompass more space than declared or the table not expanding with records in a changing environment. Very good for a one-off/static instance, but even a pivot table would be more flexible.

Pivot Tabl:, Consultancy Name in Filter Area, Consultants list in Rows. The first row/Filter Row may be objectionable because it will be 2 columns wide. Header and selected value.
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,988
Members
452,373
Latest member
TimReeks

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