Macro Sheets Only
Enters a text label or SERIES formula in a chart. To enter formulas on a worksheet or macro sheet, use syntax 1 of this function.
Syntax
FORMULA(formula_text)
Formula_text is the text label or SERIES formula you want to enter into the chart.
If Then
Formula_text can be treated as a text label and the current selection is a text label |
The selected text label is replaced with formula_text. |
Formula_text can be treated as a text label and there is no current selection or the current selection is not a text label |
Formula_text creates a new unattached text label. |
Formula_text can be treated as a SERIES formula and the current selection is a SERIES formula |
The selected SERIES formula is replaced with formula_text. |
Formula_text can be treated as a SERIES formula and the current selection is not a SERIES formula |
Formula_text creates a new SERIES formula. |
Remarks
You would normally use the EDIT.SERIES function to create or edit a chart series. For more information, see EDIT.SERIES.
Example
The following macro formula enters a SERIES formula on the chart. If the current selection is a SERIES formula, it is replaced:
FORMULA("=SERIES(""Title"", , {1, 2, 3}, 1)")
Related Function
EDIT.SERIES Creates or changes a chart series
Syntax 1 Enters numbers, text, references, and formulas in a worksheet
List of Command-Equivalent Functions