VLOOKUP, HLOOKUP or MATCH?

L

Legacy 90606

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


Consultancy NameConsultantEmail AddressPhone Number
Consultancy 1Mr Smithsmith@cons.com020 155 6500
Consultancy 1Ms Wrightwright@cons.com020 155 6501
Consultancy 2Mr Dunbardunbar@cons.com020 155 6502
Consultancy 1Mr Pestonpeston@cons.com020 155 6503
Consultancy 2Mrs Andrewsandrews@cons.com020 155 6504
Consultancy 3Mr Coopercooper@cons.com020 155 6505
Consultancy 1Ms Lewislewis@cons.com020 155 6506

<tbody>
</tbody>

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

Consultancy 1Consultancy 2Consultancy 3
Mr SmithMr DunbarMr Cooper
Ms WrightMrs Andrews
Mr Peston
Ms Lewis

<tbody>
</tbody>
 

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,216,038
Messages
6,128,450
Members
449,453
Latest member
jayeshw

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