LM3914 4S lithium polymer meter
Have you tried the engineering formula?
Basically what you do is take all the input values, add them together and than divide by the number of input values, should give you what you're looking for.