+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Find Date of Last Occurrence

  1. #1
    Registered User
    Join Date
    09-15-2011
    Location
    Milwaukee, Wisconsin
    MS-Off Ver
    Excel 2007
    Posts
    2

    Find Date of Last Occurrence

    I am brand new to the forum, and this problem has driven me to sign up. I love to learn new things in excel, and hopefully someone can help me with my problem below.

    I have a data range D19:J200.

    Column D has dates in it. Column J has numbers. I need to find the last value in J that is not zero, and return the date that corresponds to the row.

    7/7/2007 0 0 0 0 0 0
    7/14/2007 0 0 0 0 0 0
    7/21/2007 0 1 0 0 1 1

    For instance, I would need to return 7/21/2007 because the lower right value is not zero. Typically I am able to google the answer and figure it out and apply to my situation, but I am coming up with nothing. Really appreciate the help.

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Find Date of Last Occurrence

    Try this array formula

    =INDEX(D:D,MAX(IF(J1:J1000<>0,ROW(J1:J1000))))

  3. #3
    Registered User
    Join Date
    09-15-2011
    Location
    Milwaukee, Wisconsin
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Find Date of Last Occurrence

    Bob,

    Works like a charm. Thanks much for the easy answer and quick reply.

    Do I need to mark this as solved?

  4. #4
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Find Date of Last Occurrence

    Would be good.

+ 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