F
ftrujill0
Hi,
I am struggling a lot with a task that I've been recently
assigned...basically I need to find if a member has had a gap in their
membership. If there is a gap in there membership I can only count the number
of months of membership after the gap. If no gap occurred, I count all months.
Here is an example of the data that I'm playing with (I put the data in a
pivot view to help explain):
user_id 072006 082006 092006 102006 112006 122006
99999263 1 1 1 1 1 1
99999264 1 1 1 1
99999265 1 1
99999266 1 1 1
99999267 1 1 1 1 1
So user_id 99999263 would have 6 months of membership without a gap. But
99999264, 99999265, 99999266, 99999267 all have a gap and we should only
count the months after the gap. So 99999264 and 99999266 would have 3 months
and user_id 99999267 would have 4 months of membership. User_id 9999925 would
have zero months (since we are only counting after the gap).
I honestly don't know where to start and have very limited (aka newbie) vba
experience...any help would be grand.
THANKS IN ADVANCE.
I am struggling a lot with a task that I've been recently
assigned...basically I need to find if a member has had a gap in their
membership. If there is a gap in there membership I can only count the number
of months of membership after the gap. If no gap occurred, I count all months.
Here is an example of the data that I'm playing with (I put the data in a
pivot view to help explain):
user_id 072006 082006 092006 102006 112006 122006
99999263 1 1 1 1 1 1
99999264 1 1 1 1
99999265 1 1
99999266 1 1 1
99999267 1 1 1 1 1
So user_id 99999263 would have 6 months of membership without a gap. But
99999264, 99999265, 99999266, 99999267 all have a gap and we should only
count the months after the gap. So 99999264 and 99999266 would have 3 months
and user_id 99999267 would have 4 months of membership. User_id 9999925 would
have zero months (since we are only counting after the gap).
I honestly don't know where to start and have very limited (aka newbie) vba
experience...any help would be grand.
THANKS IN ADVANCE.