Hi experts
I have many data for customer . each the customer contain data from JAN to DEC so what I want split data into multiple sheets which contain data for 12 month as in picture 2 should split based on column A is month when move the next month as in PIC3 . it should copy the last value in lastrow in column G as highlighted from month JAN into month FEB in first row and add the date and client and word " opening" as is added in first row in month FEB so when finish the month and move the next should add the last balance from precede month to next month into first row . and every time change the data in sheet MAIN then should update in others sheets(JAN,FEB,......) with dosen't show the formula when split data .
orginal data
result in two months based on orginal data
note: if the last balance is minus then should show in column CREDIT when add in first row as OPENING
I have many data for customer . each the customer contain data from JAN to DEC so what I want split data into multiple sheets which contain data for 12 month as in picture 2 should split based on column A is month when move the next month as in PIC3 . it should copy the last value in lastrow in column G as highlighted from month JAN into month FEB in first row and add the date and client and word " opening" as is added in first row in month FEB so when finish the month and move the next should add the last balance from precede month to next month into first row . and every time change the data in sheet MAIN then should update in others sheets(JAN,FEB,......) with dosen't show the formula when split data .
orginal data
multi.xlsm | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | DATE | INVOICE NUMBER | CLIENT | CONDITION | DEBIT | CREDIT | BALANCE | ||
2 | 1/1/2021 | AL0 | OPENING | 12000 | 500.00 | 11,500.00 | |||
3 | 1/1/2021 | SLFR-100 | AL1 | PR100 | 10000 | 21,500.00 | |||
4 | 1/2/2021 | SLFR-101 | AL1 | PR101 | 50000 | 5,000.00 | 66,500.00 | ||
5 | 1/3/2021 | SLFR-102 | AL1 | PR102 | 62000 | 128,500.00 | |||
6 | 1/4/2021 | SLFR-103 | AL1 | PR103 | 81000 | 209,500.00 | |||
7 | 1/5/2021 | SLFR-104 | AL1 | PR104 | 100000 | 309,500.00 | |||
8 | 1/6/2021 | SLFR-105 | AL1 | PR105 | 119000 | 3,000.00 | 425,500.00 | ||
9 | 1/7/2021 | SLFR-106 | AL1 | PR106 | 138000 | 563,500.00 | |||
10 | 1/8/2021 | SLFR-107 | AL1 | PR107 | 157000 | 6,000.00 | 714,500.00 | ||
11 | 1/9/2021 | SLFR-108 | AL1 | PR108 | 176000 | 890,500.00 | |||
12 | 1/10/2021 | SLFR-109 | AL1 | PR109 | 195000 | 1,085,500.00 | |||
13 | 1/11/2021 | SLFR-110 | AL1 | PR110 | 214000 | 7,000.00 | 1,292,500.00 | ||
14 | 1/12/2021 | SLFR-111 | AL1 | PR111 | 233000 | 1,525,500.00 | |||
15 | 1/13/2021 | SLFR-112 | AL1 | PR112 | 252000 | 1,777,500.00 | |||
16 | 1/14/2021 | SLFR-113 | AL1 | PR113 | 271000 | 4,000.00 | 2,044,500.00 | ||
17 | 1/15/2021 | SLFR-114 | AL1 | PR114 | 290000 | 2,334,500.00 | |||
18 | 1/16/2021 | SLFR-115 | AL1 | PR115 | 309000 | 50,000.00 | 2,593,500.00 | ||
19 | 1/17/2021 | SLFR-116 | AL1 | PR116 | 328000 | 2,921,500.00 | |||
20 | 1/18/2021 | SLFR-117 | AL1 | PR117 | 347000 | 70,000.00 | 3,198,500.00 | ||
21 | 1/19/2021 | SLFR-118 | AL1 | PR118 | 366000 | 3,564,500.00 | |||
22 | 1/20/2021 | SLFR-119 | AL1 | PR119 | 385000 | 3,000.00 | 3,946,500.00 | ||
23 | 1/21/2021 | SLFR-115 | AL1 | PR116 | 404000 | 4,350,500.00 | |||
24 | 1/22/2021 | SLFR-116 | AL1 | PR117 | 423000 | 4,773,500.00 | |||
25 | 1/23/2021 | SLFR-117 | AL1 | PR118 | 442000 | 5,215,500.00 | |||
26 | 1/24/2021 | SLFR-118 | AL1 | PR119 | 461000 | 5,676,500.00 | |||
27 | 1/25/2021 | SLFR-119 | AL1 | PR120 | 480000 | 6,156,500.00 | |||
28 | 1/26/2021 | SLFR-120 | AL1 | PR121 | 499000 | 6,655,500.00 | |||
29 | 1/27/2021 | SLFR-121 | AL1 | PR122 | 518000 | 7,173,500.00 | |||
30 | 1/28/2021 | SLFR-122 | AL1 | PR123 | 537000 | 7,710,500.00 | |||
31 | 1/29/2021 | SLFR-123 | AL1 | PR124 | 556000 | 20,000.00 | 8,246,500.00 | ||
32 | 1/30/2021 | SLFR-124 | AL1 | PR125 | 575000 | 8,000.00 | 8,813,500.00 | ||
33 | 1/31/2021 | SLFR-125 | AL1 | PR126 | 594000 | 9,407,500.00 | |||
34 | 2/1/2021 | SLFR-126 | AL1 | PR127 | 613000 | 10,020,500.00 | |||
35 | 2/2/2021 | SLFR-127 | AL1 | PR128 | 632000 | 7,000.00 | 10,645,500.00 | ||
36 | 2/3/2021 | SLFR-128 | AL1 | PR129 | 651000 | 11,296,500.00 | |||
37 | 2/4/2021 | SLFR-129 | AL1 | PR130 | 670000 | 11,966,500.00 | |||
38 | 2/5/2021 | SLFR-130 | AL1 | PR131 | 689000 | 12,655,500.00 | |||
39 | 2/6/2021 | SLFR-131 | AL1 | PR132 | 708000 | 4,000.00 | 13,359,500.00 | ||
40 | 2/7/2021 | SLFR-132 | AL1 | PR133 | 727000 | 14,086,500.00 | |||
41 | 2/8/2021 | SLFR-133 | AL1 | PR134 | 746000 | 14,832,500.00 | |||
42 | 2/9/2021 | SLFR-134 | AL1 | PR135 | 765000 | 15,597,500.00 | |||
43 | 2/10/2021 | SLFR-135 | AL1 | PR136 | 784000 | 16,381,500.00 | |||
44 | 2/11/2021 | SLFR-136 | AL1 | PR137 | 803000 | 4,600.00 | 17,179,900.00 | ||
45 | 2/12/2021 | SLFR-137 | AL1 | PR138 | 822000 | 18,001,900.00 | |||
46 | 2/13/2021 | SLFR-138 | AL1 | PR139 | 841000 | 18,842,900.00 | |||
47 | 2/14/2021 | SLFR-139 | AL1 | PR140 | 860000 | 19,702,900.00 | |||
48 | 2/15/2021 | SLFR-140 | AL1 | PR141 | 879000 | 20,581,900.00 | |||
49 | 2/16/2021 | SLFR-141 | AL1 | PR142 | 898000 | 21,479,900.00 | |||
50 | 2/17/2021 | SLFR-142 | AL1 | PR143 | 917000 | 22,396,900.00 | |||
51 | 2/18/2021 | SLFR-143 | AL1 | PR144 | 936000 | 23,332,900.00 | |||
52 | 2/19/2021 | SLFR-144 | AL1 | PR145 | 955000 | 24,287,900.00 | |||
53 | 2/20/2021 | SLFR-145 | AL1 | PR146 | 974000 | 25,261,900.00 | |||
54 | 2/21/2021 | SLFR-146 | AL1 | PR147 | 993000 | 26,254,900.00 | |||
55 | 2/22/2021 | SLFR-147 | AL1 | PR148 | 1012000 | 27,266,900.00 | |||
56 | 2/23/2021 | SLFR-148 | AL1 | PR149 | 1031000 | 28,297,900.00 | |||
57 | 2/24/2021 | SLFR-149 | AL1 | PR150 | 1050000 | 29,347,900.00 | |||
58 | 2/25/2021 | SLFR-150 | AL1 | PR151 | 1069000 | 30,416,900.00 | |||
59 | 2/26/2021 | SLFR-151 | AL1 | PR152 | 1088000 | 31,504,900.00 | |||
60 | 2/27/2021 | SLFR-152 | AL1 | PR153 | 1107000 | 32,611,900.00 | |||
61 | 2/28/2021 | SLFR-153 | AL1 | PR154 | 1126000 | 33,737,900.00 | |||
main |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G2 | G2 | =E2-F2 |
G3:G61 | G3 | =G2+E3-F3 |
result in two months based on orginal data
multi.xlsm | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | DATE | INVOICE NUMBER | CLIENT | CONDITION | DEBIT | CREDIT | BALANCE | ||
2 | 1/1/2021 | AL1 | OPENING | 12000 | 12,000.00 | ||||
3 | 1/1/2021 | SLFR-100 | AL1 | PR100 | 10000 | 22,000.00 | |||
4 | 1/2/2021 | SLFR-101 | AL1 | PR101 | 50000 | 5,000.00 | 67,000.00 | ||
5 | 1/3/2021 | SLFR-102 | AL1 | PR102 | 62000 | 129,000.00 | |||
6 | 1/4/2021 | SLFR-103 | AL1 | PR103 | 81000 | 210,000.00 | |||
7 | 1/5/2021 | SLFR-104 | AL1 | PR104 | 100000 | 310,000.00 | |||
8 | 1/6/2021 | SLFR-105 | AL1 | PR105 | 119000 | 3,000.00 | 426,000.00 | ||
9 | 1/7/2021 | SLFR-106 | AL1 | PR106 | 138000 | 564,000.00 | |||
10 | 1/8/2021 | SLFR-107 | AL1 | PR107 | 157000 | 6,000.00 | 715,000.00 | ||
11 | 1/9/2021 | SLFR-108 | AL1 | PR108 | 176000 | 891,000.00 | |||
12 | 1/10/2021 | SLFR-109 | AL1 | PR109 | 195000 | 1,086,000.00 | |||
13 | 1/11/2021 | SLFR-110 | AL1 | PR110 | 214000 | 7,000.00 | 1,293,000.00 | ||
14 | 1/12/2021 | SLFR-111 | AL1 | PR111 | 233000 | 1,526,000.00 | |||
15 | 1/13/2021 | SLFR-112 | AL1 | PR112 | 252000 | 1,778,000.00 | |||
16 | 1/14/2021 | SLFR-113 | AL1 | PR113 | 271000 | 4,000.00 | 2,045,000.00 | ||
17 | 1/15/2021 | SLFR-114 | AL1 | PR114 | 290000 | 2,335,000.00 | |||
18 | 1/16/2021 | SLFR-115 | AL1 | PR115 | 309000 | 50,000.00 | 2,594,000.00 | ||
19 | 1/17/2021 | SLFR-116 | AL1 | PR116 | 328000 | 2,922,000.00 | |||
20 | 1/18/2021 | SLFR-117 | AL1 | PR117 | 347000 | 70,000.00 | 3,199,000.00 | ||
21 | 1/19/2021 | SLFR-118 | AL1 | PR118 | 366000 | 3,565,000.00 | |||
22 | 1/20/2021 | SLFR-119 | AL1 | PR119 | 385000 | 3,000.00 | 3,947,000.00 | ||
23 | 1/21/2021 | SLFR-115 | AL1 | PR116 | 404000 | 4,351,000.00 | |||
24 | 1/22/2021 | SLFR-116 | AL1 | PR117 | 423000 | 4,774,000.00 | |||
25 | 1/23/2021 | SLFR-117 | AL1 | PR118 | 442000 | 5,216,000.00 | |||
26 | 1/24/2021 | SLFR-118 | AL1 | PR119 | 461000 | 5,677,000.00 | |||
27 | 1/25/2021 | SLFR-119 | AL1 | PR120 | 480000 | 6,157,000.00 | |||
28 | 1/26/2021 | SLFR-120 | AL1 | PR121 | 499000 | 6,656,000.00 | |||
29 | 1/27/2021 | SLFR-121 | AL1 | PR122 | 518000 | 7,174,000.00 | |||
30 | 1/28/2021 | SLFR-122 | AL1 | PR123 | 537000 | 7,711,000.00 | |||
31 | 1/29/2021 | SLFR-123 | AL1 | PR124 | 556000 | 20,000.00 | 8,247,000.00 | ||
32 | 1/30/2021 | SLFR-124 | AL1 | PR125 | 575000 | 8,000.00 | 8,814,000.00 | ||
33 | 1/31/2021 | SLFR-125 | AL1 | PR126 | 594000 | 9,408,000.00 | |||
JAN |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G2 | G2 | =E2-F2 |
G3:G33 | G3 | =G2+E3-F3 |
multi.xlsm | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | DATE | INVOICE NUMBER | CLIENT | CONDITION | DEBIT | CREDIT | BALANCE | ||
2 | 2/1/2021 | AL1 | OPENING | 9,408,000.00 | 9,408,000.00 | ||||
3 | 2/1/2021 | SLFR-126 | AL1 | PR127 | 613000 | 10,021,000.00 | |||
4 | 2/2/2021 | SLFR-127 | AL1 | PR128 | 632000 | 7,000.00 | 10,646,000.00 | ||
5 | 2/3/2021 | SLFR-128 | AL1 | PR129 | 651000 | 11,297,000.00 | |||
6 | 2/4/2021 | SLFR-129 | AL1 | PR130 | 670000 | 11,967,000.00 | |||
7 | 2/5/2021 | SLFR-130 | AL1 | PR131 | 689000 | 12,656,000.00 | |||
8 | 2/6/2021 | SLFR-131 | AL1 | PR132 | 708000 | 4,000.00 | 13,360,000.00 | ||
9 | 2/7/2021 | SLFR-132 | AL1 | PR133 | 727000 | 14,087,000.00 | |||
10 | 2/8/2021 | SLFR-133 | AL1 | PR134 | 746000 | 14,833,000.00 | |||
11 | 2/9/2021 | SLFR-134 | AL1 | PR135 | 765000 | 15,598,000.00 | |||
12 | 2/10/2021 | SLFR-135 | AL1 | PR136 | 784000 | 16,382,000.00 | |||
13 | 2/11/2021 | SLFR-136 | AL1 | PR137 | 803000 | 4,600.00 | 17,180,400.00 | ||
14 | 2/12/2021 | SLFR-137 | AL1 | PR138 | 822000 | 18,002,400.00 | |||
15 | 2/13/2021 | SLFR-138 | AL1 | PR139 | 841000 | 18,843,400.00 | |||
16 | 2/14/2021 | SLFR-139 | AL1 | PR140 | 860000 | 19,703,400.00 | |||
17 | 2/15/2021 | SLFR-140 | AL1 | PR141 | 879000 | 20,582,400.00 | |||
18 | 2/16/2021 | SLFR-141 | AL1 | PR142 | 898000 | 21,480,400.00 | |||
19 | 2/17/2021 | SLFR-142 | AL1 | PR143 | 917000 | 22,397,400.00 | |||
20 | 2/18/2021 | SLFR-143 | AL1 | PR144 | 936000 | 23,333,400.00 | |||
21 | 2/19/2021 | SLFR-144 | AL1 | PR145 | 955000 | 24,288,400.00 | |||
22 | 2/20/2021 | SLFR-145 | AL1 | PR146 | 974000 | 25,262,400.00 | |||
23 | 2/21/2021 | SLFR-146 | AL1 | PR147 | 993000 | 26,255,400.00 | |||
24 | 2/22/2021 | SLFR-147 | AL1 | PR148 | 1012000 | 27,267,400.00 | |||
25 | 2/23/2021 | SLFR-148 | AL1 | PR149 | 1031000 | 28,298,400.00 | |||
26 | 2/24/2021 | SLFR-149 | AL1 | PR150 | 1050000 | 29,348,400.00 | |||
27 | 2/25/2021 | SLFR-150 | AL1 | PR151 | 1069000 | 30,417,400.00 | |||
28 | 2/26/2021 | SLFR-151 | AL1 | PR152 | 1088000 | 31,505,400.00 | |||
29 | 2/27/2021 | SLFR-152 | AL1 | PR153 | 1107000 | 32,612,400.00 | |||
30 | 2/28/2021 | SLFR-153 | AL1 | PR154 | 1126000 | 33,738,400.00 | |||
FEB |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G2 | G2 | =E2-F2 |
G3:G30 | G3 | =G2+E3-F3 |
note: if the last balance is minus then should show in column CREDIT when add in first row as OPENING