Amir Wisal
New Member
- Joined
- Oct 25, 2021
- Messages
- 16
- Office Version
- 365
- Platform
- Windows
Hi there,
I want to generate a dynamic sequence of voucher numbers by a formula but if there is a better alternative, I am open to it.
I want it to pick the sequence number dynamically but the catch is - if column "D" states cash before the blank row, I want it to start with CPV and then the dynamic number i.e. CPV-001 etc and if the column D value is bank then the desired result needs to be BPV-001.
Each entry will be separated by a blank row however each entry might have a different number of lines.
Please see the desired result column for reference. file can also be accessed from this Link
Many Thanks,
I want to generate a dynamic sequence of voucher numbers by a formula but if there is a better alternative, I am open to it.
I want it to pick the sequence number dynamically but the catch is - if column "D" states cash before the blank row, I want it to start with CPV and then the dynamic number i.e. CPV-001 etc and if the column D value is bank then the desired result needs to be BPV-001.
Each entry will be separated by a blank row however each entry might have a different number of lines.
Please see the desired result column for reference. file can also be accessed from this Link
DATE | Desired Result | ACC_CODE | ACC_DESCRIPTION | DR | CR |
2022/01/01 | CPV-001 | 500-001 | Food | 300 | |
2022/01/01 | 500-003 | stationery | 100 | ||
2022/01/01 | 600-001 | Cash | 400 | ||
2022/01/01 | BPV-001 | 550-001 | fuel | 320 | |
2022/01/01 | 500-008 | lunch | 120 | ||
2022/01/01 | 600-001 | bank | 440 | ||
2022/01/02 | CPV-002 | 500-008 | traveling | 20000 | |
2022/01/02 | 100-005 | printing | 10000 | ||
2022/01/02 | 550-001 | postage | 5000 | ||
2022/01/02 | 600-001 | Cash | 35000 | ||
2022/01/02 | BPV-002 | 500-008 | traveling | 8000 | |
2022/01/02 | 500-0011 | Misc | 5000 | ||
2022/01/02 | 500-012 | entertainment | 7000 | ||
2022/01/02 | 100-005 | printing | 10000 | ||
2022/01/02 | 550-001 | postage | 5000 | ||
2022/01/02 | 600-001 | bank | 35000 |
Many Thanks,