extraction invoices information from multiple sheets based on DATE TODAY

KalilMe

Active Member
Joined
Mar 5, 2021
Messages
343
Office Version
  1. 2016
Platform
  1. Windows
Hi guys
I need match sheet name with column C for sheets(SALES,BUYING,VOUCHER) based on date today
example CR-1001 sheet when match with column C for the same name then should brings DATE,INVOICE,TOATL from the last row(TOTAL) column B,D,J from BUYING sheet and put in columns A,B,D and calculate in column E as I put the formula in CR-1001 sheet , as to SALES sheet should brings DATE,INVOICE,TOATL from the last row(TOTAL) column B,D,J from SALES sheet and put in columns A,B,C and calculate in column E as I put the formula in CR-1001 sheet, as to VOUCHER should match C5,F5 with sheet name then should brings A3,D3,H6 from VOUCHER sheet to CR-1001 in columns A,B,D
in VOUCHER sheet about F5 will be different when copy amount if the word is SALES then will be in column D , if the word is BUYING will be in column C
I want copy theses data based on date today and sum the whole column C,D
last thing every time will add new data in sheets(SALES,BUYING,VOUCHER) and add new sheets names based on matching with column C for the others sheets then should update sheet name contains customer .
notice: the data in sheets sheets(SALES,BUYING,VOUCHER) could contains 5000 rows for each sheet.


MMVO.xlsm
ABCDEFGHIJ
1ITEMDATENAMEINVOICEGOODSTYPEPRQTYUNITTOTAL
2119/07/2023CR-1000STVG-1000ATRAM1MTR525125
3219/07/2023CR-1000STVG-1000ATRAM2PO435140
4319/07/2023CR-1000STVG-1000ATRAM1SO24590
5TOTAL19/07/2023CR-1000STVG-1000355
6120/07/2023CR-1001STVG-1001ATRAM1GR22346
7220/07/2023CR-1001STVG-1001ATRAM2PO23570
8TOTAL20/07/2023CR-1001STVG-1001116
9120/07/2023CR-1000STVG-1000ATRAM1MTR22550
10220/07/2023CR-1000STVG-1000ATRAM2PO23570
11320/07/2023CR-1000STVG-1000ATRAM1SO24590
12TOTAL20/07/2023CR-1000STVG-1000210
BUYING


MMVO.xlsm
ABCDEFGHIJ
1ITEMDATENAMEINVOICEGOODSTYPEPRQTYUNITTOTAL
2119/07/2023CR-1000FRVG-1000ATRAM1GR55221210
3219/07/2023CR-1000FRVG-1000ATRAM2PO1433462
4319/07/2023CR-1000FRVG-1000ATRAM1SO1044440
5TOTAL19/07/2023CR-1000FRVG-10002112
6120/07/2023CR-1001FRVG-1001ATRAM1GR1022220
7220/07/2023CR-1001FRVG-1001ATRAM2PO1033330
8TOTAL20/07/2023CR-1001FRVG-1001550
9120/07/2023CR-1001FRVG-1002ATRAM1GR522110
10220/07/2023CR-1001FRVG-1002ATRAM2PO1030300
11TOTAL20/07/2023CR-1001FRVG-1002410
SALES


MMVO.xlsm
ABCDEFGH
2DATEVOUCHER NO
320/07/2023VTR-110INVOICE
4NAMESALES
5CR-1001TOTAL
6300
VOUCHER




before

MMVO.xlsm
ABCDE
1DATEDETAILSDEBITCREDITBALANCE
2
3
4
5
6
CR-1001


expected
MMVO.xlsm
ABCDE
1DATEDETAILSDEBITCREDITBALANCE
220/07/2023STVG-1001116-116
320/07/2023FRVG-1001550434
420/07/2023FRVG-1002410844
520/07/2023VTR-110300544
6TOTAL960416544
CR-1001
Cell Formulas
RangeFormula
E2,E6E2=C2-D2
E3:E5E3=E2+C3-D3
C6:D6C6=SUM(C2:C5)


before
MMVO.xlsm
ABCDEFGH
2DATEVOUCHER NO
320/07/2023VTB-123INVOICE
4NAMEBUYING
5CR-1000TOTAL
6200
VOUCHER




MMVO.xlsm
ABCDE
1DATEDETAILSDEBITCREDITBALANCE
2
3
4
CR-1000




expected
MMVO.xlsm
ABCDE
1DATEDETAILSDEBITCREDITBALANCE
220/07/2023STVG-1000210-210
320/07/2023VTB-123200-10
4TOTAL200210-10
CR-1000
Cell Formulas
RangeFormula
E2,E4E2=C2-D2
E3E3=E2+C3-D3
C4:D4C4=SUM(C2:C3)
 
Last edited:

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Extract data from multiple sheets to multiple sheets based on date(today)
There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,215,072
Messages
6,122,966
Members
449,094
Latest member
Anshu121

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