kenderweasel
New Member
- Joined
- Feb 17, 2017
- Messages
- 40
Hi,
I have a spreadsheet which lists a customer ID, Chat Start Time, Chat End Time, and Date. I need a formula that will look up the chat end time of the first interaction with a particular customer ID, then work out the time difference between that and the chat start time of the next interaction with the same customer, and so on - resulting in a single figure for that customer that gives the average difference between the individual chats. I then need to return an average time between chats for all customers with a particular number of interactions on a particular date. I think I need an array formula, but I don't know where to start
[TABLE="width: 304"]
<colgroup><col width="127" style="width: 95pt; mso-width-source: userset; mso-width-alt: 4644;" span="2"> <col width="77" style="width: 58pt; mso-width-source: userset; mso-width-alt: 2816;"> <col width="75" style="width: 56pt; mso-width-source: userset; mso-width-alt: 2742;"> <tbody>[TR]
[TD="width: 127, bgcolor: transparent, align: left"]Customer ID[/TD]
[TD="width: 127, bgcolor: transparent, align: left"]Date[/TD]
[TD="width: 77, bgcolor: transparent, align: left"]Chat Start[/TD]
[TD="width: 75, bgcolor: transparent, align: left"]Chat End[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]7[/TD]
[TD="bgcolor: transparent, align: right"]28/08/2018[/TD]
[TD="bgcolor: transparent, align: right"]12:04[/TD]
[TD="bgcolor: transparent, align: right"]12:16[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]432[/TD]
[TD="bgcolor: transparent, align: right"]28/08/2018[/TD]
[TD="bgcolor: transparent, align: right"]15:08[/TD]
[TD="bgcolor: transparent, align: right"]15:12[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]46[/TD]
[TD="bgcolor: transparent, align: right"]28/08/2018[/TD]
[TD="bgcolor: transparent, align: right"]02:19[/TD]
[TD="bgcolor: transparent, align: right"]03:21[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]3[/TD]
[TD="bgcolor: transparent, align: right"]28/08/2018[/TD]
[TD="bgcolor: transparent, align: right"]07:56[/TD]
[TD="bgcolor: transparent, align: right"]08:05[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]7[/TD]
[TD="bgcolor: transparent, align: right"]28/08/2018[/TD]
[TD="bgcolor: transparent, align: right"]16:54[/TD]
[TD="bgcolor: transparent, align: right"]17:05[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]7[/TD]
[TD="bgcolor: transparent, align: right"]28/08/2018[/TD]
[TD="bgcolor: transparent, align: right"]13:04[/TD]
[TD="bgcolor: transparent, align: right"]13:22[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]432[/TD]
[TD="bgcolor: transparent, align: right"]28/08/2018[/TD]
[TD="bgcolor: transparent, align: right"]11:17[/TD]
[TD="bgcolor: transparent, align: right"]12:05[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]46[/TD]
[TD="bgcolor: transparent, align: right"]28/08/2018[/TD]
[TD="bgcolor: transparent, align: right"]09:15[/TD]
[TD="bgcolor: transparent, align: right"]09:32[/TD]
[/TR]
</tbody>[/TABLE]
I have a spreadsheet which lists a customer ID, Chat Start Time, Chat End Time, and Date. I need a formula that will look up the chat end time of the first interaction with a particular customer ID, then work out the time difference between that and the chat start time of the next interaction with the same customer, and so on - resulting in a single figure for that customer that gives the average difference between the individual chats. I then need to return an average time between chats for all customers with a particular number of interactions on a particular date. I think I need an array formula, but I don't know where to start
[TABLE="width: 304"]
<colgroup><col width="127" style="width: 95pt; mso-width-source: userset; mso-width-alt: 4644;" span="2"> <col width="77" style="width: 58pt; mso-width-source: userset; mso-width-alt: 2816;"> <col width="75" style="width: 56pt; mso-width-source: userset; mso-width-alt: 2742;"> <tbody>[TR]
[TD="width: 127, bgcolor: transparent, align: left"]Customer ID[/TD]
[TD="width: 127, bgcolor: transparent, align: left"]Date[/TD]
[TD="width: 77, bgcolor: transparent, align: left"]Chat Start[/TD]
[TD="width: 75, bgcolor: transparent, align: left"]Chat End[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]7[/TD]
[TD="bgcolor: transparent, align: right"]28/08/2018[/TD]
[TD="bgcolor: transparent, align: right"]12:04[/TD]
[TD="bgcolor: transparent, align: right"]12:16[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]432[/TD]
[TD="bgcolor: transparent, align: right"]28/08/2018[/TD]
[TD="bgcolor: transparent, align: right"]15:08[/TD]
[TD="bgcolor: transparent, align: right"]15:12[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]46[/TD]
[TD="bgcolor: transparent, align: right"]28/08/2018[/TD]
[TD="bgcolor: transparent, align: right"]02:19[/TD]
[TD="bgcolor: transparent, align: right"]03:21[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]3[/TD]
[TD="bgcolor: transparent, align: right"]28/08/2018[/TD]
[TD="bgcolor: transparent, align: right"]07:56[/TD]
[TD="bgcolor: transparent, align: right"]08:05[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]7[/TD]
[TD="bgcolor: transparent, align: right"]28/08/2018[/TD]
[TD="bgcolor: transparent, align: right"]16:54[/TD]
[TD="bgcolor: transparent, align: right"]17:05[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]7[/TD]
[TD="bgcolor: transparent, align: right"]28/08/2018[/TD]
[TD="bgcolor: transparent, align: right"]13:04[/TD]
[TD="bgcolor: transparent, align: right"]13:22[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]432[/TD]
[TD="bgcolor: transparent, align: right"]28/08/2018[/TD]
[TD="bgcolor: transparent, align: right"]11:17[/TD]
[TD="bgcolor: transparent, align: right"]12:05[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]46[/TD]
[TD="bgcolor: transparent, align: right"]28/08/2018[/TD]
[TD="bgcolor: transparent, align: right"]09:15[/TD]
[TD="bgcolor: transparent, align: right"]09:32[/TD]
[/TR]
</tbody>[/TABLE]