+ Reply to Thread
Results 1 to 4 of 4

Take max value from a vlookup

Hybrid View

mmccleve Take max value from a vlookup 07-13-2011, 10:42 PM
Paul Re: Take max value from a... 07-13-2011, 11:03 PM
MarvinP Re: Take max value from a... 07-13-2011, 11:10 PM
mmccleve Re: Take max value from a... 07-14-2011, 09:06 PM
  1. #1
    Registered User
    Join Date
    07-13-2011
    Location
    St. George, Utah
    MS-Off Ver
    Excel 2010
    Posts
    37

    Take max value from a vlookup

    I am attempting to match the latest time stamp from column G that corresponds to my vlookup of column I.

    The time stamps are people logging in and out of their phones throughout a single day. Currently, the vlookup will only find the first "true" instance and ignore the other matching names, so it will never return the maximum value for the respective rows.

    I.e. In the attachment, the first person is Graham, Shannell. She has three distinct time stamps. Her end (or max) time stamp is in cell G5 and is 3:04 PM. I would like that value to return in K3 because it is the max value and it matches with the name in I3.

    Brass Tax of the matter:
    When column I matches rows in column A, return the max value for the match in column K.

    Column K is the formula I do not have completed, and I've highlighted it for ease.

    This is my first post. I've been referred by a friend, and current member of the site, and I've heard good things.

    Suggestions are welcome!

    Thank you for reading!!
    Attached Files Attached Files

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Take max value from a vlookup

    Hi Mmcleve, welcome to the forum. I'm glad you've heard good things!

    To get the earliest log in time (column J), you can use this array formula (confirmed with CTRL+SHIFT+ENTER, not just ENTER):

    =MIN(IF(A$1:A$500=I3,E$1:E$500))

    To get the latest log out time (column K) you can use this array formula (same instructions):

    =MAX(IF(A$1:A$500=I3,G$1:G$500))

    Hope that helps!

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,359

    Re: Take max value from a vlookup

    Hi mmccleve and welcome to the forum,
    In K3 put this Control+Shift+Enter formula and pull it down
    =MAX((LVALUES = I3) *(KEYS))
    You will need to enter it by holding downt he Control + Shift keys and then press Enter (CSE)

    If you get an answer in column K of 12 AM then there is no max as these are blanks.

    See http://www.cpearson.com/excel/ArrayFormulas.aspx for some extra reading. I don't fully understand it all yet but seems to work in your case.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    07-13-2011
    Location
    St. George, Utah
    MS-Off Ver
    Excel 2010
    Posts
    37

    Smile Re: Take max value from a vlookup

    Second one worked perfectly. Thank you both for your help!!! All credit to you. It is much appreciated!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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