Ensure that '#REF!' is properly accounted for, and add escaped quotes.