+ Reply to Thread
Results 1 to 3 of 3

Formula to Look Up Last Date in an Array

  1. #1
    Registered User
    Join Date
    03-13-2017
    Location
    Virginia
    MS-Off Ver
    2013
    Posts
    34

    Formula to Look Up Last Date in an Array

    Hello,
    I am looking for a formula that will find the last date entered in an array (note that the last date is needed, not the latest date).
    In the first table contain, an accounting period (i.e., Period 1, Period 2) is entered in Column A (A2:A7) and a date is entered in Column B (B2:B7). Column B may also contain some text other than dates.

    The second table lists all of the possible accounting periods in Column A (A10:A13). These periods will match the accounting periods entered in Column A in the first table. Column B of this table (B3:B13) is where I would like a formula that will pick up the last date entered in Table 1 for each of the accounting periods, ignoring any other text that may be there.
    I’m including a little illustration in case what I said doesn’t make sense.

    Table 1
    Col. A Col. B
    Period 1 1/1/17
    Period 2 2/5/17
    Period 1 4/30/17
    Period 1 (check with PM)
    Period 3 3/1/17
    Period 4 4/1/17
    Period 3 1/30/17
    Period 3 (check with PM)

    Table 2

    Col. A Col. B
    Period 1 4/30/14
    Period 2 2/5/17
    Period 3 1/30/17
    Period 4 4/1/17

    Thank you!

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Formula to Look Up Last Date in an Array

    Assuming table 1,
    A1:A8 contain period#
    B1:B8 contain date

    Table 2,
    A12 contain period#
    In B12:
    =LOOKUP(2,1/(A1:A8=A12)/ISNUMBER(1/(B1:B8)),B1:B8)
    Quang PT

  3. #3
    Registered User
    Join Date
    03-13-2017
    Location
    Virginia
    MS-Off Ver
    2013
    Posts
    34

    Re: Formula to Look Up Last Date in an Array

    Yes, this did the trick! Thank you very much!!

+ 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. Sorting date with array formula
    By jbrooks1988 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-25-2016, 04:29 PM
  2. [SOLVED] Excel array formula and structured table date header fails with date number <10
    By sdassira in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-27-2015, 11:32 AM
  3. Array formula which will search the from date but not the end date
    By bagguley in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-21-2015, 05:47 PM
  4. [SOLVED] weekday() result used in an array formula doesn't work. Formula works if i type in date
    By aarco50 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-25-2014, 03:25 PM
  5. Array formula using date + 4 day range?
    By sixcmtall in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-08-2013, 01:50 PM
  6. Replies: 2
    Last Post: 04-08-2012, 03:36 AM
  7. [SOLVED] Array formula and date value
    By Caro-Kann Defence in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-29-2005, 03:05 PM

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