Using Excel Built-in Functions on top of the UDF

后端 未结 1 416
猫巷女王i
猫巷女王i 2021-01-27 19:17

I don\'t know why for some reason the Excel built-in function =SUM() can\'t really sum up the results created by the custom UDF. It appears to always end up with 0.

相关标签:
1条回答
  • 2021-01-27 19:47

    Is your UDF returning a number or a string that happens to contain numeric characters?

    If I go into Excel and type in '10 (10, formatted as a string) and '15 (15, formatted as a string), and SUM() them, I get 0.

    If I type 10 and 15 (formatted as numbers) and SUM() them, I get 25.

    Some example code that reproduces the problem would allow us to answer for sure.

    0 讨论(0)
提交回复
热议问题