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;

[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]325XX
[/TD]
[TD]Apple
[/TD]
[TD]Orange[/TD]
[TD]Mango[/TD]
[/TR]
[TR]
[TD]326XX
[/TD]
[TD]Black
[/TD]
[TD]White
[/TD]
[TD]Blue
[/TD]
[/TR]
[TR]
[TD]327XX
[/TD]
[TD]Car
[/TD]
[TD]Bike
[/TD]
[TD]Bus
[/TD]
[/TR]
[TR]
[TD]328XX
[/TD]
[TD]Laptop
[/TD]
[TD]Wifi
[/TD]
[TD]Mouse
[/TD]
[/TR]
[TR]
[TD]329XX
[/TD]
[TD]India
[/TD]
[TD]America
[/TD]
[TD]England
[/TD]
[/TR]
</tbody>[/TABLE]









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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
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,224,823
Messages
6,181,182
Members
453,021
Latest member
Mohamed Magdi Tawfiq Emam

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