pierre robinson
New Member
- Joined
- Sep 28, 2016
- Messages
- 26
- Office Version
- 365
- Platform
- 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
[TD]01/02/18[/TD]
[TD]276.50[/TD]
[/TR]
[TR]
[TD]PFTS0011
[TD]22/02/18[/TD]
[TD]1198.00[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]PFTS0011
[TD]23/02/18[/TD]
[TD]1275.00[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Any genius ideas?
TIA
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