+ Reply to Thread
Results 1 to 2 of 2

Multiple Criteria INDEX with dates and missing values

  1. #1
    Registered User
    Join Date
    07-30-2010
    Location
    Oregon
    MS-Off Ver
    Excel 2007
    Posts
    44

    Multiple Criteria INDEX with dates and missing values

    I have the following table which has three columns, the first contains a date (that may be missing periods and/or have duplicate values), and ID, and a value corresponding to the date and value. Date + ID will produce a unique value. The user can select an "Entry Date" in this case, August 2011, which is not shown on the table of available dates. There is an output table which lists the unique IDs, and the most recent value as of the entry date (in this case, ABC shows the value for July 2011, DEF shows the value for June 2011). What formula could I use to produce these output values?


    Date ID Value Entry Date Aug-11 Output
    Jan-11 ABC 1 ID Value
    Feb-11 ABC 2 ABC 5
    May-11 ABC 3 DEF 4
    Jun-11 DEF 4
    Jul-11 ABC 5
    Sep-11 DEF 6
    Sep-11 ABC 7
    Last edited by rrbest; 12-27-2011 at 03:12 PM.

  2. #2
    Registered User
    Join Date
    07-30-2010
    Location
    Oregon
    MS-Off Ver
    Excel 2007
    Posts
    44

    Re: Multiple Criteria INDEX with dates and missing values

    I have resolved this problem with the following formula, feel free to comment if you have improvements:

    {=INDEX($C$2:$C$8,MATCH(MAX(IF($B$2:$B$8=H4,IF($A$2:$A$8<=$F$1,$A$2:$A$8))),IF($B$2:$B$8=H4,$A$2:$A$8),0))}

+ 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