+ Reply to Thread
Results 1 to 4 of 4

2nd to last value in a column with blanks, find value in next column

Hybrid View

LookIWashed4Supper 2nd to last value in a column... 07-24-2013, 07:45 PM
Tony Valko Re: 2nd to last value in a... 07-24-2013, 07:53 PM
LookIWashed4Supper Re: 2nd to last value in a... 07-24-2013, 07:58 PM
Tony Valko Re: 2nd to last value in a... 07-24-2013, 08:03 PM
  1. #1
    Registered User
    Join Date
    07-23-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    5

    2nd to last value in a column with blanks, find value in next column

    Hi

    Yesterday I received help finding the 2nd to last value in a column with blanks. The formulae is;

    =INDEX(B1:B100,LARGE(INDEX((B1:B100<>"")*ROW(B1:B100),0),2))

    Now I need to find the value in the same row, but comumn A. Column A has dates in it. I have tried the following;

    =INDEX($A$1:$A$94,MATCH(INDEX(B1:B94,LARGE(INDEX((B1:B94<>"")*ROW(B1:B94),0),2)),B$1:B$94))

    However it is giving me the date in column A corresponding to a cell in column B which has the same value as the 2nd to last value, but isn't the second to last row.

    Your help would be greatly appreciated.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: 2nd to last value in a column with blanks, find value in next column

    Quote Originally Posted by LookIWashed4Supper View Post
    =INDEX(B1:B100,LARGE(INDEX((B1:B100<>"")*ROW(B1:B100),0),2))
    All you should have to change is the 1st INDEX range:

    =INDEX(A1:A100...
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    07-23-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: 2nd to last value in a column with blanks, find value in next column

    That's it! It even makes sense. Thanks heaps for your help.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: 2nd to last value in a column with blanks, find value in next column

    You're welcome. Thanks for the feedback!

+ 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 a column by date and filter that column by removing blanks
    By rsami in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-28-2013, 10:56 PM
  2. Scan a Column A (numbers and blanks) and copy its contents WITHOUT BLANKS into Column B
    By bighandsam in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2012, 05:16 PM
  3. [SOLVED] Returning most recent daily data in a column if blanks in column
    By InnesMcc in forum Excel General
    Replies: 6
    Last Post: 11-04-2011, 09:41 AM
  4. [SOLVED] Returning most recent daily data in a column if blanks in column
    By InnesMcc in forum Excel General
    Replies: 2
    Last Post: 11-04-2011, 06:28 AM
  5. Replies: 2
    Last Post: 06-01-2006, 03:55 PM

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