Partha Speaks
New Member
- Joined
- Jan 27, 2020
- Messages
- 3
- Office Version
- 365
- Platform
- Windows
Hello Experts,
I am having trouble in calculating a the 'final value' column in the below table. Imagine you have a text column 'sample_card' which has multiple transactions over a month. Now, a particular card is eligible for one txn per day only. Maximum discount VALUE PER TXN is set at 75. I have to determine what value a particular card is eligible for discount.
I have more than 30000 such records. Need some formula to get the column 'Final_value'.
I have tried using countif, it didn't work. I tried concatenating date and sample_card , and then countif (sample_card all colum, cample_card that row's column). It didn't work.
Kindly help.
I am having trouble in calculating a the 'final value' column in the below table. Imagine you have a text column 'sample_card' which has multiple transactions over a month. Now, a particular card is eligible for one txn per day only. Maximum discount VALUE PER TXN is set at 75. I have to determine what value a particular card is eligible for discount.
I have more than 30000 such records. Need some formula to get the column 'Final_value'.
I have tried using countif, it didn't work. I tried concatenating date and sample_card , and then countif (sample_card all colum, cample_card that row's column). It didn't work.
Kindly help.
row no | sample_card | date | txn discount passed | MAX DISCOUNT VALUE | final value |
1 | 0002357838937492324 | 2-Oct-19 | 50 | 75 | 50 |
2 | 0002357838937492324 | 2-Oct-19 | 40 | 75 | 0 |
3 | 0002357838937492324 | 5-Oct-19 | 70 | 75 | 70 |
4 | 0001675759313894932 | 12-Oct-19 | 80 | 75 | 75 |
5 | 0001675759313894932 | 12-Oct-19 | 50 | 75 | 0 |
6 | 0001675759313894932 | 15-Oct-19 | 30 | 75 | 0 |
6 | 0001675759313894932 | 15-Oct-19 | 70 | 75 | 70 |
6 | 0001675759313894932 | 2-Oct-19 | 40 | 75 | 40 |