Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formula in cell #3

Closed
AlfonsoIdem opened this issue Dec 21, 2021 · 3 comments
Closed

Formula in cell #3

AlfonsoIdem opened this issue Dec 21, 2021 · 3 comments

Comments

@AlfonsoIdem
Copy link

AlfonsoIdem commented Dec 21, 2021

Hello.
Is there any way to create a cell with a formula like:
=N7+T7

@miyako
Copy link
Owner

miyako commented Dec 21, 2021

what have tried so far ?

@AlfonsoIdem
Copy link
Author

$textXls:="=N"+String($rowSel)+"+T"+String($rowSel)
$cell:=XLS WORKSHEET Set cell text($sheet; $row; $Col; $format; $textXls)

But it does not recognize it as a formula

$textXls:="=N"+String($rowSel)+"+T"+String($rowSel)
$cell:=XLS WORKSHEET Set cell fn($sheet; $row; $Col; $format; $textXls)

It does nothing.

@miyako
Copy link
Owner

miyako commented Dec 22, 2021

I am not sure but I think it is not possible. expression like "=A1+B1" must be parsed and analysed. it doesn't have any special meaning as text.

looking at the source, it seems like the binary_op_node_t class is used to construct a non-formula expression.

I don't use this plugin myself, perhaps you can search the internet for xlslib examples, but you might not find much discussion.

.xls (BIFF) has been out of fashion for nearly 20 years.

@miyako miyako closed this as completed Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants