Data validation question

rjc4

Well-known Member
Joined
Nov 6, 2004
Messages
502
Hi All,

RangeA
Cell Y1 contains text of OPT1
Cell Y2 contains text of OPT2
RangeB
Cell Z4 contains text of USER1
Cell Z5 contains text of USER2

In M5 is a dropdown containing choices of YES or NO.

In H8, how can I use data validation to show me only range Y1:Y2 if M5 is YES and range Z4:Z5 if M5 is NO.

I guess it requires a custom formula in the data validation setup but I can't get it to work. Could anyone help please!

Thanks,
RC :oops:
 

Some videos you may like

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

BJungheim

Well-known Member
Joined
Jul 24, 2004
Messages
914
Select Y1:Y2, go to Insert|Name|Define and call this range Yes.

Select Z4:Z5, go to Insert|Name|Define and call this range No.

Select Range H8, go to Data|Validation, select Lists in the first dropdown, and in the source box put =INDIRECT(M5).

This will change your data validation list based on what is in M5.

Keep in mind that this will not prevent someone from setting H8 and then changing M5.
 

rjc4

Well-known Member
Joined
Nov 6, 2004
Messages
502
Thankyou very much BJungheim for your prompt solution. Fits the bill perfectly.

Kind regards,
RC :biggrin: :biggrin: :biggrin:
 

Watch MrExcel Video

Forum statistics

Threads
1,118,812
Messages
5,574,457
Members
412,595
Latest member
slim313
Top