Hi ticofiz,
For Y columns in the active worksheet, can you try the following?doc -e DY { //loop over all Y columns in the active worksheet
range ri=%C; //current Y col
cn=colnum(%C); //its column number
range ro=[maxX]!wcol(cn); //output column
ro[1]=xvalue(list(max(ri),ri),ri); //put the X of max to 1st row
}Hope this works as you wanted.
--Hideo Fujii
OriginLab