ricklou,
Attached is a modified version of the Decimals workbook you provided.
I added a new item in column D, "Decimal places to round to" which has its value in cell E3 defined by this formula:
Basically it determines how many numbers are after the decimal point in cell E1. So with the 6.2 example, there is only 1 number after the decimal.
This number is used to round to that many decimal places when dividing by the "cells to use" (denominator).
This is the updated formula in cell G2 and copied down:
You can see that 37 is one of the returned values, which is expected.
Bookmarks