I am trying to generate an Excel sheet using Exceljs on NodeJS. I need to get a particular cell (E4) for which I have this code written.
var row = worksheet.getRow(4);
var compInfra = row.getCell(5);
The cell ('E4') contains a value as the result of a formula ('E4 = C4+D4'), which I have defined previously. C4 and D4 contain non zero numbers.
I need to use this resultant value of the formula in a subsequent statement as below:
row = worksheet.getRow(20);
row.getCell(5).value = compInfra * worksheet.getCell('A20');
I get no output on my Excel sheet at 'E20', since the value in 'E4' is a result of the formula. If I choose any other cell with some value instead of a formula, I get the result correctly. How do I address this issue.
Thanks in advance