The Ql throwws error when it is trying to compute a bond yield from price, when resulting yield happens to be negative using =qlbondyield(). Please see attached spreadsheet with example of the problem. Please read Excel comments on "Negative Yield..." tab for some clarification, but otherwise the spreadsheet should be self-descriptive - if not - glad to help.
Boris
boris.litvin@ortess.com
Thanks for attention to this problem in advance
If this is still an issue, please submit it to https://github.com/lballabio/QuantLib/issues