Ok, I threw this together...not "exactly" how I might do it given time to really think it through, plus I am at work so I was doing it in stealth mode.
In this example, you have your hit points in A1, damage in B1, and healing in C1. You have to click the appropriate button after entering...