Formula help. INDEX MATCH???

MCallan1

New Member
Joined
Mar 1, 2016
Messages
3
Hi

I am trying to find the closest contact date after a given referral date. It is based on a specific ID for each person. As you can see below, the sample I am trying to work it out for is all for one ID. I need a formula to brink back the first Contact Date AFTER the referral date which in this case is:

Ref date: 19/07/2015 04:21

I have added the column of referral date minus the contact date and if this is used, it will need to be the MAX of the negative values.

Any help would be very much appreciated.
ID</SPAN>Contact Dates</SPAN>Ref date-Contact Date</SPAN>
813013</SPAN>08/07/2015 21:10</SPAN>10.29930556</SPAN>
813013</SPAN>10/07/2015 13:31</SPAN>8.618055556</SPAN>
813013</SPAN>19/07/2015 17:40</SPAN>-0.554861111</SPAN>
813013</SPAN>20/07/2015 12:00</SPAN>-1.31875</SPAN>
813013</SPAN>30/07/2015 11:10</SPAN>-11.28402778

</SPAN>

<TBODY>
</TBODY><COLGROUP><COL><COL span=2></COLGROUP>
 

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).
This will work. Placing your table in A1:B6 (you don't really need the other column) then place the ID in D1 and the referall date in D2:

=MIN(IF($A$2:$A$6=$D$1,IF($B$2:$B$6>$D$2,$B$2:$B$6)))

Enter CNTL-SHIFT-ENTER
 
Upvote 0
This helps for the sample I provided, thanks. I need to feed this into my much bigger spreadsheet that will have a large number of IDs and changing referral dates. It also wont be a definite number of contact dates as there could be any number of dates coming through in my report. Do you know how to do the same thing for much bigger quantities of data?
 
Upvote 0
That will do any length of data provided you change the ranges.
 
Upvote 0

Forum statistics

Threads
1,211,697
Messages
6,103,359
Members
447,861
Latest member
LllopezXC

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