Posted 14 November 2025, 3:44 am EST
Hi Yukinori,
Thank you for sharing the sample workbook.
We reviewed the formulas and evaluated the workbook using both Excel and DsExcel. In both environments, the calculated value of D22 is 3, which is the correct outcome based on the formula chain.
Here is the breakdown for clarity:
Formula in D22: =IF(I26<>“”, I26, IF(I27<>“”, I27, I28))
I26: empty
I27: empty
Formula in I28: =IF(C4<>“OK”, $C$28, $C$25)
C4 contains “NG”
Since “NG” is not equal to “OK”, the formula correctly picks C28, which contains 3
So the calculated value of D22 is expected to be 3 in both Excel and DsExcel.
If your scenario expects the cell to return 0, or if the behavior differs in a specific version/environment, please let us know and we’ll investigate further.
Kind regards,
Chirag