Index Match & sumifs question?

pierre robinson

New Member
Joined
Sep 28, 2016
Messages
26
Office Version
  1. 365
Platform
  1. Windows
So I have 2 sheets.

The first shows a UID, dates when payments were made against that UID & how much was paid.

The second contains the UID & when that UID was bought & sold.

So I want to sum those payments against the UID between the bought and sold dates, between specific date ranges.

Examples below:

Sheet A

Code Date paid Amt
AFTM900061 13/02/2018 380
AFTM900061 20/02/2018 380
AFTM900061 27/02/2018 380
AFTM900061 6/03/2018 380
AFTM900061 13/03/2018 380
AFTM900061 20/03/2018 380
AFTM900061 27/03/2018 380
AFTM900061 3/04/2018 385
AFTM900061 10/04/2018 385
AFTM900061 17/04/2018 385
AFTM900061 24/04/2018 385
AFTM900061 1/05/2018 385
AFTM900061 8/05/2018 385
AFTM900062 13/02/2018 380
AFTM900062 20/02/2018 380
AFTM900062 27/02/2018 380
AFTM900062 6/03/2018 80
AFTM900062 13/03/2018 380
AFTM900062 20/03/2018 380
AFTM900062 27/03/2018 380
AFTM900062 3/04/2018 385
AFTM900062 10/04/2018 385
AFTM900062 17/04/2018 385
AFTM900062 24/04/2018 385
AFTM900062 1/05/2018 385
AFTM900062 8/05/2018 385
AFTM900063 13/02/2018 380
AFTM900063 20/02/2018 380
AFTM900063 27/02/2018 380
AFTM900063 6/03/2018 380
AFTM900063 13/03/2018 380
AFTM900063 20/03/2018 380
AFTM900063 27/03/2018 380


Sheet 2

Code Acquisition Date Sale Date
PHSS01632531/03/2016 17/10/2016
PHSS01651831/03/2016 28/11/2016
PHSS01651931/03/2016 28/11/2016
PHSS01632631/03/2016 24/03/2017
ATUD90003027/06/2017 23/05/2018
ATUD90003127/06/2017 23/05/2018
ATUD90003227/06/2017 23/05/2018
ATUD90003327/06/2017 23/05/2018
AHSS90003920/06/2017 23/05/2018
PFTS00006431/03/2016 23/05/2018
PFTS00006531/03/2016 23/05/2018
PFTS00006631/03/2016 23/05/2018
PFTS00006731/03/2016 23/05/2018
PFTS00006831/03/2016 23/05/2018
PFTS00006931/03/2016 23/05/2018
PHSS00600831/03/2016 23/05/2018
PHSS00600931/03/2016 23/05/2018
PHSS00659031/03/2016 23/05/2018
PHSS00767531/03/2016 23/05/2018
PHSM00040231/03/2016 23/05/2018
PHSS00767631/03/2016 23/05/2018
PHSS00767731/03/2016 23/05/2018
PHSS00768631/03/2016 23/05/2018
PHSM00040331/03/2016 3/05/2018
PHSS00843631/03/2016 23/05/2018
PHSS00887631/03/2016 23/05/2018
PHSS00887731/03/2016 23/05/2018
PHSS00958631/03/2016 23/05/2018

<colgroup><col><col><col></colgroup><tbody>
</tbody>

<colgroup><col><col><col></colgroup><tbody>
</tbody>


Solution

Code Date 1 Date 2 Date 3 Date 4 Date 5

Any brilliant ideas?

TIA
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,214,822
Messages
6,121,767
Members
449,049
Latest member
greyangel23

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