i am trying to generate an excel sheet with python and xlsxwriter and i want to have the following formula in the cell:
=IFERROR(AVERAGE(A1:A10);"")
whereas my german excel would show this as
=WENNFEHLER(MITTELWERT(A1:A10);"")
but i dont really think the language aspect is making a difference.
It works nicely as long as i am doing:
worksheet.write_formula(l+4,1+k,"=AVERAGE(%s%s:%s%s)"%(chr(65+1+k),4,chr(65+1+k),l+4))
what does not work is using nested formulas. Excel always errors upon opening the sheet. I think this should be working:
worksheet.write_formula(l+4,1+k,"=IFERROR(AVERAGE(%s%s:%s%s);0)"%(chr(65+1+k),4,chr(65+1+k),l+4))
I believe i am making either a syntax mistake or hitting a limitation in xlsxwriter. Does somebody know how this works in xlsxwriter.
I was unable to find nested formulas in the docs or any examples of this elsewhere. Is this even possible?
Best,
Nosferuity