Hi,
Below is the data I have.
I need to find the Customer name base on same Pre-Group & same Part, copy and paste in column E "Result". With following criteria:
1. For those with same Pre-Group & same Part:
- the Customer with oldest DATE, Column E = blank
- the Customer with 2nd oldest DATE, Column E = Customer with oldest DATE
- the Customer with 3rd oldest DATE, Column E = Customer with 2nd oldest DATE
so on and so forth....
Thanks in advance for the helps and hope to hear the good news soon.
<tbody>
</tbody><colgroup><col span="2"><col><col><col></colgroup>
Below is the data I have.
I need to find the Customer name base on same Pre-Group & same Part, copy and paste in column E "Result". With following criteria:
1. For those with same Pre-Group & same Part:
- the Customer with oldest DATE, Column E = blank
- the Customer with 2nd oldest DATE, Column E = Customer with oldest DATE
- the Customer with 3rd oldest DATE, Column E = Customer with 2nd oldest DATE
so on and so forth....
Thanks in advance for the helps and hope to hear the good news soon.
CUSTOMER | PART | DATE | Pre-GROUP | This should be the Result after the Code run |
HONEY | 40731 | 21/10/2014 | 00523 | |
HONEY | G3266 | 23/5/2011 | 00523 | |
HONEY | G3266 | 27/7/2011 | 00523 | HONEY |
SYSEM | G3266 | 16/1/2012 | 00523 | HONEY |
SYSEM | G3266 | 4/7/2013 | 00523 | SYSEM |
HONEY | G3266 | 16/12/2014 | 00523 | SYSEM |
WUHAN | G3269 | 22/7/2014 | 00523 | |
HONEY | G3354 | 10/4/2008 | 00523 | |
SYSEM | G3354 | 30/3/2010 | 00523 | HONEY |
SYSEM | G3355 | 21/7/2006 | 00523 | |
HONEY | K2788 | 6/2/2017 | 00523 | |
SHANGHAI | K2789 | 2/12/2016 | 00523 | |
HONEY | 26596 | 7/7/2007 | AA0052 | |
HONEY | 26596 | 29/3/2010 | AA0052 | HONEY |
WUHAN | 26771 | 25/9/2012 | AA0052 | |
SYSEM | 26771 | 13/2/2014 | AA0052 | WUHAN |
SHANGHAI | 38699 | 23/2/2017 | AA0052 | |
HONEY | 90-25 | 12/5/2008 | AA0052 | |
HONEY | 90-25 | 9/12/2008 | AA0052 | HONEY |
SYSEM | 90-25 | 26/2/2013 | AA0052 | HONEY |
SYSEM | G3254 | 17/4/2013 | AA0052 | |
SYSEM | G3254 | 23/10/2013 | AA0052 | SYSEM |
SYSEM | G3254 | 24/6/2014 | AA0052 | SYSEM |
HONEY | G3254 | 20/8/2014 | AA0052 | SYSEM |
HONEY | G3254 | 20/1/2015 | AA0052 | HONEY |
HONEY | G3256 | 23/12/2011 | AA0052 | |
HONEY | G3257 | 23/12/2011 | AA0052 | |
SYSEM | G3257 | 15/5/2013 | AA0052 | HONEY |
HONEY | G3257 | 21/10/2014 | AA0052 | SYSEM |
HONEY | G3257 | 19/12/2014 | AA0052 | HONEY |
WUHAN | G3261 | 18/3/2011 | AA0052 | |
SYSEM | G3261 | 6/6/2014 | AA0052 | WUHAN |
SYSEM | G3262 | 19/6/2015 | AA0052 | |
HONEY | G3262 | 17/3/2016 | AA0052 | SYSEM |
<tbody>
</tbody><colgroup><col span="2"><col><col><col></colgroup>