Posted 24 September 2019, 11:45 am EST
Figured out what the problem is.
When getting the cell we used:
var cell = getWorkBook().getActiveSheet().getCell(parts[2], parts[1]);
parts[1] and parts[2] are strings.
We changed the call to:
var cell = getWorkBook().getActiveSheet().getCell(parseInt(parts[2]), parseInt(parts[1]));
and both forms of get formula started working.
Looking at the cell, I noticed when using strings, row and column were strings in the cell, when using integers, row and column are numbers. Not sure why this would cause the cells referenced in the formula to be strange but it does (it is getting the correct formula.)
Thanks for looking in to this.