...not even sure how to describe it...

pierre robinson

New Member
Joined
Sep 28, 2016
Messages
26
Office Version
  1. 365
Platform
  1. Windows
Evening all.

Im trying to sum up costs for maintenance work on a property between date ranges

I have 2 sets of data:

The first set of data, Table A, has a Unique ID and a start and finish date for the work set out in rows.
The second set, Table B, has the same Unique ID, multiple invoices against that UID and the respective invoice dates when they were submitted in columns.

What I THINK im trying to do is come up with a formula that says;

For this UID in Table A, between these dates in Table A, match the UID in Table B, between the same date range as Table A & the sum the invoices .

Examples below:

Table A

[TABLE="width: 500"]
<tbody>[TR]
[TD] UID[/TD]
[TD]Start Date[/TD]
[TD]Stop Date[/TD]
[/TR]
[TR]
[TD][TABLE="width: 94"]
<tbody>[TR]
[TD="align: center"]PFTS001116[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]01/01/18[/TD]
[TD]01/03/18[/TD]
[/TR]
</tbody>[/TABLE]


Table B

[TABLE="width: 500"]
<tbody>[TR]
[TD]UID[/TD]
[TD]Invoice date[/TD]
[TD]Cost[/TD]
[/TR]
[TR]
[TD]PFTS0011
16​
[/TD]
[TD]01/02/18[/TD]
[TD]276.50[/TD]
[/TR]
[TR]
[TD]PFTS0011
16​
[/TD]
[TD]22/02/18[/TD]
[TD]1198.00[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]PFTS0011
16​
[/TD]
[TD]23/02/18[/TD]
[TD]1275.00[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]




Any genius ideas?

TIA
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi,

You can use SUMIFS:


Book1
ABCDE
1Table A
2
3UIDStart DateStop DateCost
4PFTS0011161/1/20183/1/20182749.5
5
6
7
8Table B
9
10UIDInvoice dateCost
11PFTS0011162/1/2018276.5
12PFTS0011172/15/2018550
13PFTS0011162/22/20181198
14PFTS0011172/27/2018900
15PFTS0011162/23/20181275
16PFTS0011163/2/2018125
17PFTS0011164/1/2018220
Master
Cell Formulas
RangeFormula
E4=SUMIFS(C11:C17,A11:A17,A4,B11:B17,">="&B4,B11:B17,"<="&C4)
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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