+ Reply to Thread
Results 1 to 2 of 2

For each date in a date range, return the time of day that my last email was sent

  1. #1
    Registered User
    Join Date
    10-20-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    1

    For each date in a date range, return the time of day that my last email was sent

    Hi - I am looking to populate an Excel worksheet which shows dates in column A and then times in column B. Column B should be the time stamp for the last email in my sent items that occurred on the corresponding date in column A. Essentially I am trying to proxy my working hours by using my last sent email every day so I can plot this onto a chart over time.

    I think an approach could be to populate column A myself with dates and then loop through the dates within Excel. Each loop would go to my Outlook sent items and have a 'max if' style logic where the 'if' only looks at emails sent on the certain date. There may be a better way to do this using code in Outlook but I am less familiar with this.

    I am fairly competent using VBA within Excel (but self taught), but I have no experience pointing code towards Outlook except for automatically generating and populating emails etc which is obviously fairly basic.

    I couldn't find anything similar to this question in any of the usual forums so I have setup this account just to post this! I am sure lots of people would love to replicate this if a good solution is found.

    Thanks

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,312

    Re: For each date in a date range, return the time of day that my last email was sent

    Set a reference to MS Outlook and try this code to get all the date/times from your sentmail. Once you get all the dates and times, use a pivot table to identify the max value for each date.

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

+ 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: 3
    Last Post: 09-20-2016, 03:13 PM
  2. [SOLVED] Search time and date in range, return value
    By Marco-Kun in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-11-2014, 09:22 AM
  3. [SOLVED] reference date time range, return the value into all cell that match datetime range
    By Jarvco13 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-22-2013, 10:39 PM
  4. Search date range +/- 7 days and return date that falls within range
    By tlafferty in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-13-2013, 03:26 PM
  5. Replies: 15
    Last Post: 04-08-2013, 12:40 PM
  6. [SOLVED] Create Fiscal Year - Lookup Date in Fiscal Month Date Range and Return EOM Date
    By gbriscoe in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-25-2013, 03:29 PM
  7. Compare Dates To Date Range & Return Date Based On Outcome
    By gusmontoya in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-03-2008, 09:06 PM

Tags for this Thread

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