简体   繁体   中英

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? 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?

yes:

Select the range you want to search. A column, let's say.

Then hit ctrl+F to find.

Enter in your values (ie'Chicago') in the find what field.

Then hit 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. You will see all results highlighted.

Then when you look at your sheet all 'Chicago' cells will be selected.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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