Hi
I'm struggling to sort a 'sheet' of Data.
The sheet is a direct 'copy' of the master data (therefore Cell A2 in this sheet (sheet2) is {+sheet1:a2} etc, as I do not wish to auto sort the master data.
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD][/TD]
[TD][/TD]
[TD]PRODUCT[/TD]
[TD="align: center"]UNIT[/TD]
[TD="align: center"]TOTAL[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]N[/TD]
[TD="align: center"]2[/TD]
[TD]Becks[/TD]
[TD="align: center"]-5[/TD]
[TD="align: center"]-15[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]2[/TD]
[TD]Budweiser[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]12[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]2[/TD]
[TD]Stella[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]3[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]N[/TD]
[TD="align: center"]2[/TD]
[TD]W.K.D.[/TD]
[TD="align: center"]-2[/TD]
[TD="align: center"]-6[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD="align: center"]N[/TD]
[TD="align: center"]1[/TD]
[TD]Fosters[/TD]
[TD="align: center"]-6[/TD]
[TD="align: center"]-18[/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]1[/TD]
[TD]Guinness[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]8[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: center"]N[/TD]
[TD="align: center"]1[/TD]
[TD]Strongbow[/TD]
[TD="align: center"]-9[/TD]
[TD="align: center"]-27[/TD]
[/TR]
[TR]
[TD="align: center"]9[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]3[/TD]
[TD]Bells[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]5[/TD]
[/TR]
[TR]
[TD="align: center"]10[/TD]
[TD="align: center"]N[/TD]
[TD="align: center"]3[/TD]
[TD]Grouse[/TD]
[TD="align: center"]-1[/TD]
[TD="align: center"]2.5[/TD]
[/TR]
[TR]
[TD="align: center"]11[/TD]
[TD="align: center"]N[/TD]
[TD="align: center"]3[/TD]
[TD]Martell[/TD]
[TD="align: center"]-3[/TD]
[TD="align: center"]-9[/TD]
[/TR]
</tbody>[/TABLE]
When the data in the master (sheet1) changes I would like this sheet (sheet2) to auto sort by Column A (Ascending), then Column B (Ascending), then Column E (Descending) to produce the following result :
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD][/TD]
[TD][/TD]
[TD]PRODUCT[/TD]
[TD="align: center"]UNIT[/TD]
[TD="align: center"]TOTAL[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]N[/TD]
[TD="align: center"]1[/TD]
[TD]Strongbow[/TD]
[TD="align: center"]-9[/TD]
[TD="align: center"]-27[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]N[/TD]
[TD="align: center"]1[/TD]
[TD]Fosters[/TD]
[TD="align: center"]-6[/TD]
[TD="align: center"]-18[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"]N[/TD]
[TD="align: center"]2[/TD]
[TD]Becks[/TD]
[TD="align: center"]-5[/TD]
[TD="align: center"]-15[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]N[/TD]
[TD="align: center"]2[/TD]
[TD]W.K.D.[/TD]
[TD="align: center"]-2[/TD]
[TD="align: center"]-6[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD="align: center"]N[/TD]
[TD="align: center"]3[/TD]
[TD]Martell[/TD]
[TD="align: center"]-3[/TD]
[TD="align: center"]-9[/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD="align: center"]N[/TD]
[TD="align: center"]3[/TD]
[TD]Grouse[/TD]
[TD="align: center"]-1[/TD]
[TD="align: center"]2.5[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]2[/TD]
[TD]Budweiser[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]12[/TD]
[/TR]
[TR]
[TD="align: center"]9[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]2[/TD]
[TD]Guinness[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]8[/TD]
[/TR]
[TR]
[TD="align: center"]10[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]2[/TD]
[TD]Stella[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]3[/TD]
[/TR]
[TR]
[TD="align: center"]11[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]3[/TD]
[TD]Bells[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]5[/TD]
[/TR]
</tbody>[/TABLE]
I have attempted to create a VBA Project using several examples found to no avail.
Any help would be very appreciated.
Thanks in advance
I'm struggling to sort a 'sheet' of Data.
The sheet is a direct 'copy' of the master data (therefore Cell A2 in this sheet (sheet2) is {+sheet1:a2} etc, as I do not wish to auto sort the master data.
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD][/TD]
[TD][/TD]
[TD]PRODUCT[/TD]
[TD="align: center"]UNIT[/TD]
[TD="align: center"]TOTAL[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]N[/TD]
[TD="align: center"]2[/TD]
[TD]Becks[/TD]
[TD="align: center"]-5[/TD]
[TD="align: center"]-15[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]2[/TD]
[TD]Budweiser[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]12[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]2[/TD]
[TD]Stella[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]3[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]N[/TD]
[TD="align: center"]2[/TD]
[TD]W.K.D.[/TD]
[TD="align: center"]-2[/TD]
[TD="align: center"]-6[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD="align: center"]N[/TD]
[TD="align: center"]1[/TD]
[TD]Fosters[/TD]
[TD="align: center"]-6[/TD]
[TD="align: center"]-18[/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]1[/TD]
[TD]Guinness[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]8[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: center"]N[/TD]
[TD="align: center"]1[/TD]
[TD]Strongbow[/TD]
[TD="align: center"]-9[/TD]
[TD="align: center"]-27[/TD]
[/TR]
[TR]
[TD="align: center"]9[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]3[/TD]
[TD]Bells[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]5[/TD]
[/TR]
[TR]
[TD="align: center"]10[/TD]
[TD="align: center"]N[/TD]
[TD="align: center"]3[/TD]
[TD]Grouse[/TD]
[TD="align: center"]-1[/TD]
[TD="align: center"]2.5[/TD]
[/TR]
[TR]
[TD="align: center"]11[/TD]
[TD="align: center"]N[/TD]
[TD="align: center"]3[/TD]
[TD]Martell[/TD]
[TD="align: center"]-3[/TD]
[TD="align: center"]-9[/TD]
[/TR]
</tbody>[/TABLE]
When the data in the master (sheet1) changes I would like this sheet (sheet2) to auto sort by Column A (Ascending), then Column B (Ascending), then Column E (Descending) to produce the following result :
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD][/TD]
[TD][/TD]
[TD]PRODUCT[/TD]
[TD="align: center"]UNIT[/TD]
[TD="align: center"]TOTAL[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]N[/TD]
[TD="align: center"]1[/TD]
[TD]Strongbow[/TD]
[TD="align: center"]-9[/TD]
[TD="align: center"]-27[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]N[/TD]
[TD="align: center"]1[/TD]
[TD]Fosters[/TD]
[TD="align: center"]-6[/TD]
[TD="align: center"]-18[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"]N[/TD]
[TD="align: center"]2[/TD]
[TD]Becks[/TD]
[TD="align: center"]-5[/TD]
[TD="align: center"]-15[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]N[/TD]
[TD="align: center"]2[/TD]
[TD]W.K.D.[/TD]
[TD="align: center"]-2[/TD]
[TD="align: center"]-6[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD="align: center"]N[/TD]
[TD="align: center"]3[/TD]
[TD]Martell[/TD]
[TD="align: center"]-3[/TD]
[TD="align: center"]-9[/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD="align: center"]N[/TD]
[TD="align: center"]3[/TD]
[TD]Grouse[/TD]
[TD="align: center"]-1[/TD]
[TD="align: center"]2.5[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]2[/TD]
[TD]Budweiser[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]12[/TD]
[/TR]
[TR]
[TD="align: center"]9[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]2[/TD]
[TD]Guinness[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]8[/TD]
[/TR]
[TR]
[TD="align: center"]10[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]2[/TD]
[TD]Stella[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]3[/TD]
[/TR]
[TR]
[TD="align: center"]11[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]3[/TD]
[TD]Bells[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]5[/TD]
[/TR]
</tbody>[/TABLE]
I have attempted to create a VBA Project using several examples found to no avail.
Any help would be very appreciated.
Thanks in advance