-
Notifications
You must be signed in to change notification settings - Fork 810
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
SUMIF doesn't consider only first column #2041
Comments
Please provide a smaller sample, minimal would be best. The workbook has 35 worksheets with a large amount of data and formulas are across many worksheets, in an alphabet I am not familiar with (i.e. checking where references go across worksheets is an excercise - does this looks similar). Also, my Excel will say that it needs to repair the file on load, likely because I use English version. |
That's the problem - I can't reproduce this problem myself. A user sent me this file and it is exactly the problem. |
I have trimmed it down a lot, but it is still massive. Trimmed file (still massive): default7.xlsx |
@Pekshev Please track the call to a function/feature that doesn't work (i.e. go deeper and deeper into the call chain of the workbook and verify that ClosedXML gives the different result than Excel for the arguments/cell). Minimum verifiable example is a requirement for bugs. I am closing the issue in the meantime. When you do that, reopen the issue. |
I managed to trace the cause. On a different sheet, there is a |
Example of culprit: in the original attached workbook. |
Read and complete the full issue template
Do not randomly delete sections. They are here for a reason.
Do you want to request a feature or report a bug?
Did you test against the latest CI build?
If you answered
No
, please test with the latest development build first.Version of ClosedXML
0.100.3
(Installed via nuget.org using NuGet package manager)
What is the current behavior?
When reading a complex file with lots of formulas and links, it gives wrong formula calculation results
What is the expected behavior or new feature?
Complete this.
Is this a regression from the previous version?
No
Reproducibility
This is an important section. Read it carefully. Failure to do so will cause a 'RTFM' comment.
No special actions are needed: just open the attached file and take the value of cell (13, 9) from the first sheet as an example
Value in file:
![image](https://user-images.githubusercontent.com/12638819/228858137-b5aeb2c2-8a1b-48c3-9747-2dee9c7f69ea.png)
The value produced by the code:
![image](https://user-images.githubusercontent.com/12638819/228858303-14bb57dc-cb21-4a82-987d-a3266ef8a936.png)
Code to reproduce problem:
Расчёт гидравлики СНТ Вишня.xlsx
The text was updated successfully, but these errors were encountered: