Row and Bin by Distance for the Picking Sheet, is this possible?

SOLVED

We have 170+ rows and they are separated into 4 different groups of rows. First group of rows is 1-54 and behind that one is 108-55 and then 109-138 & 162-139. We could have a order that has an item that's on row 1, row 54 & 108 for example. If they pull the order by the sorted row and bin they would pull row 1 then they would go all the way to the other side of the building for row 54 and all the way back to row 108. Row 108 is behind row 1. I made a excel table that has the distance break down between each row depending on what row you are on. Is it possible to on a picking ticket to reference this table and resort the order by distance between the row of the item you are pulling and the next item on the picking sheet. I've only done 4 rows so far since I'm not sure if this is even possible. Thanks for your time!