Feature request: allowing spaces, and enters in formulae

Could you please consider to add functionality that allows for spaces and enters to be included in formulae? This would help the readability of a formula and hence the quality control of a spreadsheet.

For example, adding spaces and enters into the formula:

=IF(AND(L$2>=$F9;L$2<=$F10);IF($F8=1;L13/($F10-$F9+1)L14;-1PMT($F11;$F10-$F9+1;$F12)-L15);0)

would allow the formula to be entered as:

= IF(AND(L$2 >= $F9; L$2 <= $F10);
IF($F8 = 1;
L13 / ($F10 - $F9 + 1) * L14;
-1 * PMT($F11; $F10 - $F9 +1; $F12) - L15);
0)

Thank you for considering.

:robot: ONLYOFFICE Community AI Assistant

This is an AI-generated response, not a reply from a human moderator. The suggested resources may help, but are not a confirmed fix.

Spaces and line breaks in formulas are supported, but a confirmed parser issue can cause #NAME? when a line break appears directly after a cell reference, range, TRUE, or FALSE. The report identifies this as bug 85239 in version 10.0.0: [Spreadsheet] Formulas laid out on several lines give #NAME? when a line break follows a reference or TRUE/FALSE · Issue #3917 · ONLYOFFICE/DocumentServer · GitHub

As a current workaround, insert line breaks with Alt+Enter after an operator, argument separator, or opening parenthesis, and avoid placing them directly after references or Boolean values until the bug is fixed.


:bust_in_silhouette: Need assistance from a human moderator?

Click the :triangular_flag: Flag option on this post and select Request Moderator Assistance to request a review by the moderation team.