Try this formula
=ROUND(LOOKUP(RAND();OFFSET($A$1;21;MATCH(B1;tblData!2:2;0)-1;50-22+1;2));1)
Try this formula
=ROUND(LOOKUP(RAND();OFFSET($A$1;21;MATCH(B1;tblData!2:2;0)-1;50-22+1;2));1)
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber