andyp161 > said:
Thanks once again for your feedback. Your 'rounding' solution seems to
work ONLY if a 'majority' of cells in the points array contain numbers
Do you mean your points column could contain positive and negative values?
. . . Also, although I can't identify an exact pattern, the formula is
also very sensitive to the size of the division TOTALS eg, if only one
person within a division is awarded points so that the total for that
division is equal to that sole person's score, this will cause the
formula to return erroneous results across the array, even if every
other person in every other division is awarded points of different
amounts.
My fault. I assumed the points column actually contained something like
sales figures which would be positive for all individuals. It appears you
really do mean points, and those points appear to be positive, zero or
negative for any individual. This can still be handled by a single
self-contained formula, but the necessary filtering will make the formula
LARGE.
C2 [not an *ARRAY* formula]:
=CHOOSE(MIN(SUM(($B$2:$B$201>=B2)*($A$2:$A$201<>"Total")
/(MMULT(($B$2:$B$201=TRANSPOSE($B$2:$B$201))
*TRANSPOSE($A$2:$A$201<>"Total"),ROW($B$2:$B$201)^0)
+($A$2:$A$201="Total")))*(A2<>"Total")+0.5/COUNT($B$2:$B$201),
4),1000,500,250,0)
If this doesn't work because, for example, there may be blank rows in the
range, the formula would get MUCH larger still. At that point, a single
formula solution becomes problematic. Still possible, but not a good idea.
The better approach would be to use one range without breaks of any kind
using my original formula with the rounding error correction, then use
simple VLOOKUP formulas to populate the report it seems you're trying to put
together.
While I have a tendency to give mostly single cell or as few cells as
possible solutions in my ng responses, there are times when such solutions
are clearly inferior to multiple cell solutions. This looks like one of
those times. The bonus awards you want can be calculated simply and
self-contained *if* the range in which they're calculated contains only the
individuals' points. Adding divisional subtotals complicates the calculation
considerable, and adding blank rows would complicate it further. At that
point, a 2-stage solution, a simple calculation of bonus awards given points
and a simple set of lookup formulas to populate the report given the
previously calculated bonus awards, would be easier to maintain.