Maybe this helps:
Store value from the right cell of the curent position - #2 by admin
Help in Dynamic table reading - #6 by ulrich