Hi, Can anybody help me, my scenario is as below
I have 5 column named as SN, CUST, CAP, ETA, ETB.
i want to calculate & sort ETB column depending on CUST, CAP & ETA column.
[pre]
[/pre]
There are 3 condition for calculate ETB column.
1)Is it CAP or not , that is if value of CAP is YES then it got 1st priority.
2)IS it TSL or not, that is if value of CUST is TSL then it got 2nd priority.
3)Third is once supersede can't be supersede second time, i.e in above case asume TSL get 1st priority & move up to the order, then BEL & BSL both supersede by TSL as there ETA is lower than TSL.Now when we calculate again they obviously get 1st priority.
I want to select SN column then when run a macro it will automatic calculate & sort ETB column.
Thanks.
I have 5 column named as SN, CUST, CAP, ETA, ETB.
i want to calculate & sort ETB column depending on CUST, CAP & ETA column.
[pre]
Code:
SN CUST CAP ETA ETB
1 BEL YES 15-May-12 02:00 ---
2 BSL YES 17-May-12 08:00 ---
3 TSL YES 19-May-12 19:24 ---
4 AEL NO 26-May-12 00:00 ---
There are 3 condition for calculate ETB column.
1)Is it CAP or not , that is if value of CAP is YES then it got 1st priority.
2)IS it TSL or not, that is if value of CUST is TSL then it got 2nd priority.
3)Third is once supersede can't be supersede second time, i.e in above case asume TSL get 1st priority & move up to the order, then BEL & BSL both supersede by TSL as there ETA is lower than TSL.Now when we calculate again they obviously get 1st priority.
I want to select SN column then when run a macro it will automatic calculate & sort ETB column.
Thanks.