Match Project Number & Sum of Charges Past a Certain Date

Biggs1001

New Member
Joined
Jan 16, 2019
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have a long list of project numbers that all have different project end dates. I need to look at each project and gather the total amount of charges that fall beyond that project's specific end date. I can do this individually with a BI system but I'm hoping there's a way to simply dump all charges for all projects into Sheet 2, then have my main sheet look up the project number and go grab all charges related to that specific project number that fall outside of that project number's end date. So the Charges Past End Date cell for Project Number 022046.00 on Sheet 1 would go out and gather all Expenditures for Project Number 022046.00 that fall after the Project End Date of 9/24/2020.

I've been toying with Sumif but I'm assuming I need to have a VLookup stuffed in there to specifically look for the project number in question, but I can't seem to get anything to work.

Any insight you all might have would be appreciated!

Shown below is what I have:

Sheet 1:
Project NumberProject End DateCharges Past End Date
022046.009/24/2020???
023011.0010/31/2020???
023068.0010/31/2020???
022022.0012/31/2020???

Sheet 2:
Project NumberExpendituresTransaction Date
022046.002008/1/2020
023068.00120011/5/2020
023011.004011/5/2020
022022.0010010/1/2020
022046.001008/31/2020
022046.008512/31/2020
023011.009001/1/2021
023068.007501/1/2021
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
does this work
=SUMIFS(Sheet2!$B$2:$B$9,Sheet2!$A$2:$A$9,Sheet1!A2,Sheet2!$C$2:$C$9,">"&Sheet1!B2)

Book9
ABC
1Project NumberProject End DateCharges Past End Date
2220469/24/2085
32301110/31/20940
42306810/1/201950
52202212/31/200
Sheet1
Cell Formulas
RangeFormula
C2:C5C2=SUMIFS(Sheet2!$B$2:$B$9,Sheet2!$A$2:$A$9,Sheet1!A2,Sheet2!$C$2:$C$9,">"&Sheet1!B2)


Book9
ABC
1Project NumberExpendituresTransaction Date
2220462008/1/20
323068120011/5/20
4230114011/5/20
52202210010/1/20
6220461008/31/20
7220468512/31/20
8230119001/1/21
9230687501/1/21
Sheet2
 
Upvote 1
Solution
does this work
=SUMIFS(Sheet2!$B$2:$B$9,Sheet2!$A$2:$A$9,Sheet1!A2,Sheet2!$C$2:$C$9,">"&Sheet1!B2)

Book9
ABC
1Project NumberProject End DateCharges Past End Date
2220469/24/2085
32301110/31/20940
42306810/1/201950
52202212/31/200
Sheet1
Cell Formulas
RangeFormula
C2:C5C2=SUMIFS(Sheet2!$B$2:$B$9,Sheet2!$A$2:$A$9,Sheet1!A2,Sheet2!$C$2:$C$9,">"&Sheet1!B2)


Book9
ABC
1Project NumberExpendituresTransaction Date
2220462008/1/20
323068120011/5/20
4230114011/5/20
52202210010/1/20
6220461008/31/20
7220468512/31/20
8230119001/1/21
9230687501/1/21
Sheet2

Amazing E! I can't thank you enough. I'll have to go read the documentation on Sumifs to see what I was missing on utilizing multiple criteria - I assumed I had to have a VLOOKUP to reference the specific project number and you were able to just slip it into the single function itself

Thanks again!
 
Upvote 0
you are welcome
you mentioned SUMIF() which only allows 1 criteria
 
Upvote 1

Forum statistics

Threads
1,223,782
Messages
6,174,520
Members
452,569
Latest member
Ron1970

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