Select visible cells only

Windows shortcut
Alt;
Mac shortcut
Z

Select visible cells only.