+ Reply to Thread
Results 1 to 5 of 5

Lookup help

  1. #1
    Registered User
    Join Date
    11-01-2010
    Location
    Missouri
    MS-Off Ver
    Excel 2007
    Posts
    35

    Lookup help

    I need to find the second to last cell in a column with a value and output its value. Is there anyway to easily do this?

    Here is how i find the last cell.
    =((LOOKUP(2,1/(C19:C43<>0),F19:F43)))

    The goal is to subtract the last value from the second to last value.
    Last edited by ssword; 12-10-2010 at 05:20 PM.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Lookup help

    Try something like this:
    Please Login or Register  to view this content.
    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Kalgoorlie Australia
    MS-Off Ver
    Excel 2007/10
    Posts
    251

    Re: Lookup help

    Hello
    You could also try
    =INDEX(F:F,MATCH(10^10,C:C)-1)
    Regards
    Peter
    Last edited by peterjuhnke; 12-10-2010 at 05:22 PM.

  4. #4
    Registered User
    Join Date
    11-01-2010
    Location
    Missouri
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Lookup help

    That worked perfectly

  5. #5
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Lookup help

    Quick side note
    ...that formula only works if the next-to-the-last value cell is contiguous with the last value cell.

+ 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