I'm currently trying to use this to find the standard deviation of a range while also ignoring 0 values:
WS[stdCoord].value = '=STDEV(IF(' + range + '<>0,' + range + '))'
When I use a print statement to print out that specific cell.value
the line before saving the workbook, it returns
=STDEV(IF(D2:D5<>0,D2:D5))
which is exactly what I want. However, when I open up the excel file, the cell gives me a #VALUE!
error with its contents being
=STDEV(IF(@D2:D5<>0,D2:D5))
I have no clue where this "@" symbol is coming from and no one else seems to be getting this weird behavior.
I've tried hard coding the exact string that I want, but the "@" symbol still appears. Even tried putting in random spaces in the string. Any ideas?