+ Reply to Thread
Results 1 to 7 of 7

first instance time based on date column

  1. #1
    Forum Contributor
    Join Date
    11-18-2014
    Location
    England
    MS-Off Ver
    365
    Posts
    132

    first instance time based on date column

    Hi,

    I have data where I have a list of different agents and the times of their calls. what I want is to be able to enter a date and see what time the first and last calls were made by the specified agent or the first call made after a specified time if this is even possible?

    Any ideas?

    I have added a trimmed down version of data and lookup that I am looking for
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: first instance time based on date column

    Perhaps =AGGREGATE(5,7,(C2:C505="agent 1")*(B2:B505)) for first
    and
    =AGGREGATE(4,7,(C2:C505="agent 1")*(B2:B505)) for last

  3. #3
    Forum Contributor
    Join Date
    11-18-2014
    Location
    England
    MS-Off Ver
    365
    Posts
    132

    Re: first instance time based on date column

    Hi Arthurbr, I am just getting value error on this? does this also specify the date as well as the agent?

    Thanks
    J

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: first instance time based on date column

    Maybe, Date in B1

    B2
    =VLOOKUP(B1,Data!A:C,3,)
    B3
    =AGGREGATE(15,6,Data!B2:B505/(B1=Data!A2:A505),1)
    B4
    =AGGREGATE(14,6,Data!B2:B505/(B1=Data!A2:A505),1)
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    11-18-2014
    Location
    England
    MS-Off Ver
    365
    Posts
    132

    Re: first instance time based on date column

    Hi Bo-ry - this does work but i need to be able to change the agent as there are multiple agents listed in the data - is this possible?

    Thanks

    J

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: first instance time based on date column

    B2 Key-in Agent #

    B3
    =AGGREGATE(15,6,Data!B2:B505/(B1=Data!A2:A505)/(B2=Data!C2:C505),1)
    B4
    =AGGREGATE(14,6,Data!B2:B505/(B1=Data!A2:A505)/(B2=Data!C2:C505),1)

  7. #7
    Forum Contributor
    Join Date
    11-18-2014
    Location
    England
    MS-Off Ver
    365
    Posts
    132

    Re: first instance time based on date column

    Hi Bo-ry this is brilliant, does exactly what I need thanks

    J

+ 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] Gathering data based on date and time of cells in column
    By avidcat in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-10-2017, 10:50 PM
  2. Replies: 2
    Last Post: 03-24-2016, 11:49 PM
  3. [SOLVED] SUM data in column based on Date/Time range
    By t.jones in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-11-2013, 06:43 PM
  4. [SOLVED] Changing Color Font based on date/time column
    By greymoore in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-19-2012, 09:32 PM
  5. Replies: 1
    Last Post: 02-07-2012, 03:55 PM
  6. Remove all but one instance of a value in one column based on records in another colu
    By TheCyrusVirus in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-20-2010, 11:31 AM
  7. Date & time auto generated based on input date & time
    By BlastRanger in forum Excel General
    Replies: 18
    Last Post: 09-08-2010, 03:54 AM

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