Pulling specific data into another worksheet

mistyblu3

New Member
Joined
Sep 18, 2008
Messages
4
Hi everyone!


I know the title is very generic but what I'm trying to do is hard to explain in a short sentence! :) I'm working with multiple workbooks that I'm trying to combine into one workbook with multiple sheets for 2 reasons: 1-it will eliminate some double entry the client is doing, and 2-I'm trying to get the data streamlined for use in Power BI. Therefore I'm hoping I can find a way to do this, but I'm not sure its possible.


The first sheet (Billing Info) is a list of vendors and their invoice date, amount, project number, etc. The sheets after that are split up by project number (Project 1, Project 2, etc.) and show the PO's that were generated to match the invoices.


What I'd like to do is: anytime something is entered on the Billing Info sheet for Project 1 (or Project 2, etc.), copy data from columns B, C, D, and E (See Billing Info Sheet screenshot below) over to the Project 1 sheet (See Project 1 screenshot below - B into B, C into C, D into D, and E into A). BUT (And this is the tricky part) --- When bringing the data over to Project 1, I'd like to sum the amounts in Billing Info-Column D when the date in Billing Info-Column C (Invoice Date) are the same AND the number in Billing Info-Column A (Site) are the same.


For example:
Billing Info sheet:

Line# A
SITE
B
CONTRACTOR
C
INVOICE DATE
D
AMOUNT
E
PROJECT
F
PCA
G
INVOICE
322703Professional Reforestation09/05/2018$4,065.38427405-1651047R1840-02
323680Professional Reforestation09/10/2018$10,279.03427405-1651047R1840-03
324703Professional Reforestation09/10/2018$6,352.52427405-1651047R1840-03
325703Professional Reforestation09/10/2018$3,813.38427405-1651047R1840-03
326703Professional Reforestation09/17/2018$3,022.00427405-1651047R1840-04
327704Professional Reforestation09/17/2018$18,601.38427405-1651047R1840-04
328680Professional Reforestation09/25/2018$2,434.00427405-1651047R1840-05
329703Professional Reforestation09/25/2018-$108.37427405-1651047R1840-05
330704Professional Reforestation09/25/2018$27,277.51427405-1651047R1840-05
331676Western Pacific01/22/2019$8,175.50427405-36510642236
332676Western Pacific01/30/2019$7,655.00427405-36510642238
333676Western Pacific02/05/2019$5,954.50427405-36510642239
334676Professional Reforestation02/19/2019$5,627.52427405-3651064R1840-26
335676Professional Reforestation03/06/2019$3,723.64427405-3651064R180-28
336676Professional Reforestation03/19/2019$2,524.88427405-3651064R180-29
337676Professional Reforestation03/26/2019$1,898.58427405-3651064R180-31
338676Professional Reforestation04/01/2019$1,881.23427405-3651064R180-32
339676Professional Reforestation04/16/2019$1,860.42427405-3651064R1840-34
340680Professional Reforestation07/02/2018$25,469.60427405-4651064R1734-33
341680Professional Reforestation07/10/2018$10,101.38427405-4651064R1734-34
342680Western Pacific07/17/2018$1,285.00427405-46510642208
343681Professional Reforestation07/22/2018$382.50427405-4651064R1734-36

<tbody>
</tbody>

Lines 322-333 would copy over as:

Project 1 sheet:

A
PROJECT
B
CONTRACTOR
C
INVOICE DATE
D
INVOICE AMOUNT
E
PO DATE
F
AFP NBR
G
PAYMENT AMOUNT
427405-16Professional Reforestation09/05/20184065.38
427405-16Professional Reforestation09/10/201810279.03
427405-16Professional Reforestation09/10/201810165.9
427405-16Professional Reforestation09/17/2018$3,022.00
427405-16Professional Reforestation09/17/2018$18,601.38
427405-16Professional Reforestation09/25/2018$2,434.00
427405-36Western Pacific01/22/2019$8,175.50
427405-36Western Pacific01/30/2019$7,655.00
427405-36Western Pacific02/05/2019$5,954.50

<tbody>
</tbody>

Thank you in advance for any help you can give! :)
Sande
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,215,064
Messages
6,122,936
Members
449,094
Latest member
teemeren

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