Multiple Sort In Same Column

RandyD123

Active Member
Joined
Dec 4, 2013
Messages
296
Office Version
  1. 2016
Platform
  1. Windows
I am looking to sort using a VBA code that will sort my attached sheet by Airline then by Time. The only catch is that the Airlines must be held together, meaning all DL first by time, then all SW second by time......and so on. Each individual day must sort using the code. Obviously this is only part of the sheet that I attached but I assume if this is even possible I can just continue the code to get all 42 individual calendar blocks.

If possible with on space between each one.

Thank you to anyone that can help.

[TABLE="width: 1650"]
<tbody>[TR]
[TD="colspan: 4"]Tuesday, March 1, 2016[/TD]
[TD][/TD]
[TD="colspan: 4"]Wednesday, March 2, 2016[/TD]
[TD][/TD]
[TD="colspan: 4"]Thursday, March 3, 2016[/TD]
[TD][/TD]
[TD="colspan: 4"]Friday, March 4, 2016[/TD]
[TD][/TD]
[TD="colspan: 4"]Saturday, March 5, 2016[/TD]
[TD][/TD]
[TD="colspan: 4"]Sunday, March 6, 2016[/TD]
[/TR]
[TR]
[TD]Airline[/TD]
[TD]Dest[/TD]
[TD]Time[/TD]
[TD]Cap.[/TD]
[TD][/TD]
[TD]Airline[/TD]
[TD]Dest[/TD]
[TD]Time[/TD]
[TD]Cap.[/TD]
[TD][/TD]
[TD]Airline[/TD]
[TD]Dest[/TD]
[TD]Time[/TD]
[TD]Cap.[/TD]
[TD][/TD]
[TD]Airline[/TD]
[TD]Dest[/TD]
[TD]Time[/TD]
[TD]Cap.[/TD]
[TD][/TD]
[TD]Airline[/TD]
[TD]Dest[/TD]
[TD]Time[/TD]
[TD]Cap.[/TD]
[TD][/TD]
[TD]Airline[/TD]
[TD]Dest[/TD]
[TD]Time[/TD]
[TD]Cap.[/TD]
[/TR]
[TR]
[TD]US4577[/TD]
[TD]DCA[/TD]
[TD]1800[/TD]
[TD]75[/TD]
[TD][/TD]
[TD]US4577[/TD]
[TD]DCA[/TD]
[TD]1800[/TD]
[TD]75[/TD]
[TD][/TD]
[TD]US4577[/TD]
[TD]DCA[/TD]
[TD]1800[/TD]
[TD]75[/TD]
[TD][/TD]
[TD]US4577[/TD]
[TD]DCA[/TD]
[TD]1800[/TD]
[TD]75[/TD]
[TD][/TD]
[TD]US4577[/TD]
[TD]DCA[/TD]
[TD]1800[/TD]
[TD]75[/TD]
[TD][/TD]
[TD]US4577[/TD]
[TD]DCA[/TD]
[TD]1800[/TD]
[TD]75[/TD]
[/TR]
[TR]
[TD]US4472[/TD]
[TD]PHL[/TD]
[TD]1500[/TD]
[TD]50[/TD]
[TD]US4472[/TD]
[TD]PHL[/TD]
[TD]1500[/TD]
[TD]50[/TD]
[TD]US4472[/TD]
[TD]PHL[/TD]
[TD]1500[/TD]
[TD]50[/TD]
[TD]US4472[/TD]
[TD]PHL[/TD]
[TD]1500[/TD]
[TD]50[/TD]
[TD]US4472[/TD]
[TD]PHL[/TD]
[TD]1500[/TD]
[TD]50[/TD]
[TD]US4472[/TD]
[TD]PHL[/TD]
[TD]1500[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]US4465[/TD]
[TD]CLT[/TD]
[TD]1200[/TD]
[TD]80[/TD]
[TD]US4465[/TD]
[TD]CLT[/TD]
[TD]1200[/TD]
[TD]80[/TD]
[TD]US4465[/TD]
[TD]CLT[/TD]
[TD]1200[/TD]
[TD]80[/TD]
[TD]US4465[/TD]
[TD]CLT[/TD]
[TD]1200[/TD]
[TD]80[/TD]
[TD]US4465[/TD]
[TD]CLT[/TD]
[TD]1200[/TD]
[TD]80[/TD]
[TD]US4465[/TD]
[TD]CLT[/TD]
[TD]1200[/TD]
[TD]80[/TD]
[/TR]
[TR]
[TD]US3827[/TD]
[TD]PHL[/TD]
[TD]1400[/TD]
[TD]75[/TD]
[TD]US3827[/TD]
[TD]PHL[/TD]
[TD]1400[/TD]
[TD]75[/TD]
[TD]US3827[/TD]
[TD]PHL[/TD]
[TD]1400[/TD]
[TD]75[/TD]
[TD]US3827[/TD]
[TD]PHL[/TD]
[TD]1400[/TD]
[TD]75[/TD]
[TD]US3827[/TD]
[TD]PHL[/TD]
[TD]1400[/TD]
[TD]75[/TD]
[TD]US3827[/TD]
[TD]PHL[/TD]
[TD]1400[/TD]
[TD]75[/TD]
[/TR]
[TR]
[TD]US4082[/TD]
[TD]PHL[/TD]
[TD]800[/TD]
[TD]100[/TD]
[TD]US4082[/TD]
[TD]PHL[/TD]
[TD]800[/TD]
[TD]100[/TD]
[TD]US4082[/TD]
[TD]PHL[/TD]
[TD]800[/TD]
[TD]100[/TD]
[TD]US4082[/TD]
[TD]PHL[/TD]
[TD]800[/TD]
[TD]100[/TD]
[TD]US4082[/TD]
[TD]PHL[/TD]
[TD]800[/TD]
[TD]100[/TD]
[TD]US4082[/TD]
[TD]PHL[/TD]
[TD]800[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]US3775[/TD]
[TD]DCA[/TD]
[TD]700[/TD]
[TD]45[/TD]
[TD]US3775[/TD]
[TD]DCA[/TD]
[TD]700[/TD]
[TD]45[/TD]
[TD]US3775[/TD]
[TD]DCA[/TD]
[TD]700[/TD]
[TD]45[/TD]
[TD]US3775[/TD]
[TD]DCA[/TD]
[TD]700[/TD]
[TD]45[/TD]
[TD]US3775[/TD]
[TD]DCA[/TD]
[TD]700[/TD]
[TD]45[/TD]
[TD]US3775[/TD]
[TD]DCA[/TD]
[TD]700[/TD]
[TD]45[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SW1270[/TD]
[TD]MDW[/TD]
[TD]530[/TD]
[TD]175[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SW647[/TD]
[TD]BWI[/TD]
[TD]555[/TD]
[TD]143[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SW1537[/TD]
[TD]MCO[/TD]
[TD]605[/TD]
[TD]143[/TD]
[TD]SW1270[/TD]
[TD]MDW[/TD]
[TD]530[/TD]
[TD]175[/TD]
[TD]SW1270[/TD]
[TD]MDW[/TD]
[TD]530[/TD]
[TD]175[/TD]
[TD]SW1270[/TD]
[TD]MDW[/TD]
[TD]530[/TD]
[TD]175[/TD]
[TD]SW1270[/TD]
[TD]MDW[/TD]
[TD]530[/TD]
[TD]175[/TD]
[TD]SW1270[/TD]
[TD]MDW[/TD]
[TD]530[/TD]
[TD]175[/TD]
[/TR]
[TR]
[TD]SW452[/TD]
[TD]BWI[/TD]
[TD]700[/TD]
[TD]137[/TD]
[TD]SW647[/TD]
[TD]BWI[/TD]
[TD]555[/TD]
[TD]143[/TD]
[TD]SW647[/TD]
[TD]BWI[/TD]
[TD]555[/TD]
[TD]143[/TD]
[TD]SW647[/TD]
[TD]BWI[/TD]
[TD]555[/TD]
[TD]143[/TD]
[TD]SW647[/TD]
[TD]BWI[/TD]
[TD]555[/TD]
[TD]143[/TD]
[TD]SW647[/TD]
[TD]BWI[/TD]
[TD]555[/TD]
[TD]143[/TD]
[/TR]
[TR]
[TD]SW1092[/TD]
[TD]BWI[/TD]
[TD]400[/TD]
[TD]175[/TD]
[TD]SW1537[/TD]
[TD]MCO[/TD]
[TD]605[/TD]
[TD]143[/TD]
[TD]SW1537[/TD]
[TD]MCO[/TD]
[TD]605[/TD]
[TD]143[/TD]
[TD]SW1537[/TD]
[TD]MCO[/TD]
[TD]605[/TD]
[TD]143[/TD]
[TD]SW1537[/TD]
[TD]MCO[/TD]
[TD]605[/TD]
[TD]143[/TD]
[TD]SW1537[/TD]
[TD]MCO[/TD]
[TD]605[/TD]
[TD]143[/TD]
[/TR]
[TR]
[TD]SW767[/TD]
[TD]BWI[/TD]
[TD]500[/TD]
[TD]143[/TD]
[TD]SW452[/TD]
[TD]BWI[/TD]
[TD]700[/TD]
[TD]137[/TD]
[TD]SW452[/TD]
[TD]BWI[/TD]
[TD]700[/TD]
[TD]137[/TD]
[TD]SW452[/TD]
[TD]BWI[/TD]
[TD]700[/TD]
[TD]137[/TD]
[TD]SW452[/TD]
[TD]BWI[/TD]
[TD]700[/TD]
[TD]137[/TD]
[TD]SW452[/TD]
[TD]BWI[/TD]
[TD]700[/TD]
[TD]137[/TD]
[/TR]
[TR]
[TD]SW3850[/TD]
[TD]TPA[/TD]
[TD]800[/TD]
[TD]143[/TD]
[TD]SW1092[/TD]
[TD]BWI[/TD]
[TD]400[/TD]
[TD]175[/TD]
[TD]SW1092[/TD]
[TD]BWI[/TD]
[TD]400[/TD]
[TD]175[/TD]
[TD]SW1092[/TD]
[TD]BWI[/TD]
[TD]400[/TD]
[TD]175[/TD]
[TD]SW1092[/TD]
[TD]BWI[/TD]
[TD]400[/TD]
[TD]175[/TD]
[TD]SW1092[/TD]
[TD]BWI[/TD]
[TD]400[/TD]
[TD]175[/TD]
[/TR]
[TR]
[TD]SW802[/TD]
[TD]MDW[/TD]
[TD]1750[/TD]
[TD]175[/TD]
[TD]SW767[/TD]
[TD]BWI[/TD]
[TD]500[/TD]
[TD]143[/TD]
[TD]SW767[/TD]
[TD]BWI[/TD]
[TD]500[/TD]
[TD]143[/TD]
[TD]SW767[/TD]
[TD]BWI[/TD]
[TD]500[/TD]
[TD]143[/TD]
[TD]SW767[/TD]
[TD]BWI[/TD]
[TD]500[/TD]
[TD]143[/TD]
[TD]SW767[/TD]
[TD]BWI[/TD]
[TD]500[/TD]
[TD]143[/TD]
[/TR]
[TR]
[TD]SW2513[/TD]
[TD]BWI[/TD]
[TD]1215[/TD]
[TD]143[/TD]
[TD]SW3850[/TD]
[TD]TPA[/TD]
[TD]800[/TD]
[TD]143[/TD]
[TD]SW3850[/TD]
[TD]TPA[/TD]
[TD]800[/TD]
[TD]143[/TD]
[TD]SW3850[/TD]
[TD]TPA[/TD]
[TD]800[/TD]
[TD]143[/TD]
[TD]SW3850[/TD]
[TD]TPA[/TD]
[TD]800[/TD]
[TD]143[/TD]
[TD]SW3850[/TD]
[TD]TPA[/TD]
[TD]800[/TD]
[TD]143[/TD]
[/TR]
[TR]
[TD]SW1533[/TD]
[TD]BWI[/TD]
[TD]1450[/TD]
[TD]143[/TD]
[TD]SW802[/TD]
[TD]MDW[/TD]
[TD]1750[/TD]
[TD]175[/TD]
[TD]SW802[/TD]
[TD]MDW[/TD]
[TD]1750[/TD]
[TD]175[/TD]
[TD]SW802[/TD]
[TD]MDW[/TD]
[TD]1750[/TD]
[TD]175[/TD]
[TD]SW802[/TD]
[TD]MDW[/TD]
[TD]1750[/TD]
[TD]175[/TD]
[TD]SW802[/TD]
[TD]MDW[/TD]
[TD]1750[/TD]
[TD]175[/TD]
[/TR]
[TR]
[TD]SW302[/TD]
[TD]BWI[/TD]
[TD]1705[/TD]
[TD]143[/TD]
[TD]SW2513[/TD]
[TD]BWI[/TD]
[TD]1215[/TD]
[TD]143[/TD]
[TD]SW2513[/TD]
[TD]BWI[/TD]
[TD]1215[/TD]
[TD]143[/TD]
[TD]SW2513[/TD]
[TD]BWI[/TD]
[TD]1215[/TD]
[TD]143[/TD]
[TD]SW2513[/TD]
[TD]BWI[/TD]
[TD]1215[/TD]
[TD]143[/TD]
[TD]SW2513[/TD]
[TD]BWI[/TD]
[TD]1215[/TD]
[TD]143[/TD]
[/TR]
[TR]
[TD]SW750[/TD]
[TD]MDW[/TD]
[TD]1400[/TD]
[TD]175[/TD]
[TD]SW1533[/TD]
[TD]BWI[/TD]
[TD]1450[/TD]
[TD]143[/TD]
[TD]SW1533[/TD]
[TD]BWI[/TD]
[TD]1450[/TD]
[TD]143[/TD]
[TD]SW1533[/TD]
[TD]BWI[/TD]
[TD]1450[/TD]
[TD]143[/TD]
[TD]SW1533[/TD]
[TD]BWI[/TD]
[TD]1450[/TD]
[TD]143[/TD]
[TD]SW1533[/TD]
[TD]BWI[/TD]
[TD]1450[/TD]
[TD]143[/TD]
[/TR]
[TR]
[TD]SW2222[/TD]
[TD]MDW[/TD]
[TD]1830[/TD]
[TD]175[/TD]
[TD]SW302[/TD]
[TD]BWI[/TD]
[TD]1705[/TD]
[TD]143[/TD]
[TD]SW302[/TD]
[TD]BWI[/TD]
[TD]1705[/TD]
[TD]143[/TD]
[TD]SW302[/TD]
[TD]BWI[/TD]
[TD]1705[/TD]
[TD]143[/TD]
[TD]SW302[/TD]
[TD]BWI[/TD]
[TD]1705[/TD]
[TD]143[/TD]
[TD]SW302[/TD]
[TD]BWI[/TD]
[TD]1705[/TD]
[TD]143[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]SW750[/TD]
[TD]MDW[/TD]
[TD]1400[/TD]
[TD]175[/TD]
[TD]SW750[/TD]
[TD]MDW[/TD]
[TD]1400[/TD]
[TD]175[/TD]
[TD]SW750[/TD]
[TD]MDW[/TD]
[TD]1400[/TD]
[TD]175[/TD]
[TD]SW750[/TD]
[TD]MDW[/TD]
[TD]1400[/TD]
[TD]175[/TD]
[TD]SW750[/TD]
[TD]MDW[/TD]
[TD]1400[/TD]
[TD]175[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]SW2222[/TD]
[TD]MDW[/TD]
[TD]1830[/TD]
[TD]175[/TD]
[TD]SW2222[/TD]
[TD]MDW[/TD]
[TD]1830[/TD]
[TD]175[/TD]
[TD]SW2222[/TD]
[TD]MDW[/TD]
[TD]1830[/TD]
[TD]175[/TD]
[TD]SW2222[/TD]
[TD]MDW[/TD]
[TD]1830[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4321[/TD]
[TD]LGA[/TD]
[TD]400[/TD]
[TD]40[/TD]
[TD]DL4321[/TD]
[TD]LGA[/TD]
[TD]400[/TD]
[TD]40[/TD]
[TD]DL4321[/TD]
[TD]LGA[/TD]
[TD]400[/TD]
[TD]40[/TD]
[TD]DL4321[/TD]
[TD]LGA[/TD]
[TD]400[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]DL4566[/TD]
[TD]DTW[/TD]
[TD]300[/TD]
[TD]80[/TD]
[TD]DL4566[/TD]
[TD]DTW[/TD]
[TD]300[/TD]
[TD]75[/TD]
[TD]DL4566[/TD]
[TD]DTW[/TD]
[TD]300[/TD]
[TD]75[/TD]
[TD]DL4566[/TD]
[TD]DTW[/TD]
[TD]300[/TD]
[TD]75[/TD]
[TD]DL4566[/TD]
[TD]DTW[/TD]
[TD]300[/TD]
[TD]75[/TD]
[TD]DL4566[/TD]
[TD]DTW[/TD]
[TD]300[/TD]
[TD]75[/TD]
[/TR]
[TR]
[TD]DL3333[/TD]
[TD]ATL[/TD]
[TD]600[/TD]
[TD]100[/TD]
[TD]DL3333[/TD]
[TD]ATL[/TD]
[TD]600[/TD]
[TD]100[/TD]
[TD]DL3333[/TD]
[TD]ATL[/TD]
[TD]600[/TD]
[TD]100[/TD]
[TD]DL3333[/TD]
[TD]ATL[/TD]
[TD]600[/TD]
[TD]100[/TD]
[TD]DL3333[/TD]
[TD]ATL[/TD]
[TD]600[/TD]
[TD]100[/TD]
[TD]DL3333[/TD]
[TD]ATL[/TD]
[TD]600[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]DL2145[/TD]
[TD]LGA[/TD]
[TD]700[/TD]
[TD]68[/TD]
[TD]DL2145[/TD]
[TD]LGA[/TD]
[TD]700[/TD]
[TD]68[/TD]
[TD]DL2145[/TD]
[TD]LGA[/TD]
[TD]700[/TD]
[TD]68[/TD]
[TD]DL2145[/TD]
[TD]LGA[/TD]
[TD]700[/TD]
[TD]68[/TD]
[TD]DL2145[/TD]
[TD]LGA[/TD]
[TD]700[/TD]
[TD]68[/TD]
[TD]DL2145[/TD]
[TD]LGA[/TD]
[TD]700[/TD]
[TD]68[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]UA4567[/TD]
[TD]EWR[/T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TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Totals:[/TD]
[TD][/TD]
[TD][/TD]
[TD]3216[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]3211[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]3211[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]3211[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]3211[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]3211[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Can I confirm if there is an empty column between the days and an empty row between the airline groups in your source data?
 
Upvote 0
It it comes to that I will request, for now I think I can work with what you have given.

Another question;
Must it sort the entire airline code, then the time, or just the two letters in the airline code and then the time?
 
Upvote 0
Sorry, it must sort all DLXXXX first then maybe a space? Then all SWXXXX next, UAXXXX, and finally USXXXX, obviously the time has to get sorted to match as well I do have an example posted in a different forum or like I said I can send you the full workbook if you think you can help and if you think it would be more helpful.....thank you for taking some of your time for me.....
 
Upvote 0
I have the sort macro complete but would like to ask if it is necessary to retain the blank row between the airline groups per day. It would make the sort process much more streamlined if I can remove the blank rows between the groups. Is this OK or is the blank rows crucial?

Note: I'm going out to lunch soon....If no one has replied with a solution by the time I get back; I'll help resolve this for you...
 
Upvote 0
it is not mandatory.....just would look pretty from a user viewpoint..... but again NOT mandatory!
 
Upvote 0
it is not mandatory.....just would look pretty from a user viewpoint..... but again NOT mandatory!

Probably better not to have it but maybe I could test both way?? If I have to pick just one, I'll go with NO SPACE :)
 
Upvote 0
Hi,

Test this code on your data.
Note, the macro assumes the 1st data block starts in column A.

Currently the code will remove all the blank rows between the data, but once this macro is working, we can have the code add the blanks back in between the groups if you prefer that.

Try and let me know...

Code:
Sub SortDateBlocks()
Dim A As Range
Dim lRow As Long
    Application.ScreenUpdating = False
    On Error Resume Next
    For Each A In ActiveSheet.Rows(3).SpecialCells(xlCellTypeConstants).Areas
        Set A = A.CurrentRegion.Offset(1).Resize(A.CurrentRegion.Rows.Count - 1)
            lRow = A.Columns(1).EntireColumn.Cells(Rows.Count, 1).End(xlUp).Row
            A.Resize(lRow).SpecialCells(xlCellTypeBlanks).Delete
            A.CurrentRegion.Offset(1).Resize(A.CurrentRegion.Rows.Count - 1).Sort _
                Key1:=A.Cells(1), Key2:=A.Cells(3), Header:=xlYes
    Next A
    Application.ScreenUpdating = True
End Sub
 
Upvote 0
RudiS,

Sorry that didn't work. Lots of issues. For some reason I am not allowed to post attachments. But all would become clear if I could!!!
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,996
Messages
6,175,867
Members
452,678
Latest member
will_simmo

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