+ Reply to Thread
Results 1 to 9 of 9

Check Contact Name in Column, Return Latest Date and 2 Cells Next to the Latest Date

  1. #1
    Registered User
    Join Date
    04-08-2015
    Location
    America
    MS-Off Ver
    Office 2013
    Posts
    29

    Check Contact Name in Column, Return Latest Date and 2 Cells Next to the Latest Date

    I have a list in Column A of Names.
    I need to check whether the contents of cell B6 appear in the values of Column A and return a TRUE or FALSE in cell B8.
    I also want to be able to check if that name exists in Column A, to find the latest date the person was contacted on (i believe i have done this).
    I then want to return the two values next to the latest date in cells B11 and B12.

    Thank you for any help <3
    Attached Files Attached Files
    Last edited by nKife; 04-08-2015 at 10:16 PM.

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Check Contact Name in Column, Return Latest Date and 2 Cells Next to the Latest Date

    put the following formula in cell B8:
    Please Login or Register  to view this content.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Check Contact Name in Column, Return Latest Date and 2 Cells Next to the Latest Date

    If your data is going to expand to the right as it appears, you are going to run into problems with what you want to do. I suggest a vertical arrangement of your data like the enclosed. The summary is done with a Pivot Table.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    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,929

    Re: Check Contact Name in Column, Return Latest Date and 2 Cells Next to the Latest Date

    Hi, welcome to the forum

    B8=ISNUMBER(MATCH(B6,$A$2:$A$3,0))

    for the others, these will work...
    =INDEX(B2:J2,MATCH(MAX(B2:J2),B2:J2,0))
    =INDEX(B2:J2,MATCH(MAX(B2:J2),B2:J2,0)+1)
    =INDEX(B2:J2,MATCH(MAX(B2:J2),B2:J2,0)+2)

    However, I need to put something together to ID which row to use
    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

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,872

    Re: Check Contact Name in Column, Return Latest Date and 2 Cells Next to the Latest Date

    B8 =if(vlookup(b6,a2:a3,1,0)=b6,true,false)
    b11 =if(vlookup(b6,a2:d3,1,0)=b6,vlookup(b6,a2:d3,3,0))
    b12 =if(vlookup(b6,a2:d3,1,0)=b6,vlookup(b6,a2:d3,4,0))
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,720

    Re: Check Contact Name in Column, Return Latest Date and 2 Cells Next to the Latest Date

    You can use this formula in B8:

    =ISNUMBER(MATCH(B6,A1:A3,0))

    Put this formula in B11:

    =IF(B8,INDEX(B1:J3,MATCH(B6,A1:A3,0),MATCH(B10,INDEX(B1:J3,MATCH(B6,A1:A3,0),),0)+1),"")

    and this one in B12:

    =IF(B8,INDEX(B1:J3,MATCH(B6,A1:A3,0),MATCH(B10,INDEX(B1:J3,MATCH(B6,A1:A3,0),),0)+2),"")

    Hope this helps.

    Pete

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Check Contact Name in Column, Return Latest Date and 2 Cells Next to the Latest Date

    Here is an addition to my previous post. This has a small table like you have in your example. This small table's formulae adjust automatically as you enter data to the table of data.
    Attached Files Attached Files

  8. #8
    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,929

    Re: Check Contact Name in Column, Return Latest Date and 2 Cells Next to the Latest Date

    Try this, it should do what you want....
    B10=INDEX(OFFSET(B1,MATCH($B$6,$A$2:$A$3,0),0,1,COUNTA($B$1:$J$1)),MATCH(MAX(OFFSET(B1,MATCH($B$6,$A$2:$A$3,0),0,1,COUNTA($B$1:$J$1))),OFFSET(B1,MATCH($B$6,$A$2:$A$3,0),0,1,COUNTA($B$1:$J$1)),0))
    B11=INDEX(OFFSET(B1,MATCH($B$6,$A$2:$A$3,0),0,1,COUNTA($B$1:$J$1)),MATCH(MAX(OFFSET(B1,MATCH($B$6,$A$2:$A$3,0),0,1,COUNTA($B$1:$J$1))),OFFSET(B1,MATCH($B$6,$A$2:$A$3,0),0,1,COUNTA($B$1:$J$1)),0)+1)
    B12=INDEX(OFFSET(B1,MATCH($B$6,$A$2:$A$3,0),0,1,COUNTA($B$1:$J$1)),MATCH(MAX(OFFSET(B1,MATCH($B$6,$A$2:$A$3,0),0,1,COUNTA($B$1:$J$1))),OFFSET(B1,MATCH($B$6,$A$2:$A$3,0),0,1,COUNTA($B$1:$J$1)),0)+2)

  9. #9
    Registered User
    Join Date
    04-08-2015
    Location
    America
    MS-Off Ver
    Office 2013
    Posts
    29

    Re: Check Contact Name in Column, Return Latest Date and 2 Cells Next to the Latest Date

    Thanks for all the great help you lovely bunch of people!

+ 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. Return latest date for Site
    By bongielondy in forum Excel General
    Replies: 4
    Last Post: 08-26-2014, 10:55 AM
  2. [SOLVED] Need a function to return latest date after searching text in an adjacent column
    By kevindict in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-03-2013, 12:50 PM
  3. Powerpivot - Returning latest update based on latest date
    By Kehjz in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 08-22-2013, 02:45 PM
  4. [SOLVED] Return the value from the row with latest date
    By G.Bregvadze in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-12-2013, 09:14 AM
  5. Excel 2007 : Lookup a value and return the latest date
    By pinkshirt in forum Excel General
    Replies: 4
    Last Post: 07-04-2011, 06:13 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