Create a drop down list if adjacent cell is populated

AverageJoe

New Member
Joined
Sep 8, 2014
Messages
2
Windows 7 / Excel 2010

I would like to create a drop-down list based on whether an item in a list has been 'selected' by placing an 'X' in the preceding adjacent cell.

Data:
A B
Apples
X Pears
X Grapes
Lemons

The drop-down list should only include Pears and Grapes.
 
So basically, you're going to need two lists (as I understand it). Lets say your drop down is in cell A1. In column C, you have your list {Apples, Pears, Grapes, Lemons}. In column B you have your marker {,X,X,}. Then, in column D, you have an if statement.

Code:
=IF(B1<>"",C1,"")

Your data validation should now be column D.
 
Upvote 0
Thank you. This solution works well. Is there a way to remove the empty spaces included in the drop-down list?
 
Upvote 0

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