Custom Data Validation : drop down list

Kanashii7

New Member
Joined
Oct 25, 2016
Messages
6
Hello !!!

I am completely stuck here !

I would like to create a drop down list with 2 items but I have a limited amount of those items.
I have 10 "Item A" and 5 "Item B". I would like my drop down list to only allow me to input 10 "Item A" and 5 "Item B".
That is to say once I have selected 5 times "Item B" it disappears from my drop down menu...

How can I do that ?

Here's my file...
Essais.xlsx

Thank you !!!!!!
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
I would put This in your Data column instead of just values.

<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'}span.s1 {color: #006107}span.s2 {color: #0057d6}span.s3 {color: #ab30d6}</style>F2
=IF(COUNTIF(B3:B17,"ITEM A")>9,IF(COUNTIF(B3:B17,"ITEM B")>4,"","ITEM B"),"ITEM A")

F3
<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'}span.s1 {color: #006107}span.s2 {color: #0057d6}span.s3 {color: #ab30d6}</style>
=IF(OR(F2="ITEM B",COUNTIF(B3:B17,"ITEM B")>4),"","ITEM B")

Then with those two cells selected as the data validation list, It should adjust itself as you put in items down the list.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,071
Latest member
cdnMech

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