more work on conditional formulas
finally got some condition formulas exporting.  This would be better as a generic function.