-
Notifications
You must be signed in to change notification settings - Fork 72
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
Adding @ for formulas #352
Comments
Realized this is a duplicate of |
I've never been able to reproduce the issue. Could you check if the steps to reproduce still apply? |
Following his instructions under awalker89/openxlsx#519 I'm able to reproduce it. The random "@" sign shows up for me. |
To be clear: Doing array=T solves the issue. But it would be good to know why it actually happens, because in other sections I'm using explicit @-signs in formulas like @RANGE_XYZ-SUM(RANGE_ABC) and there I don't think I can use the array=T clause. |
I'm rather clueless myself, there is no instruction to add @ in openxlsx, therefore the sign must be added for other unknown reasons. What should happen: the formula is written as is, though for whatever reason it is mixed up. Might be some windows problem, but could be completely unrelated. |
I did some research on the topic. The issue is caused by |
Hi,
When writing formulas with named ranges, sometimes it adds an "@" in front of the name even though that's not how it was written to openxlsx.
E.g.
SUMPRODUCT((IF(NOT(ISERROR(price)),price,0))(price))
would switch to
SUMPRODUCT((IF(NOT(ISERROR(@price)),price,0))(price))
This would not happen if I don't have the "IF(NOT(..." around it.
I'm not sure whether this is Excel (when opening the file) or openxlsx.
Will add a reprex asap but maybe someone has come across this before.
The text was updated successfully, but these errors were encountered: