Excel: How to create a drop down list that pulls up all the data associated with the selection made?

exc_can

New Member
Joined
Oct 2, 2016
Messages
1
I am trying to create a master sheet where all the information associated with each name is entered. It is in a table and each name is repeated in 4 rows and then it goes to the next name and so on. Each name has 4 (1,2,3,4) different ID#'s that indicates the depth where the sample was taken. I am entering different lab test results for each location based on the depth the sample was taken from.

On a separate sheet I want to create a drop down menu to select the location name to display all the data/lab results associated with that location including the depth where the sample was taken from? Can this be done in excel without using a macro? Please help.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
The only option I can think of without using a macro would be to filter the data. Would be easiest to do this straight on the master sheet, rather than a separate sheet though?
 
Upvote 0
You should be able to do it with Form Controls (Developer>Insert>Form Controls) and functions like INDEX and VLOOKUP.
 
Upvote 0
No filters of forms needed

Assuming your data looks like this...
A​
B​
C​
D​
1​
Sheet7
2​
NameIDData1data1
3​
aa
1​
10​
110​
4​
aa
2​
20​
220​
5​
aa
3​
30​
330​
6​
aa
4​
40​
440​
7​
bb
1​
50​
550​
8​
bb
2​
60​
660​
9​
bb
3​
70​
770​
10​
bb
4​
80​
880​
11​
cc
1​
90​
990​
12​
cc
2​
100​
1100​
13​
cc
3​
110​
1210​
14​
cc
4​
120​
1320​
15​
dd
1​
130​
1430​
16​
dd
2​
140​
1540​
17​
dd
3​
150​
1650​
18​
4​
160​
1760​
To get this...
A​
B​
C​
D​
1​
Sheet8
2​
aaIDData1data1
3​
1​
10​
110​
4​
2​
20​
220​
5​
3​
30​
330​
6​
4​
40​
440​
A2 would be your selection. This can be a drop-down or a manual entry
B3=IFERROR(INDEX(Sheet7!B:B,SMALL(IF(Sheet7!$A$3:$A$17=$A$2,ROW(Sheet7!$A$3:$A$17)),ROWS(Sheet7!$A$2:A2))),"")
ARRAY entered using CTRL SHIFT ENTER, not just enter. You will see your formula wrapped in {}

Then copy down and across
 
Upvote 0

Forum statistics

Threads
1,214,972
Messages
6,122,530
Members
449,088
Latest member
RandomExceller01

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