$worksheet->write($i,1,"=BDH()"); #fails to write in Excel #### $worksheet->write_string($i,1,"=BDH()");