+ Reply to Thread
Results 1 to 4 of 4

Conditional VLOOKUP + MAX date formula

  1. #1
    Registered User
    Join Date
    08-02-2011
    Location
    Madison, USA
    MS-Off Ver
    Excel 2010
    Posts
    51

    Exclamation Conditional VLOOKUP + MAX date formula

    Hello. I am having issues trying to meet a request. The request is that for a very large report, I need to produce the MAX (or most recent) date in column S for each name in column D, so long as the value in column I = "Annual Update (B)"

    I tried a pivot table to return max date as values with the Report Filter = "Annual Update (B)" only, but I only get values of 0. Then I tried this, with all the unique names on a separate worksheet in column B and this formula in column C next to each name and it fails. Please help!

    Please Login or Register  to view this content.

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

    Re: Conditional VLOOKUP + MAX date formula

    With CADData!D:D is names;CADData!I:I contains "Annual Update (B)", CADData!S:S is date to be gotten MAX

    =MAX(IF(CADData!$D$2:$D$26894=$B3,IF(CADData!I$2:$I$26894="Annual Update (B)",CADData!S$2:$S$26894,""))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    Quang PT

  3. #3
    Registered User
    Join Date
    08-02-2011
    Location
    Madison, USA
    MS-Off Ver
    Excel 2010
    Posts
    51

    Re: Conditional VLOOKUP + MAX date formula

    I love that, but it doesn't work. I tried everything. Please take a look at the attached. Maybe this is a formatting issue. Thanks for helping!!Copy of zzControlSheets_2004_To_041515 for Forum.xlsx

  4. #4
    Registered User
    Join Date
    08-02-2011
    Location
    Madison, USA
    MS-Off Ver
    Excel 2010
    Posts
    51

    Thumbs up Re: Conditional VLOOKUP + MAX date formula

    I got it working. Looks like there was a copy/paste error with the formula you provided. I did it again and now it works like a charm. Thank you!!

+ 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. Conditional VLOOKUP Formula
    By btamulis in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-03-2014, 12:14 AM
  2. Conditional IF and Vlookup Statement for a date range
    By geralde in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-08-2014, 09:27 AM
  3. Replies: 1
    Last Post: 06-21-2012, 11:06 AM
  4. need help with conditional vlookup formula
    By Mile029 in forum Excel General
    Replies: 2
    Last Post: 02-13-2012, 02:29 PM
  5. conditional vlookup to find entry within date range
    By coffee_man in forum Excel General
    Replies: 12
    Last Post: 08-07-2011, 03:01 AM

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