I have a sheet with a log of calls. I have created a test workbook (attached; expected rows for "last contact" highlighted on CallLog sheet) to assist in a resolution. On the CallLog sheet, there are four columns: Time; Date; Number; Direction. So each time a call is made/received, it is logged with the phone number and a time stamp. There is a second sheet, Contact (Name; Number; Last Contact), which needs, for each phone number listed, the last time it was contacted (regardless if inbound or outbound).
The formula I found somewhere online and have probably butchered, works great for the first line item in the Log, but the second (and all the rest) contact does not. It seems to just bring in the second line regardless if the number matches or not.
This is the formula I currently have for the Last Contact:
=TEXT(INDEX(CallLog!$B:$B,SUMPRODUCT(MAX(CallLog!$C:$C=$B2)*ROW(CallLog!$C:$C))),"MM/DD/YYYY")&" "&TEXT(INDEX(CallLog!$A:$A,SUMPRODUCT(MAX(CallLog!$C:$C=$B2)*ROW(CallLog!$C:$C))),"hh:mm am/pm")
Any help/suggestions would be greatly appreciated!!
Bookmarks