I have a table like this
PN COUNT DATE
ABC 1/18/2016
ABC 1/20/2016
ABC 5/5/2016
XYZ 1/12/2016
XYZ 1/18/2016
XYZ 5/10/2016
HIJ 1/8/2016
HIJ 1/12/2016
All PNs have to be counted 4 times a year
the issue I have is there is a criteria that if a PN is counted within 62 days of each count that it does not count as an actual count.
I need to have this information sorted to one of these two options and I cannot figure it out. Notice that each of the second count dates from above are not included in the output as there was not 62 days that have lapsed since the first count
PN First Count Second Count Third Count Forth Count
ABC 1/18/2016 5/5/2016
XYZ 1/12/2016 5/10/2016
HIJ 1/8/2016
OR
PN Times Counted
ABC 2
XYZ 2
HIJ 1
Any help here would be greatly appreciated.
thank you
PN COUNT DATE
ABC 1/18/2016
ABC 1/20/2016
ABC 5/5/2016
XYZ 1/12/2016
XYZ 1/18/2016
XYZ 5/10/2016
HIJ 1/8/2016
HIJ 1/12/2016
All PNs have to be counted 4 times a year
the issue I have is there is a criteria that if a PN is counted within 62 days of each count that it does not count as an actual count.
I need to have this information sorted to one of these two options and I cannot figure it out. Notice that each of the second count dates from above are not included in the output as there was not 62 days that have lapsed since the first count
PN First Count Second Count Third Count Forth Count
ABC 1/18/2016 5/5/2016
XYZ 1/12/2016 5/10/2016
HIJ 1/8/2016
OR
PN Times Counted
ABC 2
XYZ 2
HIJ 1
Any help here would be greatly appreciated.
thank you