+ Reply to Thread
Results 1 to 3 of 3

Need to find the second to last value in a column

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

    Need to find the second to last value in a column

    Is there a way to find the second to last value in a column?

    In the example sheet i'd need to find the second to last value in column B which should result in 2.31 being output.
    Attached Files Attached Files
    Last edited by ssword; 01-05-2011 at 02:33 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: Need to find the second to last value in a column

    Using your posted workbook...
    This formula returns the next to the last number in the Col_B list:

    If there will be NO blanks between values:
    Please Login or Register  to view this content.
    If there MAY be blank cells between the values:
    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 Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Need to find the second to last value in a column

    This will work. If the next to the last cell is blank, you'll return 0

    =INDEX(B:B,MATCH(9999999,B:B,1)-1)

    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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