Data Validation based on cell value

Ramnura

New Member
Joined
Dec 14, 2017
Messages
4
Hi,

Can anyone help me on the Data validation based on the cell value.

Actual data table as follows;

325XX
Apple
OrangeMango
326XX
Black
White
Blue
327XX
Car
Bike
Bus
328XX
Laptop
Wifi
Mouse
329XX
India
America
England

<tbody>
</tbody>









Data validation requirements: If cell value "325XX", Data validation list should have "Apple, Orange, Mango"
if Cell value "326XX" Data validation list should have "Black, White, Blue"

Conditions are:
1. Dynamic name (Name Manager) - Its not possible as cell values (Criteria) are many

I am very much struggling to set up a formula for the above requirements.

Requesting your great help on this.

Many thanks!
Karuvaayan
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Data Validation won't help you because it dynamically list to validate against. You need VBA code to do it.
 
Upvote 0
@Ramnura, you can have dynamic lists in data validation using the INDIRECT() function. Say, for instance, that the table in your original post above was in Sheet2!A1:D5. And say that your data validation list for Sheet1!A2 were a list drawn from Sheet2!$A$1:$A$5. Your data validation for Sheet2!B2 could then be a list with the following entered as "Source":

Code:
=INDIRECT("Sheet2!$B$"&MATCH($A$2,Sheet2!$A$1:$A$5,0)&":$D$"&MATCH($A$2,Sheet2!$A$1:$A$5,0))
 
Last edited:
Upvote 0
@ErikTyler: Sorry to getting you back!The above formula does not work when we go for other work book.

even there is no error on the selection and criteria

Requesting your help to solve the issue, thanks!
 
Upvote 0
@Ramnura, I have replied to both of your private messages.

Please do keep in mind that this is a volunteer board for minor formula and code help, and not a free service for complete solutions.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,731
Members
448,987
Latest member
marion_davis

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