Data Validation Lists

Deelof

New Member
Joined
Aug 30, 2023
Messages
34
Office Version
  1. 2019
Platform
  1. Windows
I need to add drop down lists to select from into B2 based off the formula result in A2 (formula is in A3) and will return Colour or Size.
The lists in D & E columns will be on a different tab within my document and should form the drop down list based off the result in A2, i.e. A2 = Colour, drop down list is column D, A2 = Size, drop down list is column E.


1701182810738.png
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
in data validation put
=IF(A2="colour",D2:D4,IF(A2="Size",E2:E4,""))
or if a different sheet
=IF(A2="colour",Sheet2!D2:D4,IF(A2="Size",Sheet2!E2:E4,""))

Book9
ABCDE
1coloursize
2sizered1
3green2
4pink3
Sheet1
Cells with Data Validation
CellAllowCriteria
B2List=IF(A2="colour",Sheet2!D2:D4,IF(A2="Size",Sheet2!E2:E4,""))


Book9
ABCDE
1
2orange20
3purple25
4yellow35
Sheet2


as its on 2 sheets - i have added a share on dropbox

will only be there for a few days
 
Upvote 0
Thank you. I am receiving an error for the data validation formula and believe this is due to the lists I have are not all singular words.
In my lists I have data such as:

Black Grain
Beige - Black
in data validation put
=IF(A2="colour",D2:D4,IF(A2="Size",E2:E4,""))
or if a different sheet
=IF(A2="colour",Sheet2!D2:D4,IF(A2="Size",Sheet2!E2:E4,""))

Book9
ABCDE
1coloursize
2sizered1
3green2
4pink3
Sheet1
Cells with Data Validation
CellAllowCriteria
B2List=IF(A2="colour",Sheet2!D2:D4,IF(A2="Size",Sheet2!E2:E4,""))


Book9
ABCDE
1
2orange20
3purple25
4yellow35
Sheet2


as its on 2 sheets - i have added a share on dropbox

will only be there for a few days
 
Upvote 0
i have updated and added those words
multiple words are not a problem
 

Attachments

  • Screenshot 2023-11-29 at 14.07.01.png
    Screenshot 2023-11-29 at 14.07.01.png
    55.7 KB · Views: 0
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,954
Members
449,095
Latest member
nmaske

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