VLOOKUP - Return multiple values vertically based on 2 drop down list.

RahulNa

Board Regular
Joined
Jul 12, 2012
Messages
124
Office Version
  1. 365
Platform
  1. Windows
Hi Guys,

I hope all of you are safe and doing good.

I have an excel which has 2 drop-down lists "Sales Person Name" and "Sales Type (Existing & New)" based on the above I want to display their Unique account name.

Please share any formula or view to help me with this. Also, don't require VBA for the same as the file will be kept at a SharePoint where it might not work.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Hi RahulNa,

Here's one way:

RahulNa.xlsx
ABCDEFGHI
1Sales Person NameSales Type (Existing & New)Account NameSales Person NameSales Type (Existing & New)Sales Person NameSales Type (Existing & New)
2SusanRedTigerSusanBlueSusanRed
3SusanBlueMouseRobertBlue
4SarahBlueMoleAccount Name =MouseCharlesYellow
5VanessaRedGoatVanessa
6VanessaRedSheepSarah
7PaulaYellowDogAlfred
8Vincent
9Paula
Sheet1
Cell Formulas
RangeFormula
F4F4=IFERROR(INDEX(C1:C10,AGGREGATE(15,6,ROW(A$1:A$10)/((A1:A10=E2)*(B1:B10=F2)),1)),"No match")
Cells with Data Validation
CellAllowCriteria
E2List=$H$2:$H$9
F2List=$I$2:$I$4
 
Upvote 0
Hi

Thank you for the response. I am looking to find something like in color green.

The formula mentioned above works only for the first record identified.

Sales Person NameSales Type (Existing & New)Account NameSales Person NameSales Type (Existing & New)
SusanRedTigerSusanBlue
SusanBlueMouse
SarahBlueMoleAccount Name =Tiger
VanessaRedGoatMouse
VanessaRedSheepJaguar
PaulaYellowDogLion
SusanRedJaguar
SusanBlueLion
SarahBlueRat
VanessaRedGoat
VanessaRedSheep
PaulaYellowDog
 
Upvote 0
Can you explain why you have Tiger & Jaguar in the result, as they are not Susan & Blue?

Also please update your account profile to show what version of Excel you are using. As some functions do not exist in all versions.
 
Upvote 0
Can you explain why you have Tiger & Jaguar in the result, as they are not Susan & Blue?

Also please update your account profile to show what version of Excel you are using. As some functions do not exist in all versions.
Hi,

Sorry, It was a copy-paste issue. Currently, I am using Office 365 pro plus.

I hope you got my concern from the above formula.
 
Upvote 0
Ok, thanks for updating your profile.
How about
+Fluff New.xlsm
ABCDEFG
1Sales Person NameSales Type (Existing & New)Account NameSales Person NameSales Type (Existing & New)
2SusanRedTigerSusanBlue
3SusanBlueMouse
4SarahBlueMoleAccount Name =MouseMouse
5VanessaRedGoatLionLion
6VanessaRedSheep 
7PaulaYellowDog 
8SusanRedJaguar 
9SusanBlueLion 
10SarahBlueRat
11VanessaRedGoat
12VanessaRedSheep
13PaulaYellowDog
List
Cell Formulas
RangeFormula
F4:F5F4=FILTER(C2:C13,(A2:A13=E2)*(B2:B13=F2))
G4:G9G4=IFERROR(INDEX($C$2:$C$13,AGGREGATE(15,6,(ROW($C$2:$C$13)-ROW($C$2)+1)/(($A$2:$A$13=$E$2)*($B$2:$B$13=$F$2)),ROWS(G$4:G4))),"")
Dynamic array formulas.


Formula in G4 is if you don't have dynamic arrays yet.
 
Upvote 0
Ok, thanks for updating your profile.
How about
+Fluff New.xlsm
ABCDEFG
1Sales Person NameSales Type (Existing & New)Account NameSales Person NameSales Type (Existing & New)
2SusanRedTigerSusanBlue
3SusanBlueMouse
4SarahBlueMoleAccount Name =MouseMouse
5VanessaRedGoatLionLion
6VanessaRedSheep 
7PaulaYellowDog 
8SusanRedJaguar 
9SusanBlueLion 
10SarahBlueRat
11VanessaRedGoat
12VanessaRedSheep
13PaulaYellowDog
List
Cell Formulas
RangeFormula
F4:F5F4=FILTER(C2:C13,(A2:A13=E2)*(B2:B13=F2))
G4:G9G4=IFERROR(INDEX($C$2:$C$13,AGGREGATE(15,6,(ROW($C$2:$C$13)-ROW($C$2)+1)/(($A$2:$A$13=$E$2)*($B$2:$B$13=$F$2)),ROWS(G$4:G4))),"")
Dynamic array formulas.


Formula in G4 is if you don't have dynamic arrays yet.


Hi,

I am getting the below error message When I edited the formula.
#SPILL!
 
Upvote 0
In that case you have cells below the formula that contain values or a formula. Clear out those cells & the formula should spill down.
 
Upvote 0
Thank You. But is it possible in one single formula.
 
Upvote 0
In that case can you please use the XL2BB add-in to post your data (including formula) to the thread.
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,595
Members
449,089
Latest member
Motoracer88

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