Adam, Does this work for you?
]a=.3 3$5 10 2 1 2 3 10 15 20
5 10 2
1 2 3
10 15 20
f =. #~ 25 <: */"1
f a
5 10 2
10 15 20
-Dan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
