How to Make Sum to Each Column Seperatley?
Hi Experts, I Need your generouse help for learning purpose, How to Make Sum to Each Column Seperatley?
var myNumbers = app.selection[0].contents;
var mySum = 0;
if (app.selection[0].constructor.name != 'Cell') exit();
for (var i = 0; i < myNumbers.length-1; i++) {
mySum += Number (myNumbers[i]);
}
app.selection[0].cells[-1].contents = String (mySum);in the above code it just summing the selection of all columns but i need it to be seperated like this picture
:
