Drop-down menus in tables and removing used items from that menu

ctroxtell

New Member
Joined
Jan 14, 2015
Messages
11
Office Version
  1. 365
  2. 2016
Hey guys, I'm hoping someone can help get me on the right track. I'm working on an Excel sheet that has 100+ addresses on it with employees on the sheet. I'm trying to make it so the drop-down menu will only allow the list item to be selected one time. The sheet has 10 tables, 1 for each staff member with a column in a table labeled Address, then I've created a table that holds my entire list of addresses. How can I hide the addresses that have already been selected from the drop down menu? Currently using Excel 365, I was experimenting and had got it partially working with COUNTIF but it wouldn't translate when I selected the entire address column
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Properties.xlsx
RSTUVWXYZ
7OpenAddress Sq ft FS
8100 Johnson Ridge Rd (Elkin)4,262FS
9100 Kimel Forest Dr (Winston)72,478FS
10Bldg #Address S/F 100 Regent Dr (Winston)37,785LO
11R2000 Cloverdale Ave (Winston)5,9611002 N Church St, Ste 203 (Greensboro)1,546R
12FS2200 Cloverdale Ave (Winston)75,816101 Charlois Blvd (Winston)15,676FS
13FS403 S Hawthorne Rd (Winston)4,5021010 Bethania Rural Hall Rd (Rural Hall)1,025FS
14R1920 Queen St (Winston)2,5061014 N Elm St (Greensboro)3,547FS
15FS910 Worth St (Mt. Airy)17,8601015 Worth St (Mt. Airy)2,520FS
16R231 Melrose St (Winston)10,5521038 Bethania Rural Hall Rd (Rural Hall)9,800FS
176Total Square Footage FS117,197109/111 Gateway Center Dr (Kernersville)11,292FS
18LO1126 North Church Street4,792111 Hanestown Ct (Winston)16,919FS
191Total Square Footage LO4,7921126 North Church Street4,792LO
20113 Market Place Dr (Mocksville)2,700LO
217Grand Total121,9891132 N Church St (Greensboro)17,500LO
Su
Cell Formulas
RangeFormula
R11:R16,R18R11=IFERROR(VLOOKUP([@Address],Table1,3,FALSE),"")
R17R17=COUNTA(R11:R16)
R19R19=COUNTA(R18)
T11:T16,T18T11=IFERROR(VLOOKUP([@Address],Table1,2,FALSE),"")
T17T17=SUM(T11:T16)
T19T19=SUM(T18)
R21R21=SUM(R17+R19)
T21T21=SUM(T17,T19)
Cells with Data Validation
CellAllowCriteria
S11:S16List=$X$8:$X$107
S18List=$X$8:$X$107


Here is a sample of what I'm working with. Is this a feasible option or is there a better way to achieve this result? The address in the table listed as open has data validation running off of the address table to the right.
 
Upvote 0
I have used smaller sample data but try like this using a helper column (AB for me)
Table1 is the right hand table with Table2 on the left.

ctroxtell.xlsm
RSTUVWXYZAAAB
7AddressSq ftFS
8Address 14,262FSAddress 1
9Address 272,478FSAddress 2
10Bldg #AddressS/FAddress 337,785LOAddress 4
11  Address 41,546RAddress 6
12FSAddress 515676Address 515,676FSAddress 7
13  Address 61,025FSAddress 8
14LOAddress 337785Address 73,547FS
15FSAddress 1011292Address 82,520FS
16  Address 99,800FS
17  Address 1011,292FS
18FSAddress 99800
19
20
Sheet1
Cell Formulas
RangeFormula
AB8:AB13AB8=FILTER(Table1[Address],ISNA(MATCH(Table1[Address],Table2[Address],0)),"")
R11:R18R11=IFERROR(VLOOKUP([@Address],Table1,3,FALSE),"")
T11:T18T11=IFERROR(VLOOKUP([@Address],Table1,2,FALSE),"")
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
S11:S18List=AB$8#


1729731946072.png
 
Upvote 0
Thanks! That works for the first table called "Open" but I have 9 more tables I need to check the addresses on to see if those properties are assigned. Is it possible to add them into this formula?
 
Upvote 0
Could you make up a sample with say 3 small tables partially filled in, post that with XL2BB, and explain what is required in relation to that new sample data?
 
