Hi Peter sorry for the confusion, what i want is a VBA that combines the daily into weekly depends on the date and day of the week.
let me correct the example below.
from the daily row it will combine those flights into single line as shown"row 21" but should be fall on the day of operation such 135.
from the daily data there is no flight on 21oct15 may be it was cancelled so. the single line with stop at 19 oct 15 as it fall on day 1
now it will insert another row (row 22) for the remaining flight which is 23oct that will fall on day 5 and 26oct will fall on day 1
now the multiple daily lines comes with 2 lines which is easy to read.
thanks peter
[TABLE="width: 832"]
<tbody>[TR]
[TD="class: xl66, width: 64"]A[/TD]
[TD="class: xl67, width: 64"]B[/TD]
[TD="class: xl67, width: 64"]C[/TD]
[TD="class: xl67, width: 64"]D[/TD]
[TD="class: xl67, width: 64"]E[/TD]
[TD="class: xl67, width: 64"]F[/TD]
[TD="class: xl67, width: 64"]G[/TD]
[TD="class: xl67, width: 64"]H[/TD]
[TD="class: xl67, width: 64"]I[/TD]
[TD="class: xl67, width: 64"]J[/TD]
[TD="class: xl67, width: 64"]K[/TD]
[TD="class: xl67, width: 64"]L[/TD]
[TD="class: xl68, width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 64"]1[/TD]
[TD="class: xl63, width: 64"]DATA:[/TD]
[TD="class: xl64, width: 64"][/TD]
[TD="class: xl64, width: 64"][/TD]
[TD="class: xl64, width: 64"][/TD]
[TD="class: xl64, width: 64"][/TD]
[TD="class: xl64, width: 64"][/TD]
[TD="class: xl64, width: 64"][/TD]
[TD="class: xl64, width: 64"][/TD]
[TD="class: xl64, width: 64"][/TD]
[TD="class: xl64, width: 64"][/TD]
[TD="class: xl64, width: 64"][/TD]
[TD="class: xl70, width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 64"]2[/TD]
[TD="class: xl63, width: 64"]Carrier IATA code[/TD]
[TD="class: xl63, width: 64"]Flight number[/TD]
[TD="class: xl63, width: 64"]Date[/TD]
[TD="class: xl63, width: 64"]Days of Operation numeric values (MTWTFSS) (1234567)[/TD]
[TD="class: xl63, width: 64"]Departure[/TD]
[TD="class: xl63, width: 64"]Dep Time[/TD]
[TD="class: xl63, width: 64"]Arrival[/TD]
[TD="class: xl63, width: 64"]Arr Time[/TD]
[TD="class: xl63, width: 64"]Seat[/TD]
[TD="class: xl63, width: 64"]Acft code (IATA)[/TD]
[TD="class: xl63, width: 64"]Service Type[/TD]
[TD="class: xl70, width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 64"]9[/TD]
[TD="class: xl63, width: 64"]2XZ[/TD]
[TD="class: xl63, width: 64"]207[/TD]
[TD="class: xl65, width: 64"]2-Oct-15[/TD]
[TD="class: xl63, width: 64"]5[/TD]
[TD="class: xl63, width: 64"]MNL[/TD]
[TD="class: xl63, width: 64"]1025[/TD]
[TD="class: xl63, width: 64"]SYD[/TD]
[TD="class: xl63, width: 64"]2015[/TD]
[TD="class: xl63, width: 64"]230[/TD]
[TD="class: xl63, width: 64"]388[/TD]
[TD="class: xl63, width: 64"]K[/TD]
[TD="class: xl70, width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 64"]10[/TD]
[TD="class: xl63, width: 64"]2XZ[/TD]
[TD="class: xl63, width: 64"]207[/TD]
[TD="class: xl65, width: 64"]5-Oct-15[/TD]
[TD="class: xl63, width: 64"]1[/TD]
[TD="class: xl63, width: 64"]MNL[/TD]
[TD="class: xl63, width: 64"]1025[/TD]
[TD="class: xl63, width: 64"]SYD[/TD]
[TD="class: xl63, width: 64"]2015[/TD]
[TD="class: xl63, width: 64"]230[/TD]
[TD="class: xl63, width: 64"]388[/TD]
[TD="class: xl63, width: 64"]K[/TD]
[TD="class: xl70, width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 64"]11[/TD]
[TD="class: xl63, width: 64"]2XZ[/TD]
[TD="class: xl63, width: 64"]207[/TD]
[TD="class: xl65, width: 64"]7-Oct-15[/TD]
[TD="class: xl63, width: 64"]3[/TD]
[TD="class: xl63, width: 64"]MNL[/TD]
[TD="class: xl63, width: 64"]1025[/TD]
[TD="class: xl63, width: 64"]SYD[/TD]
[TD="class: xl63, width: 64"]2015[/TD]
[TD="class: xl63, width: 64"]230[/TD]
[TD="class: xl63, width: 64"]388[/TD]
[TD="class: xl63, width: 64"]K[/TD]
[TD="class: xl70, width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 64"]12[/TD]
[TD="class: xl63, width: 64"]2XZ[/TD]
[TD="class: xl63, width: 64"]207[/TD]
[TD="class: xl65, width: 64"]9-Oct-15[/TD]
[TD="class: xl63, width: 64"]5[/TD]
[TD="class: xl63, width: 64"]MNL[/TD]
[TD="class: xl63, width: 64"]1025[/TD]
[TD="class: xl63, width: 64"]SYD[/TD]
[TD="class: xl63, width: 64"]2015[/TD]
[TD="class: xl63, width: 64"]230[/TD]
[TD="class: xl63, width: 64"]388[/TD]
[TD="class: xl63, width: 64"]K[/TD]
[TD="class: xl70, width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 64"]13[/TD]
[TD="class: xl63, width: 64"]2XZ[/TD]
[TD="class: xl63, width: 64"]207[/TD]
[TD="class: xl65, width: 64"]12-Oct-15[/TD]
[TD="class: xl63, width: 64"]1[/TD]
[TD="class: xl63, width: 64"]MNL[/TD]
[TD="class: xl63, width: 64"]1025[/TD]
[TD="class: xl63, width: 64"]SYD[/TD]
[TD="class: xl63, width: 64"]2015[/TD]
[TD="class: xl63, width: 64"]230[/TD]
[TD="class: xl63, width: 64"]388[/TD]
[TD="class: xl63, width: 64"]K[/TD]
[TD="class: xl70, width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 64"]14[/TD]
[TD="class: xl63, width: 64"]2XZ[/TD]
[TD="class: xl63, width: 64"]207[/TD]
[TD="class: xl65, width: 64"]14-Oct-15[/TD]
[TD="class: xl63, width: 64"]3[/TD]
[TD="class: xl63, width: 64"]MNL[/TD]
[TD="class: xl63, width: 64"]1025[/TD]
[TD="class: xl63, width: 64"]SYD[/TD]
[TD="class: xl63, width: 64"]2015[/TD]
[TD="class: xl63, width: 64"]230[/TD]
[TD="class: xl63, width: 64"]388[/TD]
[TD="class: xl63, width: 64"]K[/TD]
[TD="class: xl70, width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 64"]15[/TD]
[TD="class: xl63, width: 64"]2XZ[/TD]
[TD="class: xl63, width: 64"]207[/TD]
[TD="class: xl65, width: 64"]16-Oct-15[/TD]
[TD="class: xl63, width: 64"]5[/TD]
[TD="class: xl63, width: 64"]MNL[/TD]
[TD="class: xl63, width: 64"]1025[/TD]
[TD="class: xl63, width: 64"]SYD[/TD]
[TD="class: xl63, width: 64"]2015[/TD]
[TD="class: xl63, width: 64"]230[/TD]
[TD="class: xl63, width: 64"]388[/TD]
[TD="class: xl63, width: 64"]K[/TD]
[TD="class: xl70, width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 64"]16[/TD]
[TD="class: xl63, width: 64"]2XZ[/TD]
[TD="class: xl63, width: 64"]207[/TD]
[TD="class: xl65, width: 64"]19-Oct-15[/TD]
[TD="class: xl63, width: 64"]1[/TD]
[TD="class: xl63, width: 64"]MNL[/TD]
[TD="class: xl63, width: 64"]1025[/TD]
[TD="class: xl63, width: 64"]SYD[/TD]
[TD="class: xl63, width: 64"]2015[/TD]
[TD="class: xl63, width: 64"]230[/TD]
[TD="class: xl63, width: 64"]388[/TD]
[TD="class: xl63, width: 64"]K[/TD]
[TD="class: xl70, width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 64"]17[/TD]
[TD="class: xl63, width: 64"]2XZ[/TD]
[TD="class: xl63, width: 64"]207[/TD]
[TD="class: xl65, width: 64"]23-Oct-15[/TD]
[TD="class: xl63, width: 64"]5[/TD]
[TD="class: xl63, width: 64"]MNL[/TD]
[TD="class: xl63, width: 64"]1025[/TD]
[TD="class: xl63, width: 64"]SYD[/TD]
[TD="class: xl63, width: 64"]2015[/TD]
[TD="class: xl63, width: 64"]230[/TD]
[TD="class: xl63, width: 64"]388[/TD]
[TD="class: xl63, width: 64"]K[/TD]
[TD="class: xl70, width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 64"]18[/TD]
[TD="class: xl63, width: 64"]2XZ[/TD]
[TD="class: xl63, width: 64"]207[/TD]
[TD="class: xl65, width: 64"]26-Oct-15[/TD]
[TD="class: xl63, width: 64"]1[/TD]
[TD="class: xl63, width: 64"]MNL[/TD]
[TD="class: xl63, width: 64"]1025[/TD]
[TD="class: xl63, width: 64"]SYD[/TD]
[TD="class: xl63, width: 64"]2015[/TD]
[TD="class: xl63, width: 64"]230[/TD]
[TD="class: xl63, width: 64"]388[/TD]
[TD="class: xl63, width: 64"]K[/TD]
[TD="class: xl70, width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 64"]19[/TD]
[TD="class: xl63, width: 64"]RESULT[/TD]
[TD="class: xl64, width: 64"][/TD]
[TD="class: xl64, width: 64"][/TD]
[TD="class: xl64, width: 64"][/TD]
[TD="class: xl64, width: 64"][/TD]
[TD="class: xl64, width: 64"][/TD]
[TD="class: xl64, width: 64"][/TD]
[TD="class: xl64, width: 64"][/TD]
[TD="class: xl64, width: 64"][/TD]
[TD="class: xl64, width: 64"][/TD]
[TD="class: xl64, width: 64"][/TD]
[TD="class: xl70, width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl69, width: 64"]20[/TD]
[TD="class: xl63, width: 64"]Carrier IATA code[/TD]
[TD="class: xl63, width: 64"]Flight number[/TD]
[TD="class: xl63, width: 64"]Effective From DDMMMYY[/TD]
[TD="class: xl63, width: 64"]Effective To DDMMMYY[/TD]
[TD="class: xl63, width: 64"]Days of Operation numeric values (MTWTFSS) (1234567)[/TD]
[TD="class: xl63, width: 64"]Departure[/TD]
[TD="class: xl63, width: 64"]Dep Time[/TD]
[TD="class: xl63, width: 64"]Arrival[/TD]
[TD="class: xl63, width: 64"]Arr Time[/TD]
[TD="class: xl63, width: 64"]Seat[/TD]
[TD="class: xl63, width: 64"]Acft code (IATA)[/TD]
[TD="class: xl71, width: 64"]Service Type[/TD]
[/TR]
[TR]
[TD="class: xl69, width: 64"]21[/TD]
[TD="class: xl63, width: 64"]2XZ[/TD]
[TD="class: xl63, width: 64"]207[/TD]
[TD="class: xl65, width: 64"]2-Oct-15[/TD]
[TD="class: xl65, width: 64"]19-Oct-15[/TD]
[TD="class: xl63, width: 64"]135[/TD]
[TD="class: xl63, width: 64"]MNL[/TD]
[TD="class: xl63, width: 64"]1025[/TD]
[TD="class: xl63, width: 64"]SYD[/TD]
[TD="class: xl63, width: 64"]2015[/TD]
[TD="class: xl63, width: 64"]230[/TD]
[TD="class: xl63, width: 64"]388[/TD]
[TD="class: xl71, width: 64"]K[/TD]
[/TR]
[TR]
[TD="class: xl69, width: 64"]22[/TD]
[TD="class: xl72, width: 64"]2XZ[/TD]
[TD="class: xl72, width: 64"]207[/TD]
[TD="class: xl73, width: 64"]23-Oct-15[/TD]
[TD="class: xl73, width: 64"]26-Oct-15[/TD]
[TD="class: xl72, width: 64"]15[/TD]
[TD="class: xl72, width: 64"]MNL[/TD]
[TD="class: xl72, width: 64"]1025[/TD]
[TD="class: xl72, width: 64"]SYD[/TD]
[TD="class: xl72, width: 64"]2015[/TD]
[TD="class: xl72, width: 64"]230[/TD]
[TD="class: xl72, width: 64"]388[/TD]
[TD="class: xl74, width: 64"]K
[/TD]
[/TR]
</tbody>[/TABLE]