How can you sort data validation input list in google spreadsheet

会有一股神秘感。 提交于 2021-02-08 20:52:37

问题


Given the following data validation setup I can only select foods in the way I entered them in the list of foods column. Is there a way to sort these before I'm able to select those?

enter image description here


回答1:


You could use a PivotTable to help you:

  1. Select the field containing the list and go to 'Data' > 'Pivot table report...'

  2. Click 'Add field' for 'Rows' and pick the field in the dropdown. Ensure that the order is ascending, that the 'Show totals' is unchecked (or else, you'll get 'Grand Total' in your validation) and that the option is to update the table on each change:

enter image description here

Note: You usually get the pivot table in a different sheet. You can copy/paste the data in that new sheet and change the source data by clicking on 'Edit range...' like I did in the picture above, then delete the initial sheet.




回答2:


You can use this formula to automatically sort the data you're entering:

=SORT(UNIQUE(A2:A500))

Enter this formula into another column, or another sheet, and use that range instead as the source for your data validation.



来源:https://stackoverflow.com/questions/21917210/how-can-you-sort-data-validation-input-list-in-google-spreadsheet

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!