Average the last value from up to 8 possible subsets

See also tdf#167468

I learned far too late that the three LOCKUP functions were specifically designed for numbers and digits, while I was misusing them for TEXT and characters, which was all too often incorrect. Now I deal with them playfully.