Need solution for customised Data Validation for a Cell

Optimus29

New Member
Joined
Oct 21, 2011
Messages
9
Hi Friends,

I want to put a data validation rule on a cell.

My requirement is as follows

[Assuming that I want to apply this rule to Cell A1]

If A2 is not blank then User should get a dropdown to Select "YES" or "NO" as a value for Cell A1.

If A2 is blank A1 should be blank as well.

Can you please suggest a solution to put such a data validation?


Thanks in Advance!
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
You wouldn't be able to use the normal "Data > Validation" feature of Excel to do this

You could use a macro that uses the worksheet_change event as a trigger, or more simply, a formula that reports whether the data has been entered correctly. Formula is probably your best option here, macro would probably need lots of error handling, to cover all sorts of unexpected circumstances
 
Upvote 0
You wouldn't be able to use the normal "Data > Validation" feature of Excel to do this

You could use a macro that uses the worksheet_change event as a trigger, or more simply, a formula that reports whether the data has been entered correctly. Formula is probably your best option here, macro would probably need lots of error handling, to cover all sorts of unexpected circumstances

Thanks Baitmaster for your response
Can you please elaborate on what formula we can put to handle this?
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,885
Members
452,364
Latest member
springate

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