Hello,
I would macro to create report column H:K with the same formatting and borders and headers .
so should brings the date based on column A before TOTAL row and put in column H and brings balance in TOTAL row from column E and put in column I and brings amount from column F is (always existed before TOTAL row) and put in column J and column K = column I+ column J and insert TOTAL row to sum each column
should be
another example
should be
I just would macro , I don't want solution by Power Query or Pivot Table at all.
thanks
I would macro to create report column H:K with the same formatting and borders and headers .
so should brings the date based on column A before TOTAL row and put in column H and brings balance in TOTAL row from column E and put in column I and brings amount from column F is (always existed before TOTAL row) and put in column J and column K = column I+ column J and insert TOTAL row to sum each column
Q5.xlsx | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | DATE | DESCRIBE | DEBIT | CREDIT | BALANCE | REAL | ||
2 | 19/06/2023 | INV001 | 4,220.00 | 4,220.00 | ||||
3 | 19/06/2023 | INV002 | 5,000.00 | 9,220.00 | ||||
4 | 19/06/2023 | INV003 | 1,920.00 | 11,140.00 | ||||
5 | 19/06/2023 | INV004 | 270.00 | 11,410.00 | ||||
6 | 19/06/2023 | INV005 | 4,220.00 | 15,630.00 | ||||
7 | 19/06/2023 | INV006 | 3,700.00 | 19,330.00 | ||||
8 | 19/06/2023 | INV007 | 2,460.00 | 21,790.00 | ||||
9 | 19/06/2023 | INV008 | 1,000.00 | 22,790.00 | ||||
10 | 19/06/2023 | EXPENSES | 44.00 | 22,746.00 | ||||
11 | 19/06/2023 | EXPENSES | 30.00 | 22,716.00 | ||||
12 | 19/06/2023 | EXPENSES | 65.00 | 22,651.00 | ||||
13 | 19/06/2023 | EXPENSES | 11.00 | 22,640.00 | 1,700.00 | |||
14 | TOTAL | 22,790.00 | 150.00 | 22,640.00 | ||||
ASS |
should be
Q5.xlsx | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | |||
1 | DATE | DESCRIBE | DEBIT | CREDIT | BALANCE | REAL | DATE | BALANCE | REAL | NET | |||
2 | 19/06/2023 | INV001 | 4,220.00 | 4,220.00 | 19/06/2023 | 22,640.00 | 1,700.00 | 24,340.00 | |||||
3 | 19/06/2023 | INV002 | 5,000.00 | 9,220.00 | TOTAL | 22,640.00 | 1,700.00 | 24,340.00 | |||||
4 | 19/06/2023 | INV003 | 1,920.00 | 11,140.00 | |||||||||
5 | 19/06/2023 | INV004 | 270.00 | 11,410.00 | |||||||||
6 | 19/06/2023 | INV005 | 4,220.00 | 15,630.00 | |||||||||
7 | 19/06/2023 | INV006 | 3,700.00 | 19,330.00 | |||||||||
8 | 19/06/2023 | INV007 | 2,460.00 | 21,790.00 | |||||||||
9 | 19/06/2023 | INV008 | 1,000.00 | 22,790.00 | |||||||||
10 | 19/06/2023 | EXPENSES | 44.00 | 22,746.00 | |||||||||
11 | 19/06/2023 | EXPENSES | 30.00 | 22,716.00 | |||||||||
12 | 19/06/2023 | EXPENSES | 65.00 | 22,651.00 | |||||||||
ASS |
Cell Formulas | ||
---|---|---|
Range | Formula | |
K2 | K2 | =I2+J2 |
I3:K3 | I3 | =SUM(I2) |
another example
Q5.xlsx | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | |||
1 | DATE | DESCRIBE | DEBIT | CREDIT | BALANCE | REAL | DATE | BALANCE | REAL | NET | |||
2 | 20/06/2023 | INV001 | 4,220.00 | 4,220.00 | 19/06/2023 | 22,640.00 | 1,700.00 | 24,340.00 | |||||
3 | 20/06/2023 | INV002 | 5,000.00 | 9,220.00 | TOTAL | 22,640.00 | 1,700.00 | 24,340.00 | |||||
4 | 20/06/2023 | INV003 | 1,920.00 | 11,140.00 | |||||||||
5 | 20/06/2023 | INV004 | 270.00 | 11,410.00 | |||||||||
6 | 20/06/2023 | INV005 | 4,220.00 | 15,630.00 | |||||||||
7 | 20/06/2023 | INV006 | 3,700.00 | 19,330.00 | |||||||||
8 | 20/06/2023 | INV007 | 2,460.00 | 21,790.00 | |||||||||
9 | 20/06/2023 | INV008 | 1,000.00 | 22,790.00 | |||||||||
10 | 20/06/2023 | EXPENSES | 44.00 | 22,746.00 | |||||||||
11 | 20/06/2023 | EXPENSES | 30.00 | 22,716.00 | |||||||||
12 | 20/06/2023 | EXPENSES | 65.00 | 22,651.00 | |||||||||
13 | 20/06/2023 | EXPENSES | 11.00 | 22,640.00 | |||||||||
14 | 20/06/2023 | INV009 | 5,000.00 | 27,640.00 | -3,300.00 | ||||||||
15 | TOTAL | 27,790.00 | 150.00 | 27,640.00 | |||||||||
ASS |
Cell Formulas | ||
---|---|---|
Range | Formula | |
K2 | K2 | =I2+J2 |
I3:K3 | I3 | =SUM(I2) |
should be
Q5.xlsx | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | |||
1 | DATE | DESCRIBE | DEBIT | CREDIT | BALANCE | REAL | DATE | BALANCE | REAL | NET | |||
2 | 20/06/2023 | INV001 | 4,220.00 | 4,220.00 | 19/06/2023 | 22,640.00 | 1,700.00 | 24,340.00 | |||||
3 | 20/06/2023 | INV002 | 5,000.00 | 9,220.00 | 20/06/2023 | 27,640.00 | -3,300.00 | 24,340.00 | |||||
4 | 20/06/2023 | INV003 | 1,920.00 | 11,140.00 | TOTAL | 50,280.00 | -1,600.00 | 48,680.00 | |||||
5 | 20/06/2023 | INV004 | 270.00 | 11,410.00 | |||||||||
6 | 20/06/2023 | INV005 | 4,220.00 | 15,630.00 | |||||||||
7 | 20/06/2023 | INV006 | 3,700.00 | 19,330.00 | |||||||||
8 | 20/06/2023 | INV007 | 2,460.00 | 21,790.00 | |||||||||
9 | 20/06/2023 | INV008 | 1,000.00 | 22,790.00 | |||||||||
10 | 20/06/2023 | EXPENSES | 44.00 | 22,746.00 | |||||||||
11 | 20/06/2023 | EXPENSES | 30.00 | 22,716.00 | |||||||||
12 | 20/06/2023 | EXPENSES | 65.00 | 22,651.00 | |||||||||
13 | 20/06/2023 | EXPENSES | 11.00 | 22,640.00 | |||||||||
14 | 20/06/2023 | INV009 | 5,000.00 | 27,640.00 | -3,300.00 | ||||||||
15 | TOTAL | 27,790.00 | 150.00 | 27,640.00 | |||||||||
ASS |
Cell Formulas | ||
---|---|---|
Range | Formula | |
K2:K3 | K2 | =I2+J2 |
I4:K4 | I4 | =SUM(I2:I3) |
I just would macro , I don't want solution by Power Query or Pivot Table at all.
thanks