Hi, I need help to create an excel formula. I need to increment the reference column if the vendor and date changed.
ORIGINAL | ||||
RefNumber | APAccount | Vendor | TxnDate | LineAmount |
2000 | QGiv | 1/1/2021 | 39.48 | |
EFT-01/01/2021 | 2000 | QGiv | 1/1/2021 | 39.48 |
EFT-01/01/2021 | 2000 | QGiv | 1/1/2021 | 39.48 |
EFT-01/01/2021 | 2000 | QGiv | 1/1/2021 | 39.48 |
EFT-01/01/2021 | 2000 | Republic Services #924 | 1/1/2021 | 302.16 |
EFT-01/01/2021 | 2000 | Square | 1/1/2021 | 149.47 |
EFT-01/01/2021 | 2000 | Square | 1/1/2021 | 21.55 |
EFT-01/01/2021 | 2000 | Square | 1/1/2021 | 99.22 |
SHOULD BE THE OUTPUT | ||||
RefNumber | APAccount | Vendor | TxnDate | LineAmount |
EFT-01/01/2021-1 | 2000 | QGiv | 1/1/2021 | 39.48 |
EFT-01/01/2021-1 | 2000 | QGiv | 1/1/2021 | 39.48 |
EFT-01/01/2021-1 | 2000 | QGiv | 1/1/2021 | 39.48 |
EFT-01/01/2021-1 | 2000 | QGiv | 1/1/2021 | 39.48 |
EFT-01/01/2021-2 | 2000 | Republic Services #924 | 1/4/2021 | 302.16 |
EFT-01/01/2021-3 | 2000 | Square | 1/4/2021 | 149.47 |
EFT-01/01/2021-3 | 2000 | Square | 1/5/2021 | 21.55 |
EFT-01/01/2021-3 | 2000 | Square | 1/6/2021 | 99.22 |
EXCEL HELP.xlsx | |||||||
---|---|---|---|---|---|---|---|
C | D | E | F | G | |||
4 | ORIGINAL | ||||||
5 | RefNumber | APAccount | Vendor | TxnDate | LineAmount | ||
6 | 2000 | QGiv | 1/1/2021 | 39.48 | |||
7 | EFT-01/01/2021 | 2000 | QGiv | 1/1/2021 | 39.48 | ||
8 | EFT-01/01/2021 | 2000 | QGiv | 1/1/2021 | 39.48 | ||
9 | EFT-01/01/2021 | 2000 | QGiv | 1/1/2021 | 39.48 | ||
10 | EFT-01/01/2021 | 2000 | Republic Services #924 | 1/1/2021 | 302.16 | ||
11 | EFT-01/01/2021 | 2000 | Square | 1/1/2021 | 149.47 | ||
12 | EFT-01/01/2021 | 2000 | Square | 1/1/2021 | 21.55 | ||
13 | EFT-01/01/2021 | 2000 | Square | 1/1/2021 | 99.22 | ||
14 | |||||||
15 | SHOULD BE THE OUTPUT | ||||||
16 | RefNumber | APAccount | Vendor | TxnDate | LineAmount | ||
17 | EFT-01/01/2021-1 | 2000 | QGiv | 1/1/2021 | 39.48 | ||
18 | EFT-01/01/2021-1 | 2000 | QGiv | 1/1/2021 | 39.48 | ||
19 | EFT-01/01/2021-1 | 2000 | QGiv | 1/1/2021 | 39.48 | ||
20 | EFT-01/01/2021-1 | 2000 | QGiv | 1/1/2021 | 39.48 | ||
21 | EFT-01/01/2021-2 | 2000 | Republic Services #924 | 1/4/2021 | 302.16 | ||
22 | EFT-01/01/2021-3 | 2000 | Square | 1/4/2021 | 149.47 | ||
23 | EFT-01/01/2021-3 | 2000 | Square | 1/5/2021 | 21.55 | ||
24 | EFT-01/01/2021-3 | 2000 | Square | 1/6/2021 | 99.22 | ||
Sheet1 |