+ Reply to Thread
Results 1 to 5 of 5

Lookup last date for class with specific criteria

  1. #1
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Atlanta
    MS-Off Ver
    Excel 2007
    Posts
    171

    Lookup last date for class with specific criteria

    Hi, I need some help but here's some quick background:

    I manage a list of web-based classes offered by my company - each class name, date, time, and attendance is recorded in the list. Periodically, we send out marketing emails for these classes to promote attendance, which is also recorded in the list.

    Issue:
    I have a summary list of the class names (where each class is only listed once) and I'm trying to come up with a formula that will pull the class date for the last time that course was marketed.

    I have attached an example of what I am trying to do - using colors instead of class names. The last date marketed for each color is already hard-keyed into the summary to show what should be there.

    Any suggestions on how I can achieve this?
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Lookup last date for class with specific criteria

    try in I5
    =MAX(INDEX(($B$2:$B$33=H5)*($C$2:$C$33)*($A$2:$A$33="x"),0))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: Lookup last date for class with specific criteria

    In I5 type {=MAX(IF($B$2:$B$33=H5,$C$2:$C$33))} and be sure to use Control Shift Enter to ensure that has the curly brackets around it. You cannot type the curly brackets.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Atlanta
    MS-Off Ver
    Excel 2007
    Posts
    171

    Re: Lookup last date for class with specific criteria

    Genius! A MAX formula never even entered my brain. Thanks Alan!

  5. #5
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Atlanta
    MS-Off Ver
    Excel 2007
    Posts
    171

    Re: Lookup last date for class with specific criteria

    Martin - you are equally a genius! Sorry about missing your post - I scrolled right to the bottom and didn't realize more than one person posted an answer.

+ 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] Date lookup with a criteria (if)
    By Jay_hl in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-08-2013, 06:00 AM
  2. [SOLVED] Lookup Specific Value based on the Criteria
    By ggilzow in forum Excel General
    Replies: 2
    Last Post: 06-08-2012, 10:08 AM
  3. [SOLVED] How do I use a lookup table to sum values for specific criteria?
    By NJLExcel1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-08-2012, 02:57 PM
  4. Replies: 5
    Last Post: 02-10-2012, 12:52 PM
  5. Lookup using date and criteria
    By ChrisRocks in forum Excel General
    Replies: 5
    Last Post: 08-16-2011, 05:13 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