Data Validation List based on cell value

hrayani

Well-known Member
Joined
Jul 23, 2010
Messages
1,475
Office Version
  1. 2016
Platform
  1. Windows
Hello Friends,

I want to add data validation to cell C4 and H4

If cell A1 value = true then add validation list named "hi" to cell C4 & H4
If cell A1 value = false then add validation list named "hello" to cell C4 & H4

Any help would be appreciated

Regards,

Humayun
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Assuming the lists Hi and Hello are named vertical ranges:
Use your mouse and the ctrl key to select C4 & H4.
Data>Data Tools> Data Validation
Apply the settings below
1603395842206.png
 
Upvote 0
Solution
or another solution
Try in the 'J1' cell formula below
Code:
=VLOOKUP(A1,$J$2:$K$3,2,FALSE)
In Validation list put formula below
Code:
=IF(J1="hi",L2:L6,M2:M6)
 

Attachments

  • validationbasedoncelvalue.png
    validationbasedoncelvalue.png
    12.8 KB · Views: 18
Upvote 0
Assuming the lists Hi and Hello are named vertical ranges:
Use your mouse and the ctrl key to select C4 & H4.
Data>Data Tools> Data Validation
Apply the settings below
View attachment 24675


Thanks for the solution Joe....

Works just perfect.... And yes sorry for coming back late
 
Upvote 0
or another solution
Try in the 'J1' cell formula below
Code:
=VLOOKUP(A1,$J$2:$K$3,2,FALSE)
In Validation list put formula below
Code:
=IF(J1="hi",L2:L6,M2:M6)
Hi Navic,

Thanks for the reply..

Well the previous post solves the issue - but surely I will give it a go.

Regards,

Humayun
 
Upvote 0

Forum statistics

Threads
1,213,510
Messages
6,114,034
Members
448,543
Latest member
MartinLarkin

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