+ Reply to Thread
Results 1 to 6 of 6

Return value from column A where column B value matches a criteria

  1. #1
    Registered User
    Join Date
    11-06-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    5

    Return value from column A where column B value matches a criteria

    I feel like this should be a simple solution that I'm missing, but I have a spreadsheet with string values in column A. In column B, I have timestamps reflecting the last time a corresponding value in A was updated.

    i.e.

    Alpha 01/01/1900 14:00
    Beta 01/01/1900 14:30
    Gamma 01/01/1900 14:15
    Delta 01/01/1900 14:10

    I need to return the most recently updated string value; in this case, Beta. How can this be accomplished without using the ROW function? (I just built a solution using ROW only to find that the application reading the xls as a datasource doesn't support ROW.

    I eagerly await your breadcrumbs.

    Thanks

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Return value from column A where column B value matches a criteria

    Try

    =INDEX(A1:A100,MATCH(MAX(B1:B100),B1:B100,0))

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Return value from column A where column B value matches a criteria

    Hi and welcome to the forum

    If this is your data...
    A
    B
    C
    1
    Alpha
    1/1/1900
    14:00
    2
    Beta
    1/1/1900
    14:30
    3
    Gamma
    1/1/1900
    14:15
    4
    Delta
    1/1/1900
    14:10
    5
    6
    Beta


    A6=INDEX($A$1:$A$4,MATCH(MAX($C$1:$C$4),$C$1:$C$4,0))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    11-06-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Return value from column A where column B value matches a criteria

    Wowee. Instant service, and two home runs.

    That was just the ticket!

    Thank you and goodnight

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Return value from column A where column B value matches a criteria

    You're welcome.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Return value from column A where column B value matches a criteria

    Happy to help and thanks for the feedback

    I will mark this thread as SOLVED, for future reference, you can mark your threads SOLVED by using the "thread tools" just anbove your 1st post

+ 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. Want to sum column E when it matches several criteria in Column A
    By Cheryl4271 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-29-2012, 04:50 PM
  2. Formula to find all matches in column A and return cells from column C
    By GenericPat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-19-2012, 04:56 PM
  3. Replies: 4
    Last Post: 04-14-2011, 03:46 AM
  4. Return last entry in column that matches criteria
    By tomlancaster in forum Excel General
    Replies: 4
    Last Post: 01-22-2010, 10:27 AM
  5. Return Value from 2nd column when value in 1st column matches given criteria
    By Russell_K in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-05-2008, 12:07 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