Page tree
Skip to end of metadata
Go to start of metadata

Set formula of the cell in which the caret is positioned.


Parameters:

NameTypeDescription
actionNameString'setFormula' cell formula setting API
formulaTextString

Formula


Example:

// 합계
editor.execCommand('setFormula', 'SUM(A1:B3)');

// 평균
editor.execCommand('setFormula', 'AVERAGE(A1:B3)');
  • No labels