Hide previously used items in dropdown list?

danbates

Active Member
Joined
Oct 8, 2017
Messages
377
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I have copied a dropdown list off the internet and it works fine when on one sheet(Sheet3), but I would like to have all the data on Sheet3 and then the cells with the list on Sheets1 but I can't get it to work correctly.

This is what I have when its all on one sheet:

Col A with all the names 33 in total.

Col B
VBA Code:
=IF(COUNTIF($F$4:$L$24,A1)>=1,"",ROW())

Col C
VBA Code:
=IF(ROW(A1)-ROW(A$1)+1>COUNT(B$1:B$33),"",INDEX(A:A,SMALL(B$1:B$33,1+ROW(A1)-ROW(A$1))))

and then in the Name manager I have this
VBA Code:
=OFFSET(Sheet3!$C$1,0,0,COUNTA(Sheet3!$C$1:$C$33)-COUNTBLANK(Sheet3!$C$1:$C$33),1)


but when I put all the data on Sheet3 and then the dropdown list on Sheet1, only when I select the first name does it work right.
This is the only part of the code I changed thinking it would work.
VBA Code:
=IF(COUNTIF(Sheet1!B2:F19,A1)>=1,"",ROW())

I hope this makes sense and any help would be appreciated.

Thanks

Dan
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,214,819
Messages
6,121,746
Members
449,050
Latest member
excelknuckles

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