Data validation dependent

Arnodekkers1995

New Member
Joined
Feb 19, 2016
Messages
11
Hi,

I'm making a sheet to easily click together invoices/offers.
Therefor i've got a data-sheet which has all products on it (per row), with also colums for each 'color' of this product, and the prices of these combinations.

DescriptionYellowBlueRed
Table$ 10,00$ 15,00$ 20,00
Chair$ 20,00$ 26,00
Couch$ 85,00$ 95,00

Now, in the main 'Offer' sheet, i'd like to be able to select a product (from dropdown), and then select a color of this product, for example it's colour. These two together should bring up a price which then can be displayed in the offer.

QtyProductColorPriceSubtotal
5TableBlue€ 15,00€ 75,00
3ChairRed€ 26,00€ 78,00
Total€ 153,00

This is all not rocket-science and i've got it working well, there's only one thing i'd like to solve:
Right now, there are some products which are not available in a certain configuration (in my example sheet, the chair is not available in Blue, and the couch not in Yellow). Therefor, i'd like the 'color' dropdown to also not show them.
Is there any possible way to get this achieved?

1618651493319.png


Thanks in advance!
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
This is all not rocket-science
It wasn't, but now it is heading in that direction. Data validation rules don't accept arrays, which is what would be needed in order to do what you want with the existing layout. The best that you will be able to do is something like this. Note that the validation rule for the product is deliberately set up so that it can not be changed once a colour has been chosen, the colour must be deleted first. Without this restriction it would still be possible to select some invalid combinations.
Note that the yellow, orange, and green tables are all named as per the product that they are related to.
test file 16.04.21.xlsx
BCDEFGHIJKLMNOP
1ProductTableChairCouch
2QtyProductColourPriceSubtotalTableColourPriceColourPriceColourPrice
35TableBlue1575ChairYellow10Yellow20Blue85
43ChairRed2678CouchBlue15Red26Red95
5Red20
Sheet5
Cell Formulas
RangeFormula
E3:E4E3=SUMPRODUCT(($K$3:$O$5=[@Colour])*($K$1:$O$1=[@Product]),$L$3:$P$5)
F3:F4F3=[@Qty]*[@Price]
Cells with Data Validation
CellAllowCriteria
C3:C4List=IF(D3="",INDIRECT("Product[Product]"),C3)
D3:D4List=INDIRECT(C3&"[Colour]")
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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