+ Reply to Thread
Results 1 to 6 of 6

Trying to return max value in vlookup subject to date criteria

  1. #1
    Registered User
    Join Date
    08-21-2013
    Location
    Houston
    MS-Off Ver
    Excel 2003
    Posts
    3

    Trying to return max value in vlookup subject to date criteria

    I've run into a brick wall... I'm trying to return the min and maximum value from a table for a given data set and date subject to the criteria that the date is within a certain range. Can someone help?

    Using the attached worksheet, I want to fill in columns B & C on the first tab that return the min top and the max bottom as long as the date in column D is within the date range on the 2nd tab.
    Thanks in advance,
    Attached Files Attached Files

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Trying to return max value in vlookup subject to date criteria

    In C2 and D2

    top perf:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    bottom perf:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    These are entered as arrays using Ctrl+Shift+Enter instead of exiting the cell with Enter.

    Copy as far down as needed.

  3. #3
    Registered User
    Join Date
    08-21-2013
    Location
    Houston
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Trying to return max value in vlookup subject to date criteria

    Thanks, but that doesn't quite do it-- I didn't explain well enough. The max / min values also have to be indexed to the part # in each of the sheets. Look at Part #8 on the Data tab-- the max and min values change based on the date. Is there a vlookup component that needs to be added somewhere?

    Thanks!

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Trying to return max value in vlookup subject to date criteria

    Hi,

    Both array formulas:

    In B2 and copy down:

    =MAX(IF(('Data to look up from'!$A$2:$A$69='Table to fill in'!A2)*('Data to look up from'!$B$2:$B$69<='Table to fill in'!D2)*('Data to look up from'!$C$2:$C$69>='Table to fill in'!D2),'Data to look up from'!$D$2:$D$69))

    In C2 and copy down:

    =MIN(IF(('Data to look up from'!$A$2:$A$69='Table to fill in'!A2)*('Data to look up from'!$B$2:$B$69<='Table to fill in'!D2)*('Data to look up from'!$C$2:$C$69>='Table to fill in'!D2),'Data to look up from'!$E$2:$E$69))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  5. #5
    Registered User
    Join Date
    08-21-2013
    Location
    Houston
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Trying to return max value in vlookup subject to date criteria

    AWESOME! Thanks!

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Trying to return max value in vlookup subject to date criteria

    You're welcome.

+ 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. vlookup formula with two criteria that must be met to return a value
    By MBROOKS in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-12-2012, 07:04 PM
  2. Replies: 3
    Last Post: 09-08-2011, 02:40 AM
  3. Vlookup or other formula to return data given criteria
    By haduken in forum Excel General
    Replies: 14
    Last Post: 02-13-2011, 04:06 PM
  4. VLOOKUP two criteria to return value
    By ducjes55 in forum Excel General
    Replies: 1
    Last Post: 01-21-2011, 03:11 PM
  5. Replies: 3
    Last Post: 08-17-2010, 02:54 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