简体   繁体   English

将范围定义为所有包含特定值的单元格

[英]Define a range as all cells that contain a certain value

Is it possible in excel to define a range to include every cell in a column that contains a certain value? 在excel中是否可以定义一个范围以包括包含特定值的列中的每个单元格? So, if Column A has a list of City names, Detroit, Chicago, etc. would I be able to automatically select all instances of "Chicago" even if they are in random order without using a VBA macro? 因此,如果列A包含城市名称,底特律,芝加哥等的列表,我可以自动选择“芝加哥”的所有实例,即使它们是随机的,也无需使用VBA宏?

yes: 是:

Select the range you want to search. 选择您要搜索的范围。 A column, let's say. 假设是一列。

Then hit ctrl+F to find. 然后按ctrl+F查找。

Enter in your values (ie'Chicago') in the find what field. 在“ find what字段中输入您的值(即“芝加哥”)。

Then hit Find All . 然后点击Find All

This will bring up a box below with all the addresses of matches. 这将在下面显示一个带有所有匹配地址的框。

Click on one match. 点击一场比赛。

Then hit Ctrl+A to select all. 然后Ctrl+A以全选。 You will see all results highlighted. 您将看到所有结果突出显示。

Then when you look at your sheet all 'Chicago' cells will be selected. 然后,当您查看表格时,所有“芝加哥”单元格都会被选中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM