hello
I need extract amount for each sheet based on last row for each name .
in column B should merge date for the last row with OPENING BALANCE word for each name , column C should populate name based on sheet name , column D should brings amount from the last row in column E
and will add new sheets before BALANCES sheet and will add new data for each sheet ,then should replace new data for old data by delete data have already copied in BALANCES sheet when every time add new data in others sheets.
if there is macro will be great.
thanks
result
before
after
I need extract amount for each sheet based on last row for each name .
in column B should merge date for the last row with OPENING BALANCE word for each name , column C should populate name based on sheet name , column D should brings amount from the last row in column E
and will add new sheets before BALANCES sheet and will add new data for each sheet ,then should replace new data for old data by delete data have already copied in BALANCES sheet when every time add new data in others sheets.
if there is macro will be great.
thanks
asq | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | DATE | Describe | DEBIT | CREDIT | BALANCE | ||
2 | 05/01/2022 | NOT PAID | 1233 | 1233 | |||
3 | 06/01/2022 | NOT PAID | 1233 | 2466 | |||
4 | 07/01/2022 | PAID | 2000 | 466 | |||
5 | 08/01/2022 | PAID | 400 | 66 | |||
ALA |
asq | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | DATE | Describe | DEBIT | CREDIT | BALANCE | ||
2 | 08/01/2022 | 0 | |||||
3 | 09/01/2022 | NOT PAID | 2000 | 2000 | |||
4 | 11/01/2022 | NOT PAID | 2000 | 1000 | 3000 | ||
5 | 11/01/2022 | NOT PAID | 2000 | 4000 | 1000 | ||
ALN |
asq | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | DATE | Describe | DEBIT | CREDIT | BALANCE | ||
2 | 11/01/2022 | 0 | |||||
3 | 12/01/2022 | NOT PAID | 1500 | 1500 | |||
4 | 13/01/2022 | NOT PAID | 500 | 2000 | |||
5 | 14/01/2022 | PAID | 2000 | 1000 | 3000 | ||
6 | 15/01/2022 | PAID | 1010 | 1990 | |||
7 | 16/01/2022 | PAID | 1000 | 990 | |||
8 | 17/01/2022 | PAID | 990 | 0 | |||
ALM |
result
before
asq | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | ITEM | DETAILES | NAMES | AMOUNT | ||
2 | ||||||
3 | ||||||
4 | ||||||
5 | ||||||
6 | ||||||
7 | ||||||
8 | ||||||
9 | ||||||
10 | ||||||
11 | ||||||
12 | ||||||
BALANCES |
after
asq | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | ITEM | DETAILES | NAMES | AMOUNT | ||
2 | 1 | OPENING BALANCE 08/01/2022 | ALA | 66 | ||
3 | 2 | OPENING BALANCE 11/01/2022 | ALN | 1000 | ||
4 | 3 | OPENING BALANCE 17/01/2022 | ALM | 0 | ||
5 | ||||||
6 | ||||||
7 | ||||||
8 | ||||||
9 | ||||||
10 | ||||||
11 | ||||||
12 | ||||||
BALANCES |
Last edited: