I'm using the following formula to create a quarter and year for my pivot table:

="Q"&INT((MONTH(D1)+2)/3)&TEXT(D1," yy")

It works for the most part, but when the cell it pulls from is blank, it returns Q1 00. Any suggestion on how to return either an ERROR or blank cell when the cell is blank?