kumara_faith
Well-known Member
- Joined
- Aug 19, 2006
- Messages
- 928
- Office Version
- 365
Hi,
I have the following in Table 1 which shows the date the customer visited the outlet.
I have the following which shows the date the customer logs into our mobile application:
I have the following in Table 3:
In the third column in Table 3 ( Login After Visit), I am trying to summarize as follows:
If the customer logs into the mobile apps on or after the visit to the branch, the formula should return the value as the number of times after the visit to the outlet that customer logs into the app. Example fopr customer C004, he visited the branch twice and only then logs into the app. Therefore, the result is 2. For customer C001, he logs into the app after the 4th visit to the outlet, therefore the results is 4. Customer C003 has never logged into the app and therefore the result will be 0.
Is there a way to create a formula for the above ? Appreciate all the help.
I have the following in Table 1 which shows the date the customer visited the outlet.
Table 1 | |
Customer ID | Visit Date |
C001 | 3/7/2023 |
C002 | 3/7/2023 |
C003 | 3/7/2023 |
C004 | 3/7/2023 |
C005 | 3/7/2023 |
C001 | 4/7/2023 |
C002 | 4/7/2023 |
C003 | 4/7/2023 |
C004 | 4/7/2023 |
C004 | 4/7/2023 |
C005 | 4/7/2023 |
C001 | 5/7/2023 |
C002 | 5/7/2023 |
C003 | 5/7/2023 |
C004 | 5/7/2023 |
C005 | 5/7/2023 |
C001 | 1/8/2023 |
C002 | 1/8/2023 |
C003 | 1/8/2023 |
C004 | 1/8/2023 |
C005 | 1/8/2023 |
C001 | 4/8/2023 |
C002 | 4/8/2023 |
C003 | 4/8/2023 |
C004 | 4/8/2023 |
C005 | 4/8/2023 |
I have the following which shows the date the customer logs into our mobile application:
Table 2 | |
Customer ID | Login Date |
C004 | 4/7/2023 |
C005 | 5/7/2023 |
C001 | 2/8/2023 |
C002 | 2/8/2023 |
I have the following in Table 3:
Table 3 | ||
Customer ID | Visit Date | Login After Visit |
C001 | 3/7/2023 | 0 |
C002 | 3/7/2023 | 0 |
C003 | 3/7/2023 | 0 |
C004 | 3/7/2023 | 0 |
C005 | 3/7/2023 | 0 |
C001 | 4/7/2023 | 0 |
C002 | 4/7/2023 | 0 |
C003 | 4/7/2023 | 0 |
C004 | 4/7/2023 | 2 |
C004 | 4/7/2023 | 2 |
C005 | 4/7/2023 | 0 |
C001 | 5/7/2023 | 0 |
C002 | 5/7/2023 | 0 |
C003 | 5/7/2023 | 0 |
C004 | 5/7/2023 | 0 |
C005 | 5/7/2023 | 3 |
C001 | 1/8/2023 | 4 |
C002 | 1/8/2023 | 4 |
C003 | 1/8/2023 | 0 |
C004 | 1/8/2023 | 0 |
C005 | 1/8/2023 | 0 |
C001 | 4/8/2023 | 0 |
C002 | 4/8/2023 | 0 |
C003 | 4/8/2023 | 0 |
C004 | 4/8/2023 | 0 |
C005 | 4/8/2023 | 0 |
In the third column in Table 3 ( Login After Visit), I am trying to summarize as follows:
If the customer logs into the mobile apps on or after the visit to the branch, the formula should return the value as the number of times after the visit to the outlet that customer logs into the app. Example fopr customer C004, he visited the branch twice and only then logs into the app. Therefore, the result is 2. For customer C001, he logs into the app after the 4th visit to the outlet, therefore the results is 4. Customer C003 has never logged into the app and therefore the result will be 0.
Is there a way to create a formula for the above ? Appreciate all the help.