+ Reply to Thread
Results 1 to 3 of 3

Date Before A Date With Matching Criteria

  1. #1
    Registered User
    Join Date
    10-10-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    69

    Date Before A Date With Matching Criteria

    Hi there,

    I have the attached spreadsheet and I need to find the date in the table that is less than the specified date in E3 and is also the animal specified in cell D3. So the formula should bring back the result 18/03/2013 (line 4) as that is the closest date before the given date and it is also a dog.

    I know I probably need an array formula and some max ifs, I have tried a few combos but I can't get it going. I don't want to be able to do any sorting of the table I kind of want to keep that how it is.

    Your help is much much appreciated!

    DATE BEFORE DATE.xlsx

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Date Before A Date With Matching Criteria

    hi martin. try:
    =SUMPRODUCT(MAX((Table1[ANIMALS]=D3)*(Table1[DATES]<E3)*Table1[DATES]))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    10-10-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: Date Before A Date With Matching Criteria

    Thank you so much, that worked perfectly!

+ 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. Sumif Based on matching date criteria
    By krunk in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-18-2013, 11:19 AM
  2. [SOLVED] SUMIF only if matching a date criteria
    By Adsup01 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-12-2012, 11:14 PM
  3. [SOLVED] Find first date matching criteria
    By NapB9 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-07-2012, 09:04 PM
  4. Count a Matching criteria to a date range
    By scaffdog845 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-16-2010, 02:25 PM
  5. Matching data using date criteria...
    By JoeZ in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-14-2005, 09:50 AM

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