Hi
in TT sheet when try deleting row then should decrease amount in column D for adjacent cells(NAME,NET AMOUNT) ignoring SALARY
into EMPLOYEES sheet base on matching NAME in column C between two sheets.
Delete row from TT sheet as in lastrow
if the amount is minus for adjacent cells(NAME) then shoud decrease amount by add to amount for adjacent cells(NAME) and change amount for adjacent cells(NET AMOUNT) by sum amounts for for adjacent cells(NAME,SALARY) .
so see how become as highlighted by red
another case to delete row from TT sheet
if the amount is positive for adjacent cells(NAME) then shoud decrease amount by subtract from amount for adjacent cells(NAME) and change amount for adjacent cells(NET AMOUNT) by sum amounts for for adjacent cells(NAME,SALARY) .
so see how become as highlighted by red
in TT sheet when try deleting row then should decrease amount in column D for adjacent cells(NAME,NET AMOUNT) ignoring SALARY
into EMPLOYEES sheet base on matching NAME in column C between two sheets.
data.xlsm | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | START DATE | LAST DATE | NAME | FIRST BALANCE | ||
2 | 01/01/2023 | 31/01/2023 | OMAR ALI OMAR | -20,000.00 | ||
3 | SALARY | 3,000.00 | ||||
4 | NET AMOUNT | -17,000.00 | ||||
5 | ||||||
6 | ||||||
7 | START DATE | LAST DATE | NAME | FIRST BALANCE | ||
8 | 01/01/2023 | 31/01/2023 | AHMED OMAR ALI | 24,000.00 | ||
9 | SALARY | 12,000.00 | ||||
10 | NET AMOUNT | 36,000.00 | ||||
11 | ||||||
12 | ||||||
13 | START DATE | LAST DATE | NAME | FIRST BALANCE | ||
14 | 01/01/2023 | 31/01/2023 | ALI MAHMUD OMAR | 10,000.00 | ||
15 | SALARY | 2,500.00 | ||||
16 | NET AMOUNT | 12,500.00 | ||||
EMPLOYEES |
data.xlsm | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | NAME | FIRST BALANCE | SALARY | NET AMOUNT | ||
2 | 11/02/2023 | OMAR ALI OMAR | Advance payment by safe | 2,000.00 | ||
3 | 12/02/2023 | ALI MAHMUD OMAR | Advance payment by bank | 2,500.00 | ||
4 | 13/02/2023 | AHMED OMAR ALI | Pay payment safe | 3,000.00 | ||
5 | 14/03/2023 | OMAR ALI OMAR | Pay payment bank | 5,000.00 | ||
TT |
Delete row from TT sheet as in lastrow
data.xlsm | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | NAME | FIRST BALANCE | SALARY | NET AMOUNT | ||
2 | 11/02/2023 | OMAR ALI OMAR | Advance payment by safe | 2,000.00 | ||
3 | 12/02/2023 | ALI MAHMUD OMAR | Advance payment by bank | 2,500.00 | ||
4 | 13/02/2023 | AHMED OMAR ALI | Pay payment safe | 3,000.00 | ||
5 | 14/03/2023 | OMAR ALI OMAR | Pay payment bank | 5,000.00 | ||
TT |
if the amount is minus for adjacent cells(NAME) then shoud decrease amount by add to amount for adjacent cells(NAME) and change amount for adjacent cells(NET AMOUNT) by sum amounts for for adjacent cells(NAME,SALARY) .
so see how become as highlighted by red
data.xlsm | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | START DATE | LAST DATE | NAME | FIRST BALANCE | ||
2 | 01/01/2023 | 31/01/2023 | OMAR ALI OMAR | -15,000.00 | ||
3 | SALARY | 3,000.00 | ||||
4 | NET AMOUNT | -12,000.00 | ||||
5 | ||||||
6 | ||||||
7 | START DATE | LAST DATE | NAME | FIRST BALANCE | ||
8 | 01/01/2023 | 31/01/2023 | AHMED OMAR ALI | 24,000.00 | ||
9 | SALARY | 12,000.00 | ||||
10 | NET AMOUNT | 36,000.00 | ||||
11 | ||||||
12 | ||||||
13 | START DATE | LAST DATE | NAME | FIRST BALANCE | ||
14 | 01/01/2023 | 31/01/2023 | ALI MAHMUD OMAR | 10,000.00 | ||
15 | SALARY | 2,500.00 | ||||
16 | NET AMOUNT | 12,500.00 | ||||
EMPLOYEES |
another case to delete row from TT sheet
data.xlsm | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | NAME | FIRST BALANCE | SALARY | NET AMOUNT | ||
2 | 11/02/2023 | OMAR ALI OMAR | Advance payment by safe | 2,000.00 | ||
3 | 12/02/2023 | ALI MAHMUD OMAR | Advance payment by bank | 2,500.00 | ||
4 | 13/02/2023 | AHMED OMAR ALI | Pay payment safe | 3,000.00 | ||
TT |
if the amount is positive for adjacent cells(NAME) then shoud decrease amount by subtract from amount for adjacent cells(NAME) and change amount for adjacent cells(NET AMOUNT) by sum amounts for for adjacent cells(NAME,SALARY) .
so see how become as highlighted by red
data.xlsm | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | START DATE | LAST DATE | NAME | FIRST BALANCE | ||
2 | 01/01/2023 | 31/01/2023 | OMAR ALI OMAR | -15,000.00 | ||
3 | SALARY | 3,000.00 | ||||
4 | NET AMOUNT | -12,000.00 | ||||
5 | ||||||
6 | ||||||
7 | START DATE | LAST DATE | NAME | FIRST BALANCE | ||
8 | 01/01/2023 | 31/01/2023 | AHMED OMAR ALI | 21,000.00 | ||
9 | SALARY | 12,000.00 | ||||
10 | NET AMOUNT | 33,000.00 | ||||
11 | ||||||
12 | ||||||
13 | START DATE | LAST DATE | NAME | FIRST BALANCE | ||
14 | 01/01/2023 | 31/01/2023 | ALI MAHMUD OMAR | 10,000.00 | ||
15 | SALARY | 2,500.00 | ||||
16 | NET AMOUNT | 12,500.00 | ||||
EMPLOYEES |