Pull data to drop down list only if cell value is yes

Neste

New Member
Joined
Jan 16, 2015
Messages
47
Code:
ColumnA   ColumnB                ColumnC                        ColumnD                        ColumnE
[B]ProdID	ProdName	             ProdDesc	                  Active?		               For DropDownList[/B]
ID1	        Item1	             ProdDesc1	                  Yes		                       Item1
ID2	        Item2	             ProdDesc2	                  Yes		                       Item2
ID3	        Item3	             ProdDesc3	                  Yes		                       Item3
ID4	        Item4	             ProdDesc4	                  No		                       Item6
ID5	        Item5	             ProdDesc5	                  No		                       Item7
ID6	        Item6	             ProdDesc6	                  Yes		                       Item8
ID7	        Item7	             ProdDesc7	                  Yes		                       Item10
ID8	        Item8	             ProdDesc8	                  Yes		
ID9	        Item9	             ProdDesc9	                  No		
ID10	        Item10	             ProdDesc10	                  Yes		
ID11	        Item11	             ProdDesc11	                  No

Hi really stuck with some excel functions, would need some help from the good people here :)

So i have managed to make a formula like this in ColumnE:
=IFERROR(INDEX($B$1:$B$12;SMALL(IF($D$1:$D$12<>"No";ROW($B$1:$B$12));ROW($B1)+1));"")

And I have a drop down list with this forumla:

=OFFSET($F$2;0;0;COUNTA($F:$F)-1)

What I want to do here is only pull data from ColumnB if it is Activ? in Column D and get that in to Data Validation Drop down list without any blanks and alos if more Products are added, Drop down list should auto update.

So get from Column B if ColumnD is "yes".
Display result in Data Validation Drop Down list.
Take away blanks and auto update new Product values.

Thank you for helping.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,215,300
Messages
6,124,138
Members
449,144
Latest member
Rayudo125

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