Now, you said you had a lot of categories to do.
There *IS* another way to do this, but it's really hairy and complex.
I would stick with the above scheme unless you have more than, say, 10 or 12 categories to do.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.