exclude TOTAL row and sum TOTAL column based on sheet name

KalilMe

Active Member
Joined
Mar 5, 2021
Messages
343
Office Version
  1. 2016
Platform
  1. Windows
Hello
I want summing amount for the whole column (TOTAL) for each sheet and exclude TOTAL row from summing until doesn't sum twice for the same values have ever summed in TOTAL row .
so I want to create the whole report as in REPORT sheet , but should brings the balances from ASD sheet before sum the whole every sheet .
when merge the whole column TOTAL should be for each sheet name as in column B(like FIRST SALES+SALES, FIRST BUYING+BUYING.....and so on) and show TOTAL row for each sheet as in column A (SALES TOTAL ,PURCHASE TOTAL,.... and so on) with auto serial

and should calculation as in lastrow (NET)
last thing the TOTAL column will be changed in location .
and should clear data for REPORT sheet when run the macro every time .


KALIL.xlsm
ABCDEFGHIJ
1ITEMDATENAMEINVOICEGOODSTYPEPRQTYUNITTOTAL
2125/05/2023CR-1000FRVG-1000ATRAM1GR55.0022.001,210.00
3225/05/2023CR-1000FRVG-1000ATRAM2PO14.0033.00462.00
4325/05/2023CR-1000FRVG-1000ATRAM1SO10.0044.00440.00
5TOTAL25/05/2023CR-1000FRVG-10002,112.00
6125/05/2023CR-1001FRVG-1001ATRAM1GR10.0022.00220.00
7225/05/2023CR-1001FRVG-1001ATRAM2PO10.0033.00330.00
8TOTAL25/05/2023CR-1001FRVG-10014,774.00
SALES


KALIL.xlsm
ABCDEFGHIJ
1ITEMDATENAMEINVOICEGOODSTYPEPRQTYUNITTOTAL
2125/05/2023CR-1000STVG-1000ATRAM1MTR5.0025.00125.00
3225/05/2023CR-1000STVG-1000ATRAM2PO4.0035.00140.00
4325/05/2023CR-1000STVG-1000ATRAM1SO2.0045.0090.00
5TOTAL25/05/2023CR-1000STVG-10002,112.00
6125/05/2023CR-1001STVG-1001ATRAM1GR2.0023.0046.00
7225/05/2023CR-1001STVG-1001ATRAM2PO2.0035.0070.00
8TOTAL25/05/2023CR-1001STVG-1001550.00
BUYING



KALIL.xlsm
ABCDEFGH
1ITEMDATENAMEINVOICEDESCRIBEQTYUNITTOTAL
2125/05/2023CCTM-001EXVG-1000FOOD5.0020.00100.00
3225/05/2023CCTM-001EXVG-1000SERVICES4.00200.00800.00
4325/05/2023CCTM-001EXVG-1000HIRE10.001,000.0010,000.00
5TOTAL25/05/2023CCTM-001EXVG-100010,900.00
6125/05/2023CCTM-002EXVG-1001FOOD10.0023.00230.00
7225/05/2023CCTM-002EXVG-1001SERVICES12.00100.001,200.00
8TOTAL25/05/2023CCTM-002EXVG-10011,430.00
9126/05/2023CCTM-003EXVG-1001FOOD10.0030.00300.00
10226/05/2023CCTM-003EXVG-1002SERVICES5.0050.00250.00
11326/05/2023CCTM-003EXVG-1002SALARY14.002,000.0048,000.00
12426/05/2023CCTM-003EXVG-1002HIRE10.001,000.0010,000.00
13TOTAL26/05/2023CCTM-003EXVG-100258,550.00
EXPENSES




KALIL.xlsm
ABCDE
1ITEMDATENAMEDESCRIBETOTAL
2125/05/2023CR-1000REVENUE 200.00
3225/05/2023CR-1000REVENUE 100.00
4325/05/2023CR-1000REVENUE 100.00
5125/05/2023CR-1001REVENUE 200.00
6225/05/2023CR-1000REVENUE 100.00
7126/05/2023CR-1001REVENUE 300.00
8226/05/2023CR-1000REVENUE 250.00
9326/05/2023CR-1001REVENUE 200.00
10426/05/2023CR-1000REVENUE 150.00
RECEIVED


KALIL.xlsm
ABC
1DATENAME ACCOUNT TOTAL
231/05/2023 FIRST SALES100,000.00
331/05/2023FIRST BUYING50,000.00
431/05/2023FIRST EXPENSES10,000.00
531/05/2023FIRST RECEIVED13,000.00
6
ASD



result
KALIL.xlsm
ABC
1ITEMSNAME ACCOUNT TOTAL
21 FIRST SALES100,000.00
32SALES6,886.00
4SALES TOTAL 106,886.00
51FIRST BUYING50,000.00
62BUYING2,662.00
7PURCHASE TOTAL52,662.00
81FIRST EXPENSES10,000.00
92EXPENSES70,880.00
10EXPENSES TOTAL80,880.00
112FIRST RECEIVED13,000.00
12RECEIVED1,600.00
13RECEIVED TOTAL14,600.00
14NET-66,280.00
REPORT
Cell Formulas
RangeFormula
C14C14=C13-C10



thanks in advance
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,215,097
Messages
6,123,076
Members
449,094
Latest member
mystic19

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