Drop down list that doesn't allow items selected in other lists.

Aulakhveer

New Member
Joined
Jul 11, 2019
Messages
1
I am creating an order form that allows users to select items from a drop down. I want a pop up to show up when they order the same item more than once. I have the following formula for the Data Validation (list) for the drop down
[=INDEX(REFERENCETBL!$A$4:$A$193,AGGREGATE(15,3,(REFERENCETBL!$G$4:$G$193=D22)/(REFERENCETBL!$G$4:$G$193=D22)*(ROW(REFERENCETBL!$G$4:$G$193)-ROW(REFERENCETBL!$G$3)),1))]

and tried including the a countif formula in the Data Validation but i kept getting a Compile Error
[=AND(INDEX(REFERENCETBL!$A$4:$A$193,AGGREGATE(15,3,(REFERENCETBL!$G$4:$G$193=D22)/(REFERENCETBL!$G$4:$G$193=D22)*(ROW(REFERENCETBL!$G$4:$G$193)-ROW(REFERENCETBL!$G$3)),1)),COUNTIF(F22:F50,F22)=1)]

I also tried getting a pop up for duplicate items in VBA but I could get anything to pop up. I feel like it has to do with the Drop list, as most formulas i have seen only get initiated when an item is entered into a cell and not selected from a drop down.

Sorry if I made any errors or if left anything out.
 

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,398
Messages
6,124,688
Members
449,179
Latest member
kfhw720

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