[GH-ISSUE #185] Question: R1C1 reference style #153

Closed
opened 2026-05-05 11:47:46 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @almos on GitHub (Jun 7, 2018).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/185

Originally assigned to: @jmcnamara on GitHub.

Have a need to write formulas in R1C1 reference style.
Is it possible to enable R1C1 reference style for workbook/worksheet and use for formulas?
Thank you

Originally created by @almos on GitHub (Jun 7, 2018). Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/185 Originally assigned to: @jmcnamara on GitHub. Have a need to write formulas in R1C1 reference style. Is it possible to enable R1C1 reference style for workbook/worksheet and use for formulas? Thank you
gitea-mirror 2026-05-05 11:47:46 -06:00
Author
Owner

@jmcnamara commented on GitHub (Jun 7, 2018):

Hi,

This is something that is mentioned in the XlsxWriter docs but not in the libxlsxwriter docs. I should fix that.

Basically, R1C1 isn't supported and it is unlikely that it will be. The main issue is that Excel doesn't store the formulas in R1C1 format. If a user writes a formula in cell B5 like=R[-3]C+R[-2]C[4] it is actually stored in the file as =B2+F3.

This means that an xlsx file writer, like libxlsxwriter, would have to convert all formulas from R1C1 to A1, which would mean parsing and converting all formulas. That isn't practical to implement.

So this won't be implemented. Sorry.

John

<!-- gh-comment-id:395403931 --> @jmcnamara commented on GitHub (Jun 7, 2018): Hi, This is something that is mentioned in the XlsxWriter [docs](https://xlsxwriter.readthedocs.io/working_with_cell_notation.html) but not in the libxlsxwriter docs. I should fix that. Basically, R1C1 isn't supported and it is unlikely that it will be. The main issue is that Excel doesn't store the formulas in R1C1 format. If a user writes a formula in cell B5 like`=R[-3]C+R[-2]C[4]` it is actually stored in the file as `=B2+F3`. This means that an xlsx file writer, like libxlsxwriter, would have to convert all formulas from R1C1 to A1, which would mean parsing and converting all formulas. That isn't practical to implement. So this won't be implemented. Sorry. John
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/libxlsxwriter#153
No description provided.