Copy, order and group data by certain rules (Create a transportation service sheet)

operador84

New Member
Joined
Jun 5, 2016
Messages
3
Hi!!!
Everyday I have to order and group a list of clients into several transport services, regarding their arrivals. So from the airport to their booked hotels.

Here is a link to an example file with that list at the sheet named: "chegadas".
https://www.dropbox.com/s/qla0orcpfa2myh1/Chegadas%2020.02-alt.xls?dl=1

The process is the following:

1- Order from A to Z by column VOO ( which is ARRIVAL FLIGHT data)
2- Group by hotel area (at "hoteis info" sheet)
3- Group until 8 pax (max veicule capacity)
4- Create shortest route between airport (starting point) and hotels of each service.

Sheet "chegadas-2" has a example of steps 1 to 3.
For step 4 I thought of creating a distance matrix (like at sheet "distâncias" - missing some hotels).
And use a solution like this:
https://www.youtube.com/watch?v=-E3rSoClgMI

Is this possible to do this in Excel automatically with VBA and/or formulas??
Thank you in advance!!!
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
NOTE: There are 3 exceptions that are not grouped in 8 with other rows, for step 3:
Column: S/TRSF (client does not have transfer), when cell VOO is empty(no flight) and C/PRIVILEGE ( client has a private transfer)
 
Upvote 0

Forum statistics

Threads
1,216,117
Messages
6,128,935
Members
449,480
Latest member
yesitisasport

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top