I don't think you can selectively format when a formula is involved.