in reply to how to enter formula in excel
$Sheet->Cells(3,1)->{Value} = "=IF(A1=B1,\"PASS\",\"FAIL\")"; [download]
Or rather:
Please don't ever actually write a string in Perl with escaped embedded quotes.