Merge Sheets

rtr1811

New Member
Joined
Jun 3, 2020
Messages
24
Office Version
  1. 2007
Platform
  1. Windows
In the sorted Wardwise Sheet After Each ward (The number in Column D defines Ward)


1. In an Excel file, there are few sheets with their names as numbers and there is also sheet called Wardwise. The rows in the sheets with their names as numbers have to be copied to Wardwise sheet. Beginning of copying has to be from the first row which contains numbers as their value. Hardcoding has to be avoided. End of Copying has to be identified by the row which contains “Net Total”(Case insensitive). In the Wardwise sheet, there is a column called Part No. This has to be read from the sheet name (eg While copying values from sheet 102, this column Part No has to be filled up with 102. Similarly for other Sheets, the Sheet no has to be filled up).

2. The resultant sheet has to be sorted by a Column called Ward No.

3. Any rows in the resultant sheet, which contain the word like “Total” (Case insensitive. May be Sub Total, Grand Total or Net Total) has to be deleted.

4. Insert one row for Summing up the rows above (Merge first three cells and Call this as 1st Ward Sub Total (may be named accodrding to the Ward Number))

5. Below this Main Roll Total, Add a row for Additional Total, if there exists Addition, merge the first three cells of the row ( Name this as 1st Ward Additional Total and sum up the rows just above this row. Hardcoding has to be avoided.)

6. Add a row below this row and call it as Deletion Total if there exists Deletion, merge the first three cells of the row ( Name this as 1st Ward Deletion Total and sum up the rows just above this row. Hardcoding has to be avoided.)

7. Below this Deletion Row Add a row and call it as Ist Ward Grand Total. In this row the formula should be Ist Ward Sub Total + Ist Ward Additional Total - Ist Ward Deletion Total )

Repeat this for each and every ward (Please note that No.of Wards is not fixed and do not hard code it. Also Addition and Deletion may not be available for all the wards. If it is there, a row must be inserted to include in the calculation, otherwise no need to insert a row)

8. After completion of above procedure for all the wards a row at the bottom should be inserted and named it as Net Total. In this row Grand Total of all the wards should be added.

10. Page Break should be set after Grand Total of Each Ward.

11. Any blank rows below the Net Total row have to be deleted.

Chinnakovilankulam 3.08.2021.xlsm
BCDEFGHIJKLMNO
2gbtk; - 1
3thh;L thhpahf thf;fhsh;fs; fzf;fPL nra;tjw;fhd gbtk;
4rl;lkd;w njhFjp ghfk; vz; -102Cuhl;rpapd; ngah; : rpd;df;Nfhtpyhd;Fsk;
5rl;lkd;w njhFjp thf;fhsh; gl;bay; gf;f vz;thh;L vz;thf;fhsh; vz;zpf;if
6nkhj;j thf;fhsh;goq;Fbapdh; thf;fhsh;Mjpjpuhtplh; thf;fhsh;,juh; thf;fhsh;
7Mz; ngz;,juh;Mz; ngz;,juh;Mz; ngz;,juh;Mz; ngz;,juh;
83187000870
9322000200
10340100010
11365700570
12417500750
13421100110
14431100110
15453300330
16464401430
1751710007100
18525200520
19553300330
20611500150
21624300430
22631100110
23654600460
24662301220
25715700570
26721200120
27732100210
28753500350
29761201110
30812500250
31820100010
32833700370
33855600560
34861010000
35915800580
36922100210
37932000200
38941100110
39955500550
401010300030
411028500850
421041300130
431053300330
441061300130
451112100210
461127300730
471147800780
481150200020
491210100010
50122512005120
511242400240
521251200120
531261100110
541314100410
551325600560
561346300630
571350300030
102
Cell Formulas
RangeFormula
M8:O57M8=D8-(G8+J8)


Chinnakovilankulam 3.08.2021.xlsm
BCDEFGHIJKLMNO
2gbtk; - 1
3thh;L thhpahf thf;fhsh;fs; fzf;fPL nra;tjw;fhd gbtk;
4rl;lkd;w njhFjp ghfk; vz; -103Cuhl;rpapd; ngah; : rpd;df;Nfhtpyhd;Fsk;
5rl;lkd;w njhFjp thf;fhsh; gl;bay; gf;f vz;thh;L vz;thf;fhsh; vz;zpf;if
6nkhj;j thf;fhsh;goq;Fbapdh; thf;fhsh;Mjpjpuhtplh; thf;fhsh;,juh; thf;fhsh;
7Mz; ngz;,juh;Mz; ngz;,juh;Mz; ngz;,juh;Mz; ngz;,juh;
83301010
93402020
103510100
114501010
12460101000
138410100
149401010
159510100
1611420200
1712401010
181361010000
1915510100
2016201010
211660101000
22172100010
23176111100
24Mother Roll Total9100000230770
251821010
26Additional Total100000000100
27Net Total10100000230870
103
Cell Formulas
RangeFormula
M25:N25,M22:N23,M8:O21M8=D8-(G8+J8)
D24:O24D24=SUM(D8:D23)
D26:O26D26=SUM(D25)
D27:O27D27=D24+D26
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top