Hi experts ,
I search for way to insert new row before TOTAL row for each separated range based on match name for column I .
if the selected name from combobox1 is matched with name in column I for separated range , then should insert new row before TOTAL row and recalculation based on previous row and change sum TOTAL values for columns J,K,l ,but in reality I don't have any formulas whether in Total row or column L , just to understand who calculate before insert row and how cold be after insert row .
so when fill data on userform for textbox1=column I, textbox2= column J, textbox3=column K , as to column H should populate date(today)
so this is when I fill userform
and see the highlighted as in result
thanks in advance
I search for way to insert new row before TOTAL row for each separated range based on match name for column I .
if the selected name from combobox1 is matched with name in column I for separated range , then should insert new row before TOTAL row and recalculation based on previous row and change sum TOTAL values for columns J,K,l ,but in reality I don't have any formulas whether in Total row or column L , just to understand who calculate before insert row and how cold be after insert row .
so when fill data on userform for textbox1=column I, textbox2= column J, textbox3=column K , as to column H should populate date(today)
so this is when I fill userform
and see the highlighted as in result
insert row (version 1).xlsb | |||||||
---|---|---|---|---|---|---|---|
H | I | J | K | L | |||
1 | NAME | ||||||
2 | ALI | ||||||
3 | DATE | ACCOUNT NAME | DEBIT | CREDIT | BALANCE | ||
4 | 20/06/2023 | CASH BALANCE | 200,000.00 | 200,000.00 | |||
5 | 21/06/2023 | CASH PR | 15,000.00 | 30,500.00 | 184,500.00 | ||
6 | 22/06/2023 | CASH DM | 9,500.00 | 37,000.00 | 157,000.00 | ||
7 | 22/06/2023 | EXPENSE ADMIN | 65,000.00 | 92,000.00 | |||
8 | 23/06/2023 | EXPENSE PR | 1,200.00 | 90,800.00 | |||
9 | TOTAL | 224,500.00 | 133,700.00 | 90,800.00 | |||
10 | |||||||
11 | NAME | ||||||
12 | OMAR | ||||||
13 | ITEM | ACCOUNT NAME | DEBIT | CREDIT | BALANCE | ||
14 | 20/06/2023 | PURCHASE | 15,000.00 | 15,000.00 | |||
15 | 21/06/2023 | STOCK1 | 100,000.00 | 115,000.00 | |||
16 | 22/06/2023 | PURCHASE RETURNS | 4,000.00 | 111,000.00 | |||
17 | 22/06/2023 | PURCHASE LOW | 6,200.00 | 117,200.00 | |||
18 | 22/06/2023 | EXPENSE PR | 37,000.00 | 154,200.00 | |||
19 | TOTAL | 158,200.00 | 4,000.00 | 154,200.00 | |||
20 | |||||||
21 | NAME | ||||||
22 | MAHMOUD | ||||||
23 | ITEM | ACCOUNT NAME | DEBIT | CREDIT | BALANCE | ||
24 | 22/06/2023 | SALES | 201,000.00 | -201,000.00 | |||
25 | 22/06/2023 | SALES RETURNS | 3,500.00 | -197,500.00 | |||
SE |
Cell Formulas | ||
---|---|---|
Range | Formula | |
L4,L24,L19,L14,L9 | L4 | =J4-K4 |
L25,L15:L18,L5:L8 | L5 | =L4+J5-K5 |
J9 | J9 | =SUM(J4:J7) |
K9,J19:K19 | K9 | =SUM(K4:K8) |
thanks in advance