mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #395] Bug in conditional formats using LXW_CONDITIONAL_TYPE_TEXT with criteria LXW_CONDITIONAL_CRITERIA_TEXT_CONTAINING #313
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#313
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @martinzeh on GitHub (Feb 23, 2023).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/395
Originally assigned to: @jmcnamara on GitHub.
I generated Excel file with libxlsxwriter and the conditonal format in sheet1.xml look as follows:
Excel opens the file without errors, but the conditional format won't be applied if i write 'u0' into a cell.
It seems to me, the problem is the cell 'AI2' in the formula. It should be 'H2'
To fix this, the function worksheet_conditional_format_range has to be changed. I think the cond_format->first_cell ist wrong in this case
@jmcnamara commented on GitHub (Feb 23, 2023):
Could you add a small complete, compilable, example that demonstrates the issue.
Note, match strings usually have to be double quoted in Excel. However, we won't know if that is the issue or if it is something else without a program to demonstrate the issue.
@martinzeh commented on GitHub (Feb 23, 2023):
Here is an example code. The created excel file has a conditional format but it does not apply to the cell "u0".
If you change worksheet.c as I mentioned the format works.
@jmcnamara commented on GitHub (Feb 23, 2023):
Thanks for the sample code.
That is a bug and it is in the area where you reported it. I've pushed a fix to main.
Regards.