Upvote 0
Su.xlsx
NOPQRSTUVWXYZ
7Employee 1Employee 3Address Sq ft FS
8Address 14,262FS
9Address 272,478FS
10Bldg #Address S/F Bldg #Address S/F Address1137,785LO
11RAddress 154,000RAddress 15,961Address 21,546R
12FSAddress 1218,384FSAddress 275,816Address #15,676FS
13FSAddress 120,000FSAddress 24,502Address #1,025FS
143Total Square Footage FS292,384RAddress 32,506Address #3,547FS
15FSAddress 417,860Address #2,520FS
163Grand Total292,384RAddress 710,552Address #9,800FS
176Total Square Footage FS117,197Address #11,292FS
18LOAddress 94,792Address #16,919FS
19Employee 21Total Square Footage LO4,792Address 94,792LO
20Address #2,700LO
217Grand Total121,989Address #17,500LO
22Bldg #Address S/F Address #3,091FS
23FSAddress 1054,000Address #4,000FS
24FSAddress 6218,384Address #7,156R
25FSAddress 20,000Address #3,115R
263Total Square Footage FS292,384Address #48,256FS
27Address #3,900LO
283Grand Total292,384Address # Land R
Hiatt
Cell Formulas
RangeFormula
N11,N23N11=IFERROR(VLOOKUP(Table1[@Address],Table1,3,FALSE),"")
N12:N13,N24:N25N12=VLOOKUP([@Address],Table1,3,FALSE)
N14,N26N14=COUNTA(N11:N13)
P11:P13,P23:P25P11=VLOOKUP([@Address],Table1[[Address]:[Sq ft]],2,FALSE)
P14,P26P14=SUM(P11:P13)
N16,N28N16=SUM(N14)
P16,P28P16=P14
R11:R16,R18R11=IFERROR(VLOOKUP([@Address],Table1,3,FALSE),"")
R17R17=COUNTA(R11:R16)
R19R19=COUNTA(R18)
T11:T16,T18T11=IFERROR(VLOOKUP([@Address],Table1,2,FALSE),"")
T17T17=SUM(T11:T16)
T19T19=SUM(T18)
R21R21=SUM(R17+R19)
T21T21=SUM(T17,T19)
Cells with Data Validation
CellAllowCriteria
S11:S16List=$X$8:$X$107
O11:O13List=$X$8:$X$107
S18List=$X$8:$X$107
O23:O25List=$X$8:$X$107


Okay, so I have a master list of addresses as seen on the right side of the page. My goal is to have the data validation on the address field of each employee (1,2,3) but I do not want the address to be available in the drop down menu if it has been selected for one of the other employees or if I have it selected already. The previous formula worked but it only allowed me to filter it on the 1st employee. Would I have to multiple helper columns and link them to each other? Thank you for your assistance with this!
 
Upvote 0
In my previous layout, change the AB8 formula to this, adding the required table names into the VSTACK function

Excel Formula:
=FILTER(Table1[Address],ISNA(MATCH(Table1[Address],VSTACK(Table2[Address],Table3[Address],Table4[Address]),0)),"")

All tables would use =$AB$8# in their data validation 'Source' box
 
Upvote 0
Solution
It works! Can I buy you a beer for the sharing your knowledge? I have one slight issue after using this. After making the selection from the drop-down menu, I get an error stating, "The value in this cell is invalid or missing." I'm guessing this is because it has been removed from the list.
 
Upvote 0
It works! .... After making the selection from the drop-down menu, I get an error
:confused: Those seem contradictory!

I am not getting such an error.
Can you detail exactly what you do to get that error?
 
Upvote 0
Yes, it works as it only allows me to select the unselected items but in the very left corner of the cells it has the little red triangle. Each drop down is refrenced to $AB$8#, the formula for the AB8 is =FILTER(Table1[Address],ISNA(MATCH(Table1[Address],VSTACK(Table2[Address],Table3[Address],Table4[Address],Table5[Address],Table6[Address],Table7[Address],Table8[Address],Table9[Address],Table10[Address],Table11[Address]),0)),""). Selecting the drop down menu from the list the warning yield sign pops up and states "The value in this cell is invalid or missing. Click on "Display Type Information" for specific details." Clicking "Display Type Information" I get a "Data Type: List, Restriction: Value must match one of the listed items., Blanks will be ignored and are automatically valid."
 
Upvote 0

Forum statistics

Threads
1,224,259
Messages
6,177,482
Members
452,782
Latest member
ZCapitao

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