The Magic Wand tool lets you select objects that have similar appearance attributes.
Click the Magic Wand tool or press Y.
Click the object containing the attributes you want. All objects with similar attributes are selected.
Double-click the Magic Wand tool to open the Magic Wand dialog and customize your attributes, like Fill color, Stroke color, Stroke weight, Opacity, or Blending mode.
To subtract from the selection, press and hold Alt (Windows) or Option (macOS) and click the object containing the attributes you want to subtract.