Cascading Drop Downs

imran999

New Member
Joined
Mar 11, 2010
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hi,
I'm trying to create a stock inventory management sheet and unfortunatly am failing at my first hurdle.

I am trying to get cascading drop downs working in an excel sheet but am struggling to figure out how to have my drop down filtered on the results of a drop down to the left of it.

My Main table is the purchase sheet. All stock purchases are entered on here freehand. Which would then be detailed on sheet 2, using aid of drop downs based on sheet 1 data.

Work in progress.xlsx
ABCDEFG
3SupplierAccount NameOrder DateOrder IDOrder ValueQuantity
4NespressoAccount A19/12/202366077465£ 88.20180
5NespressoAccount A19/12/202366077466£ 73.50150
6NespressoAccount A19/12/202366077467£ 73.50150
7NespressoAccount A19/12/202366077468£ 88.20180
8CostcoAccount A12/12/2023123456£ 120.00100
9EbayAccount Z15/12/202323564£ 140.00120
10harveysAccount H01/01/20244531£ 18.00140
11asdaAccount H02/01/2024155£ 123.00150
12tescoAccount H03/01/2024115£ 145.00100
13randomAccount ABC10/10/2024ABC1234£ 1,000.00150
1. Purchase Sheet


I am then constructing a 2nd sheet (stock sheet testing), that i want to allow me to select from drop downs
a) unique set of suppliers
b) unique set of account names (dependent on the supplier chosen)
c) All unique order dates relevant to options chosen in A and B
d) All order ids based on drop downs A, B, C and D. The order id would always be unique.


Work in progress.xlsx
ABCD
2
3SupplierAccount NameDateOrder ID
4tescofiltered drop downfiltered drop downfiltered drop down
2. Stock Sheet Testing
Cells with Data Validation
CellAllowCriteria
A4List=OFFSET('3. Working Calcs'!B3#,0,0, COUNTA('3. Working Calcs'!B3#),1)



My attempts so far are giving me the unique supplier list which grows as more data is entered.
To construct the other drop downs, i am a bit stumped. Been watching a few youtube videos but struggling to apply to my dataset.


Work in progress.xlsx
BC
2SupplierAccount
3asdaAccount A
4CostcoAccount ABC
5EbayAccount H
6harveysAccount Z
7Nespresso
8random
9tesco
3. Working Calcs
Cell Formulas
RangeFormula
B3:B9B3=SORT(UNIQUE(FILTER(Table2[Supplier],Table2[Supplier]<>0)))
C3:C6C3=SORT(UNIQUE(FILTER(Table2[Account Name],Table2[Account Name]<>0)))
Dynamic array formulas.



Some guidance would be appreciated.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Thanks, Working my way through the video.

I have implemented transpose which gives me the suppliers across the sheet....and then i have placed a forumula under the first supplier, which correctly gives me the account names for that supplier....
However when i copy across the formula to the adjacent cells under the transposed supplier list, the formula is shifting right.

Formula i have used in Cell F3

=SORT(FILTER(Table2[Account Name],Table2[Supplier]=F2))

When i copy it across to cells G3 it then shows as

=SORT(FILTER(Table2[Order Date],Table2[Account Name]=G2))

How do i stop the table columns shifting; Tried the $ before table name but it errors.?
 
Upvote 0
I tried the following guidance, but gives me an error in my version of excel
Microsoft® Excel® for Microsoft 365 MSO (Version 2407 Build 16.0.17830.20166) 64-bit

Example:​

If your formula is =Table1[Column1] and you copy it across columns, it will automatically shift to =Table1[Column2] in the next column. To stop this from happening, use =Table1[@[Column1]]. This will keep the reference fixed to Column1 when you copy the formula across.
 
Upvote 0

Forum statistics

Threads
1,221,418
Messages
6,159,791
Members
451,589
Latest member
Harold14

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