Apply Filter on Data Validation List based on row value

usmanmunir01

New Member
Joined
Sep 30, 2016
Messages
1
HI I have two Columns

DataProducts
ONProduct 1
OFFProduct 2
ONProduct 3

<tbody>
</tbody>

I want to populate a data Validation list which has the values where Data=ON

Please help.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
In an unused area, say H1, enter this formula via ctrl+shift+enter:
=IFERROR(INDEX($B$1:$B$10,SMALL(IF($A$1:$A$10="on",ROW($A$1:$A$10),""),ROW(A1))),"")
Fill down as far as you need
In I1, ctrl+shift+enter this:
=MATCH(TRUE,H:H="",0)-1
Define a name, like Prods, to be =OFFSET($H$1,0,0,$I$1,1)
(Excel will append the sheet name).
Now use data validation somewhere with a list where the list name is =Prods
(ensure calculation is automatic)
 
Upvote 0

Forum statistics

Threads
1,216,763
Messages
6,132,583
Members
449,737
Latest member
naes

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