Skip to main content
Solved

Automatically calculate order of certain records


Hi there helpful community,

I am currently facing the following issue: I have a list of requests from customers that I map to retailers in their area. I successfully calculate the distance between each customer and each retailer using the Google Maps Distance API. Now, I would like to automatically calculate the order of those distances, e.g. 1 = closest; 2 = 2nd closest, etc.

I simulated this in the screenshot below. Instead of me assigning those numbers (1-3 in this example), I would like to calculate this automatically for all requests.

Do you have any solutions in mind? In Excel this could be achieved by the rank formula I believe…

Best answer by Christoph_Baume

TheTimeSavingCo wrote:

Hey Christoph, I think you’ll only be able to accomplish this via a script. I’ll DM you


Thanks @Adam_TheTimeSavingCo!

I also found another solution that allows me to easily automate it via a script: Comparing records in different fields in the same table

View original
Did this topic help you find an answer to your question?

2 replies

TheTimeSavingCo
Forum|alt.badge.img+28

Hey Christoph, I think you’ll only be able to accomplish this via a script. I’ll DM you


TheTimeSavingCo wrote:

Hey Christoph, I think you’ll only be able to accomplish this via a script. I’ll DM you


Thanks @Adam_TheTimeSavingCo!

I also found another solution that allows me to easily automate it via a script: Comparing records in different fields in the same table


Reply