Help with IF MOD formula

I need a field that will tell me if a field (Y2D) is divisible by 3 and not = to 0. I thought I had the formula correct below, but I am getting an error.

if((AND (MOD({Y2D},3)=0),(({Y2D})>“.5”)),”Y”,”N”)

Try

IF(AND(MOD({Y2D},3)=0,{Y2D}>.5),"Y","N")