drop down value yields multiple values

alohaitsjeff

New Member
Joined
Feb 29, 2016
Messages
6
Hey everyone,

I've tried scouring how to do this and I'm either looking in the wrong place or don't know the proper formulas to search for. I'll try to describe what it is I'm trying to accomplish.


I have a list of customers and each customer has X number of computers on their network. What I want to do is create a drop down list of customer names, and from that selection display all of the computer names from their network (so the results would yield vertically).

Any help is greatly appreciated. Thanks!


Customer Name Drop Down ListComputer Name Result
Customer#1Computer#1
Computer#2
Computer#3
Computer#4

<tbody>
</tbody>
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hi,

Assuming the following setup
A
B
C
D
E
1Customer
ComputerCustomerCustomer C
2Customer AComputer A1
3Customer AComputer A2Computer C1
4Customer AComputer A3Computer C2
5Customer AComputer A4Computer C4
6Customer BComputer B1
7Customer B
8Customer BComputer B3
9Customer BComputer B4
10Customer BComputer B5
11Customer BComputer B6
12Customer CComputer C1
13Customer C
14Customer CComputer C2
15Customer CComputer C4

<tbody>
</tbody>

where E1 is your drop down list of Customer names. In E3:
Code:
=IF(ROW(1:1) > COUNTIFS($A$2:$A$15,$E$1, $B$2:$B$15,"<>"&""),"",
INDEX($A$2:$B$15,MATCH(SMALL(IF(($A$2:$A$15=$E$1)*($B$2:$B$15<>""),ROW($A$2:$A$15)),ROW(1:1)),ROW($A$2:$A$15),0),2))
validate with Ctrl+Shift+Enter (array formula) and copy down as necessary

Regards
XLearner
 
Upvote 0
Just in case anyone uses the above formula, the cells have to have a value or else some data will not yield. The cells will be blank or will not appear correctly unless the cells above do not have data.
 
Upvote 0
Can you use something like this? I used data validation for cell D2 to select customer #. Hope this helps.
Mike Szczesny


Excel 2012
ABCDEF
1customercomputercustomercomputera
2aa1cc1b
3aa2c2c
4aa3c4
5aa4c5
6b
7bb2
8b
9bb4
10bb5
11cc1
12cc2
13c
14cc4
15cc5
Sheet1
Cell Formulas
RangeFormula
E2{=IFERROR(INDEX($B$2:$B$15,SMALL(IF($A$2:$A$15=$D$2,IF($B$2:$B$15<>"",ROW($B$2:$B$15)-ROW($B$2)+1)),ROWS($E$2:E2)))," ")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,222,091
Messages
6,163,855
Members
451,861
Latest member
Lurch65

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