S
Susan Lammi
I have a column of numbers which need to be split into between 1-4 new
columns based on percentage values stored in my worksheet
if rngPercents = A1:A4
and rngNumbers=D2373
I need
Col E=rngPercents(1,1)*rngNumbers
Col F=rngPercents(2,1)*rngNumbers
Col G=rngPercents(3,1)*rngNumbers
Col H=rngPercents(4,1)*rngNumbers
Now the problem
I need the values in Cols E-H to be whole numbers which will still total
the Original Numbers in Col D
This involves rounding and for the life of me I can't come up with a method
that will ensure the correct totals
I am willing to use VBA or formulas to accomplish this
Some Math Wizard must have done this before and your help will be greatly
appreciated.
Thanks
columns based on percentage values stored in my worksheet
if rngPercents = A1:A4
and rngNumbers=D2373
I need
Col E=rngPercents(1,1)*rngNumbers
Col F=rngPercents(2,1)*rngNumbers
Col G=rngPercents(3,1)*rngNumbers
Col H=rngPercents(4,1)*rngNumbers
Now the problem
I need the values in Cols E-H to be whole numbers which will still total
the Original Numbers in Col D
This involves rounding and for the life of me I can't come up with a method
that will ensure the correct totals
I am willing to use VBA or formulas to accomplish this
Some Math Wizard must have done this before and your help will be greatly
appreciated.
Thanks