Hi!
I have the following formula from an imported Google Sheet
=countifs($B$2:$B; "<>0" ; $D$2:$D ; FALSE)*220
In the B column, I have a list of dates
In D column, I have a list of booleans (TRUE/FALSE checkboxes)
Opening this formula, we have:
Range 1 = $B$2:$B
Condition 1 = Must be different than zero
Range 2 = $D$2:$D
Condition 2 = The corresponding line from B (if <>0) must have a FALSE value.
The purpose of this biconditional is to give me an amount of dates when an event happened (B col) and if this respective date was paid (D col) and multiply by the cost of the event (220 Dollars) and see how much debt still exists.
In column B I have 23 dates
In column D I have 18 TRUE values
The formula should return this: 23 filled cells - 18 TRUE values = 5 filled cells with FALSE value * 220.
Google Sheets returns the correct result (5 * 220 = 1100)
However, in Zoho Sheets, this exact same formula returns the value of 215.820,00 instead of 1100,00. So I guess Zoho counts every empty cell as "" instead of 0. But I can't find anyway to refer these cells as "different from empty". I guess the problem is in the way to get "different from zero/empty".
The "<>0" issue:
I've tested all parts of the formula, and when counting values different from 0 always bring the problem in Zoho. So I tried to replace it for something else functional. However...
Replacing the "<>0" for <>"" returns #NAME error
Using "NOT(ISBLANK($B$2:$B))" returns a #SPILL
Tried to use a COUNT(NOT(ISBLANK($B$2:$B))) and this part only returns the number counting every cell in this range (65535). The full COUNTIF formula returns 0.
Can anyone give me a glimpse of how to solve this?
SPILL issue
Another doubt I have is that I'm not used to this kind of "query" in Zoho Sheets.
Sometimes using formulas with absolute references, the sheet return a query as result, filling all cells below with each match. However, I just want the counting, or just the matching value for a part of the formula, but it keeps dropping a ton of unwanted results.
I think the SPILL behavior is super useful in many situations, but I'm not used to having it as standard behavior.
Is there any workaround for this?