+ Reply to Thread
Results 1 to 10 of 10

Struggling with a lookup that returns the last non zero value from a row

  1. #1
    Registered User
    Join Date
    03-27-2018
    Location
    Manchester, England
    MS-Off Ver
    2016
    Posts
    76

    Talking Struggling with a lookup that returns the last non zero value from a row

    Hi, first post here so I apologize if my terminology is bad.

    Basically on Sheet 1 I have a cell that contains a name that is chosen from a drop down box (cell D6). We will call this 'person A'.
    On Sheet 2 I have a table that in column A has all the names of possible people. Columns B+ have an ELO rating (a number value that changes as they play more matches) and these are all individual to the person in column A. (eg B = ELO 1; C = ELO 2; D = ELO 3 etc)
    However, I only want to return the last value as that is the current rating. My issue is that this is a different column for each person as each person will have played a different amount of times.

    To summarize;
    Cell D6 on Sheet 1 is the name
    Column A:A on sheet 2 is the list of names
    Column B:B+ on sheet 2 is a number value assigned to each person from column A
    I wish to return the last value for the person whose name is in D6.


    I have tried using tutorials of Index, match and different lookups however I have been unsuccessful so far - Probably because I'm a beginner and have made silly errors. I also tried using long formula that includes 'small'. Found this confusing however.

    Any help would be hugely appreciated.

    Thanks


    [Update: Thank you for solving this ALiGW - Massive help and worked first time. Thanks.]
    Attached Files Attached Files
    Last edited by Hinchliffe2012; 03-28-2018 at 09:03 AM. Reason: Thanks

  2. #2
    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
    80,665

    Re: Struggling with a lookup that returns the last non zero value from a row

    This formula returns the last non-zero entry on a row:

    =LOOKUP(2,1/(A2:ZZ2<>0),A2:ZZ2)

    It would be so much easier if you provided a sample workbook.
    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.

  3. #3
    Registered User
    Join Date
    03-27-2018
    Location
    Manchester, England
    MS-Off Ver
    2016
    Posts
    76

    Re: Struggling with a lookup that returns the last non zero value from a row

    I have attached an example workbook. Thank you for helping.

  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
    80,665

    Re: Struggling with a lookup that returns the last non zero value from a row

    This in D3:

    Please Login or Register  to view this content.
    Make the ranges as wide as you need.

  5. #5
    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
    80,665

    Re: Struggling with a lookup that returns the last non zero value from a row

    I see in the meantime this has been marked as solved. Was it my solution or one you found elsewhere?

  6. #6
    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
    80,665

    Re: Struggling with a lookup that returns the last non zero value from a row

    Well, some feedback would have been courteous.

  7. #7
    Registered User
    Join Date
    03-27-2018
    Location
    Manchester, England
    MS-Off Ver
    2016
    Posts
    76

    Re: Struggling with a lookup that returns the last non zero value from a row

    Yes, this was your feedback that solved the post.
    Apologies for not successfully posting a thank you, I tried to do it at the same time as I updated it to solved but was evidently unsuccessful.

    Thanks so much again, you were a massive help.

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

    Re: Struggling with a lookup that returns the last non zero value from a row

    You're welcome. You did successfully mark the thread as solved, but it is always nice to confirm that the solution offered has worked or that you have solved it yourself. Leaving the thread hanging is a little bit discourteous.

    This forum is manned by volunteers who are human beings helping out for free in their spare time. It's not a paid 'service'.

  9. #9
    Registered User
    Join Date
    03-27-2018
    Location
    Manchester, England
    MS-Off Ver
    2016
    Posts
    76

    Re: Struggling with a lookup that returns the last non zero value from a row

    I genuinely didn't mean to be discourteous and I am really grateful for the assistance.

    Sorry if it came across that way.

  10. #10
    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
    80,665

    Re: Struggling with a lookup that returns the last non zero value from a row

    No problem.

+ 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. Lookup table help - multiple returns for one lookup value
    By radddogg in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 09-16-2016, 02:22 PM
  2. Struggling with lookup
    By barneyrubble1965 in forum Excel General
    Replies: 1
    Last Post: 12-02-2015, 06:33 AM
  3. [SOLVED] struggling with 'lookup value in" MATCH function
    By GraemeG in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-10-2015, 08:38 AM
  4. Lookup returns N/A
    By amartino44 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-21-2013, 05:06 PM
  5. Lookup - Multiple returns
    By Clash in forum Excel General
    Replies: 10
    Last Post: 09-08-2011, 07:52 AM
  6. Excel 2008 : Lookup same value, different returns
    By washkow in forum Excel General
    Replies: 1
    Last Post: 05-26-2010, 11:48 AM
  7. LOOKUP returns #N/A
    By roadapple in forum Excel General
    Replies: 4
    Last Post: 02-04-2009, 10:15 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