dependant lists with an IF statement

keithmct

Active Member
Joined
Mar 9, 2007
Messages
256
Office Version
  1. 2021
Platform
  1. Windows
windowblind typewidthdropbracketsdbl/link/indcontrolsbunchblade sizeFabricColour
b1PVCvenetian1800150063UrbanwoodAlpine White
b2PVCvenetian1800150050UrbanwoodLinen

Hi all, I'm trying to limit the input of the colour column when the blade size is 63. Normal 50mm blade size has 9 options. The only 63mm options should be Alpine White or Warm White. I have put those colours in a new table called PVCvenetian63 and tried to amend formula in Data Validation, currently:
=INDIRECT(SUBSTITUTE(E14&S14," ","")) to:
=IF(Q14="63", PVCvenetian63, INDIRECT(SUBSTITUTE(E14&S14," ","")))
but this gives an error like "are you trying to type a formula?......). Any idea what is wrong?
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
would you be able to share your column references (for example, we can see Col Q must be "blade size", but we've no idea what your data is inside E14 and S14 ?

might help understand a little more whats going wrong.
thanks
Rob
 
Upvote 0
Looking at the below, I have named the two purple tables: PVCvenetian_50 & PVCvenetian_63
Data validation formula in cell U2 dragged down: =INDIRECT($E2&"_"&$Q2)

I also don't understand where column S (Fabric) comes into it?

Book1
CDEFGHIJKLMNOPQRSTUVWXY
1windowblind typewidthdropbracketsdbl/link/indcontrolsbunchblade sizeFabricColour5063
2b1PVCvenetian1800150063UrbanwoodRedAlpine White
3b2PVCvenetian1800150050UrbanwoodGreenWarm White
4Blue
Sheet1
Cells with Data Validation
CellAllowCriteria
U2:U3List=INDIRECT($E2&"_"&$Q2)
 
Upvote 0
Oops, sorry. E14 is Blind Type (PVCvenetian) and S14 is Fabric. Only PVC venetian fabrics appear when type is PVCvenetian and only, say, Urbanwood colours appear when fabric is Urbanwood.
So there are about 10 different blind types. Each different type has particular Fabrics and each fabric has particular colours.
Also for different blind types, there are other blade sizes (16, 25, 50, 63, 89, 100, 127mm)
 
Last edited:
Upvote 0
In that case you can have multiple lookup tables for thr blind types as below:

Tables named:
PVCvenetianCountrywood50​
PVCvenetianUrbanwood50​
PVCvenetianCountrywood63​
PVCvenetianUrbanwood63​

Book1
CDEFGHIJQRSTUVWXYZAA
1windowblind typewidthdropblade sizeFabricColourPVCvenetianCountrywood50PVCvenetianUrbanwood50PVCvenetianCountrywood63PVCvenetianUrbanwood63
2b1PVCvenetian1800150050CountrywoodRedWhiteBlackOrange
3b2PVCvenetian1800150050UrbanwoodBlueCreamGreyPink
4b3PVCvenetian1800150063CountrywoodGreenYelowCharcoalCyan
5b4PVCvenetian1800150063Urbanwood
Sheet1
Cells with Data Validation
CellAllowCriteria
U2:U5List=INDIRECT($E2&$S2&$Q2)
 
Upvote 0
great solutions which would work, but are there any suggestions as to what might be wrong with my proposed formula?
=IF(Q14="63", PVCvenetian63, INDIRECT(SUBSTITUTE(E14&S14," ","")))

further info: I have (in this instance) a table called "PVCvenetian", a table called "Urbanwood" and for the colours a tables called "PVCvenetianurbanwood" which is what the substitute part is doing - removing the spaces so concatenating E14 & S14 point to the correct table for colours.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,329
Members
452,635
Latest member
laura12345

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