Product status and availability

Hi, is it posible to make the products marked as "R" and/or "Q" not count as available? I'm trying to find something at Stock Management Rules but i'm having no luck.

Thanks in advance.