I have a combo box, which is populated (I used the wizard) to the "Branch" column of a query. However, each "branch" can be listed multiple times, and I want it to only list each branch once. How do I get rid of duplicate values?
Go to the Combo's Properties. Select Row Source. Click on the three dots. This will bring up the Query Builder. Click on the Sigma sign in the Toolbar (the button that looks like an 'E'). This will make your query a Group By query, which will return only Distinct Values (i.e. no matter how many times the same data appears in the table, it will appear in the combo box only once).
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.