Excel formula question
January 16, 2007 2:06 PM
Subscribe
Excel question: How to define a range so that it always adds up to a constant value.
I have range of cells that are the same right now, and they add up to 100. I would like to have it so that if I change one value, the others adjusted equally so that the sum continues to be 100:
7.142857
7.142857
7.142857
7.142857
7.142857
7.142857
7.142857
7.142857
7.142857
7.142857
7.142857
7.142857
7.142857
7.142857
100
Any ideas? I hope this makes sense.
posted by corpse to computers & internet (20 comments total)
=IF(ISBLANK(A1),(100-SUM($A$1:$A$14))/COUNTIF($A$1:$A$14,""),A1)
and copy that to B2 through B14. B1 through B14 will have the values you want.
posted by DevilsAdvocate at 2:24 PM on January 16, 2007