You can do it, but you need to put the horizontal rule in a table first, and then reference it in the formula.