poysec.blogg.se

How to create a drop down menu in excel 2016
How to create a drop down menu in excel 2016









how to create a drop down menu in excel 2016

how to create a drop down menu in excel 2016

INDIRECT returns the reference specified by a text string: the reference we want to return is the relevant location column and the text string is specified by the value selected in cell A2 (our first drop down). In the source box we are going to use the INDIRECT function to specify that we only want to show values from the relevant named list in sheet 2 – so either the London, Birmingham or Bristol list. Now select the Data tab on the Ribbon and in the the Data Tools group, click the Data Validation button. Click in cell B2 in the first sheet under your heading Employees. You have your first drop down list, now on to the second. In the Source box specify the range of cells in the your second sheet that contains your offices – in my example this would be A2:A5 so the range would be =Sheet2!$A$2:$A$4 (note the equals sign before the range – this is necessary!!!). One way of restricting users to entering ‘valid’ values is to provide a drop down list. Data validation allows you to specify valid entries for a cell. Next select the Data tab on the Ribbon and in the the Data Tools group, click the Data Validation button. Click in cell A2, under your Location heading. In the resulting dialog box make sure Top Row is the only thing ticked: we are saying name these columns based on the top row values – ie London, Birmingham and Bristol. To name the columns click the Formulas tab on the Ribbon and in the Defined Names tab click the Create from Selection button. Naming columns makes it much easier to refer to them later on in the task. Please make sure that the location names in cells A2 – A5 are typed in exactly the same as the location headings in B1 to D1. Just to walk you through the example shown in the video. Start off in the first sheet of the workbook by typing in two column headings Location in A1 and Employees in A2. In the second sheet, type the following data – or make up your own locations and names. So in effect the first drop down needs to filter the second.

How to create a drop down menu in excel 2016 full#

If I select “London” in the first drop down I only want the London employees to appear in the second – I don’t want the full list of employees. In the example shown in the video our first drop down allows us to specify a location – this could be an office location and the second drop down an employee. Cascading or dependent drop downs are really useful when you have categories and sub-categories that you want to be able to specify within an Excel worksheet.











How to create a drop down menu in excel 2016