+ Reply to Thread
Results 1 to 10 of 10

Formula to Pull Last Contact Date for each Contact in Call Log

  1. #1
    Registered User
    Join Date
    08-10-2016
    Location
    California
    MS-Off Ver
    2016 Professional
    Posts
    5

    Formula to Pull Last Contact Date for each Contact in Call Log

    We are looking for help creating a formula to find the last time a specific contact from the call log has been called and return this information in a column (Last Contact) on a different sheet called Participant Info. I've attached the spreadsheet. Very new to excel formulas, any help would be appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Formula to Pull Last Contact Date for each Contact in Call Log

    Hello
    This array formula (entered with Ctrl+Shift+Enter) will bring back the last date and time of the selected client:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    if entered correctly you will see curly brackets {} around the formula.

    DBY

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula to Pull Last Contact Date for each Contact in Call Log

    In your file the dates are sorted in ascending order so the last time is the bottom-most instance, right?

    Try this...

    Data Range
    A
    B
    C
    D
    E
    F
    G
    1
    Name
    Date
    Time
    ------
    Name
    Date
    Time
    2
    Client1
    6/1/2016
    9:56 AM
    Client1
    6/6/2016
    2:03 PM
    3
    Client2
    6/2/2016
    2:53 PM
    4
    Client1
    6/3/2016
    12:25 PM
    5
    Client3
    6/4/2016
    9:16 PM
    6
    Client2
    6/5/2016
    1:51 PM
    7
    Client1
    6/6/2016
    2:03 PM
    8
    Client3
    6/7/2016
    7:24 PM
    9
    Client4
    6/8/2016
    9:42 AM
    10
    Client2
    6/9/2016
    12:19 PM
    11
    Client3
    6/10/2016
    12:37 PM


    This formula entered in F2:

    =LOOKUP(2,1/($A$2:$A$11=$E$2),B$2:B$11)

    Copy across to G2.

    Format F2 as Date and G2 as Time.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    08-10-2016
    Location
    California
    MS-Off Ver
    2016 Professional
    Posts
    5

    Re: Formula to Pull Last Contact Date for each Contact in Call Log

    Thank you very much! I do see the curly brackets, however it gives me a #NAME? error. I entered the formula just as you provided it.

  5. #5
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Formula to Pull Last Contact Date for each Contact in Call Log

    Have you defined the 'Client' that is the variable that you input into the formula? Alternatively, try Tony's solution if that's easier.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    08-10-2016
    Location
    California
    MS-Off Ver
    2016 Professional
    Posts
    5

    Re: Formula to Pull Last Contact Date for each Contact in Call Log

    I'm not sure how to define 'Client' here. Any tutorial or help you can provide is much appreciated.

  7. #7
    Registered User
    Join Date
    08-10-2016
    Location
    California
    MS-Off Ver
    2016 Professional
    Posts
    5

    Re: Formula to Pull Last Contact Date for each Contact in Call Log

    I got the formula to pull the latest date that anyone was contacted, however not the latest date an individual was contacted. Thoughts?

  8. #8
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Formula to Pull Last Contact Date for each Contact in Call Log

    The "Client" can be a cell reference, for example here it's C7:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Or it could be 'Hard Coded':

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You can have a list of names and drag the formula down for each one or maybe a drop down list of them in a cell. When the drop down is changed the returned value will change accordingly.

    Hope this helps.
    DBY

    Added example file with Array formulas and DMax function.
    Attached Files Attached Files
    Last edited by DBY; 08-11-2016 at 07:11 AM. Reason: Added attachment

  9. #9
    Registered User
    Join Date
    08-10-2016
    Location
    California
    MS-Off Ver
    2016 Professional
    Posts
    5

    Re: Formula to Pull Last Contact Date for each Contact in Call Log

    Thank you very much, it looks great. I am trying to adapt your formula to pull a client's phone number from the contact info page, however am not sure if I'm using VLOOKUP correctly.
    =VLOOKUP(IF(tblCallLog[Participant]=Client,tblCallLog, 6, TRUE))
    That is returning an error and I'm not sure how to proceed.

  10. #10
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Formula to Pull Last Contact Date for each Contact in Call Log

    Hello
    With VLOOKUP there's no need to use the IF Function. This will return the Primary Phone number:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The client's name here is in K11 on the Call Log sheet or whatever cell you wish to reference. For the secondary phone number you would adjust the Column Index to 6.

    DBY

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] code for last date on contact
    By Burt_100 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-11-2016, 10:32 AM
  2. [SOLVED] Help With contact table
    By phillee in forum Office 365
    Replies: 17
    Last Post: 07-08-2015, 10:24 AM
  3. Replies: 8
    Last Post: 04-08-2015, 10:10 PM
  4. [SOLVED] Pull Contact Name out of Table based on Business Name in same Row using VBA.
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-14-2014, 10:38 AM
  5. Need Excel Macro (no formula or function) to get initials from contact name column
    By consultidc in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-19-2014, 09:37 PM
  6. contact list whose sequence changes with date
    By svend_kbs in forum Excel General
    Replies: 3
    Last Post: 12-20-2011, 12:44 PM
  7. Contact list the will automatically add a contact
    By mike.richards in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2008, 10:35 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1