+ Reply to Thread
Results 1 to 7 of 7

Find a last value in a column and retrieve adjacent cell value

  1. #1
    Forum Contributor
    Join Date
    02-21-2014
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    100

    Find a last value in a column and retrieve adjacent cell value

    Hi Gurus,

    I have data in column "A" as dates in series and some values in column "B". I want to get the last value in column "B" and get the corresponding ROW value from column "A".
    ________ _________
    A B
    ----------- -------------
    01.01.2019 Yes
    02.01.2019 Yes
    03.01.2019 No
    04.01.2019 Present
    05.01.2019 Yes
    06.01.2019 No

    I expect system should return - 06.01.2019 since the last non empty cell in column in "B" is "B6" and adjacent cell "A6" has - 06.01.2019


    With warm Thanks

    Shiva
    Last edited by shivspatil; 03-29-2019 at 10:10 AM.

  2. #2
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Find a last value in a column and retrieve adjacent cell value

    With reference to the following picture:

    last.png

    In E1:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In E2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    02-21-2014
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    100

    Re: Find a last value in a column and retrieve adjacent cell value

    Thanks buddy, your formula looks for the last value in column "A". Pls see below...

    ________ _________
    A B
    ----------- -------------
    01.01.2019 Yes
    02.01.2019 Yes
    03.01.2019 No
    04.01.2019 Present
    05.01.2019 Yes
    06.01.2019 No
    07.01.2019
    08.01.2019
    09.01.2019

    Where I Stil expect the formula to return 06.01.2016 which is the corresponding value for the last value in column "B" (B6)

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,395

    Re: Find a last value in a column and retrieve adjacent cell value

    Try this:

    =LOOKUP(2,1/(B1:B10<>0),A1:A10)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Find a last value in a column and retrieve adjacent cell value

    Sorry for the misunderstanding. Simply change COUNTA(A:A) to COUNTA(B:B) in the above formulas.

  6. #6
    Forum Contributor
    Join Date
    02-21-2014
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    100

    Re: Find a last value in a column and retrieve adjacent cell value

    Thanks ton Ali. It works just expected. Repute added

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,395

    Re: Find a last value in a column and retrieve adjacent cell value

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Find value in row and retrieve adjacent cell
    By DigDoug in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-11-2014, 03:24 PM
  2. [SOLVED] How to Find a Matching Pattern and Retrieve Data from the Adjacent Column
    By Saarang84 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 06-10-2014, 09:58 PM
  3. Need Formula to Match Text In a column And Retrieve adjacent column value
    By excel_joel in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-06-2014, 02:08 AM
  4. Macro to find cell value in column and retrieve duplicates
    By wwballar42 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-05-2014, 06:45 PM
  5. [SOLVED] Macro to find the empty cell in a column and copy a adjacent row to another column.
    By naga in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-18-2013, 07:44 AM
  6. Coding to Find Cell and Retrieve Row and Column Numbers
    By chaplaindoug in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2013, 01:18 PM
  7. macro to find first blank cell in a column cut the value from left adjacent column
    By willykin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-01-2012, 09:23 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