In Google spreadsheet, the formula was:
In the exported excel, it came out as
Really weird export. It took me a while to suspect that the missing parameter was causing the problem. Once the parameter was supplied, the exported excel looked fine.