A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
The SEARCH function gives an error if it doesn't find the string you're looking for.
Try it like this:
=IF(IFERROR(SEARCH("q",F87,1),0)<>0,"IT'S Q","IS NOT Q")