The cell where the function was probably pre-formatted Boolean value. Have you tried Right click "Clear Direct Formatting"?