+ Reply to Thread
Results 1 to 4 of 4

code for last date on contact

  1. #1
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Donemana, NI
    MS-Off Ver
    Excel 2007
    Posts
    386

    code for last date on contact

    I am looking for code that will input the last date of contact based on the customer number in column F sheet Reminders and the customer number in column D in sheet Data, there can be occasions that there are as many as 5 different contacts so I need the code to pick the last occurance and to input the date into column AK respectively.
    Thanks in Advance
    Attached Files Attached Files

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: code for last date on contact

    Hi Burt,

    I put them in AO since AK was occupied - just change the red code to put them wherever you want

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Valued Forum Contributor
    Join Date
    01-08-2011
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2007 to 2016
    Posts
    456

    Re: code for last date on contact

    As an alternative to using VBA, you could use an array formula:

    {=MAX(IF(Data!$D$2:$D$1676=Reminders!F2,Data!$F$2:$F$1676))}

    in column AK to find the maximum date.

    Excel 2016 latest release has a new MAXIF formula, but the above should work with previous versions.


    If this has been of help, a click * Add Reputation button would be appreciated. Many thanks

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: code for last date on contact

    Hi Burt,

    Thanks for the rep!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Replies: 8
    Last Post: 04-08-2015, 10:10 PM
  2. [SOLVED] Genuine Paid Job (£100 / $169): Tidy up code - prevent crashes - Please contact ASAP
    By r2fro in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2014, 12:22 AM
  3. VBA Code to read the Organizational tab of an Outlook Contact
    By maporter05 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-10-2013, 07:37 PM
  4. contact export help
    By eggbert in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 01-12-2012, 08:28 AM
  5. contact list whose sequence changes with date
    By svend_kbs in forum Excel General
    Replies: 3
    Last Post: 12-20-2011, 12:44 PM
  6. Contact Log Macros
    By tertius81 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-24-2011, 03:52 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