jspreadsheet / jspreadsheet/ce
COUNTIF doesn't work if criteria contains a digit
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 7.2k
- Forks
- 890
- PR merge metrics
- No merged PRs in 30d
Description
Try this:
=COUNTIF([A1:E1],"A")
it works, but this does not:
=COUNTIF([A1:E1],"A3")
I'm trying different combinations, it always fails if criteria contains a digit, wherever it's in the string.
Any clue?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the two COUNTIF formulas in the spreadsheet grid and compare the results for criteria with and without digits. Trace the COUNTIF handling to identify where criteria such as "A3" fails. Done means COUNTIF matches criteria containing digits as well as criteria containing only letters.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100