Find nearest match date and time for a particular user

cormalu

New Member
Joined
Feb 17, 2017
Messages
5
Hi,

I have two different data sources which gather information on users. One is a telephony recording system and the other is a CRM type system. I have generated CSV dumps from both systems. I would like to build a formula which would use a name and date/time from the CRM sheet and then find an exact match name and the closest date/time match in the telephony sheet.

EG: =function("John Smith", 13/04/2016 17:54) should return either

1. "" if John Smith is not in the telephony sheet
2. 17971652 -- the unique id for the closest matching record to the passed date/time in the telephony system

Thanks in advance

Cormac
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
What is the layout of both files?
e.g.
File 1 Columnn A First Name
File 1 Column B Surname
etc
 
Upvote 0
Telephony file example
Call Start TimeCall End TimeCall DurationGroupExtension NameSuppressed Call
03/01/2017 08:0903/01/2017 08:0900:00:17Business SupportPaula ClearyNo
03/01/2017 08:0903/01/2017 08:1100:01:33IT OperationsStephen WaiteNo
03/01/2017 08:0903/01/2017 08:1100:01:33Business SupportPaula ClearyNo
03/01/2017 08:2003/01/2017 08:2100:01:02IT OperationsStephen WaiteNo
03/01/2017 08:3103/01/2017 08:3400:03:24QuotesClaimsClaire Louise MurphyNo
03/01/2017 08:3403/01/2017 08:3600:02:19Health ClaimsPhilip KnightNo
03/01/2017 08:3803/01/2017 08:3800:00:54Mark GeorgeNo
03/01/2017 08:3903/01/2017 08:4000:00:29IT OperationsStephen WaiteNo






<colgroup><col width="128" span="6" style="width:96pt"> </colgroup><tbody>
</tbody>
 
Upvote 0
CRM file example

Start DateStaff Name
05/01/2017 11:26Amy Rafferty
30/01/2017 11:01Amy Rafferty

<colgroup><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
So I am looking up "Amy Rafferty" for the indicated date in file 1 -- hope that makes sense??
 
Upvote 0

Forum statistics

Threads
1,215,836
Messages
6,127,179
Members
449,368
Latest member
JayHo

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