populate Total amount from different cells across workbooks based on sheets names

KalilMe

Active Member
Joined
Mar 5, 2021
Messages
382
Office Version
  1. 2016
Platform
  1. Windows
Hello
I need populate values in column B based on sheets names in column A for MASTER file , should match with the sheets names across files . should search for
the last cell contains value is existed in last column and in last row .
all of the files are existed in the same folder "C:\Users\KILL\Desktop\REPORT"
first file
KIL.xlsm
ABCDEFGHIJ
1ITEMDATENAMEINVOICEGOODSTYPEPRQTYUNITTOTAL
2125/05/2023CR-1000FRVG-1000ATRAM1GR55221210
3225/05/2023CR-1000FRVG-1000ATRAM2PO1433462
4325/05/2023CR-1000FRVG-1000ATRAM1SO1044440
5TOTAL25/05/2023CR-1000FRVG-10002112
6125/05/2023CR-1001FRVG-1001ATRAM1GR1022220
7225/05/2023CR-1001FRVG-1001ATRAM2PO1033330
8TOTAL25/05/2023CR-1001FRVG-1001550
SALES
Cell Formulas
RangeFormula
J5J5=SUM(J2:J4)
J8J8=SUM(J6:J7)


KIL.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-1000355.00
6125/05/2023CR-1001STVG-1001ATRAM1GR2.0023.0046.00
7225/05/2023CR-1001STVG-1001ATRAM2PO2.0035.0070.00
8TOTAL25/05/2023CR-1001STVG-1001116.00
PURCHASE
Cell Formulas
RangeFormula
J5J5=SUM(J2:J4)
J8J8=SUM(J6:J7)




KIL.xlsm
ABCDEFG
1ITEMGOODSTYPEPRQTYUNITTOTAL
21ATRAM1GR55221,210.00
32ATRAM2PO1433462.00
43ATRAM3SO1044440.00
5TOTAL2,112.00
STOCK
Cell Formulas
RangeFormula
G5G5=SUM(G2:G4)



second file

CM.xlsm
ABCDE
1DATEINFORMATIONDEBITCREDITBALANCE
225/05/2023BUYING GOODS INVOICE NUMBER FRVG-1001545-545
325/05/2023SALES GOODS INVOICE NUMBER STVG-1001116-429
425/05/2023SALES GOODS INVOICE NUMBER STVG-100246-383
5TOTAL162545-383
CR
Cell Formulas
RangeFormula
E5E5=C5-D5



CM.xlsm
ABCDE
1DATEINFORMATIONDEBITCREDITBALANCE
225/05/2023BUYING GOODS INVOICE NUMBER FRVG-10002112-2112
325/05/2023BUYING GOODS INVOICE NUMBER FRVG-10021200-3312
425/05/2023SALES GOODS INVOICE NUMBER STVG-1000365-2947
5TOTAL3653312-2947
TR
Cell Formulas
RangeFormula
E5E5=C5-D5



before


MASTER.xlsm
AB
1SHEETS NAMES TOTAL
2SALES
3 PURCHASE
4STOCK
5CR
6TR
REPORT


should be
MASTER.xlsm
AB
1SHEETS NAMES TOTAL
2SALES550
3 PURCHASE116
4STOCK2112
5CR-383
6TR-2947
REPORT
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,223,893
Messages
6,175,241
Members
452,622
Latest member
Laura_PinksBTHFT

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