+ Reply to Thread
Results 1 to 5 of 5

Max between dates + hlookup?

Hybrid View

  1. #1
    Registered User
    Join Date
    07-15-2020
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    23

    Max between dates + hlookup?

    Hello

    I am trying to do a formula, but getting a little stuck.

    Goal: find the maximum value between two dates, in a column with matched header.

    I have created an easy theoretical example (attached)

    The idea would be to find Jack's maximum score, between the two dates. As you can see in cell E24, I have actually managed to achieve the right result.

    The problem I have is that it is done by manually specifying the row ("I:I"). This means that for all other candidates, I would have to manually enter the column each time. What I really want is some sort of function in the formula that matches the names in Column D to the names in Row 13, so that it knows which column to do the MAX formula for.

    Hope that's clear and thanks in advance for any help!


    Example.JPG
    Attached Files Attached Files
    Last edited by JM45T3R5; 07-15-2020 at 01:48 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Max between dates + hlookup?

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    07-15-2020
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    23

    Re: Max between dates + hlookup?

    Thanks, Ford. I have uploaded the workbook.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,787

    Re: Max between dates + hlookup?

    How about
    In E16 copied down
    =MAX(IF(($H$14:$H$21>=$E$12)*($H$14:$H$21<=$E$13)*($I$13:$N$13=D16),$I$14:$N$21))

    Needs to be confirmed with Ctrl Shift Enter, not just Enter.

  5. #5
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,996

    Re: Max between dates + hlookup?

    E16=AGGREGATE(14,6,$I$14:$N$21/($I$13:$N$13=$D16)/($H$14:$H$21>=$E$12)/($H$14:$H$21<=$E$13),1)

    Copy down

+ 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. HLookup between two dates using if(and
    By hbuzz in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-27-2016, 06:04 PM
  2. Error using dates with HLOOKUP
    By Jeff Lowenstein in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  3. [SOLVED] Error using dates with HLOOKUP
    By Jeff Lowenstein in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 PM
  4. [SOLVED] Error using dates with HLOOKUP
    By Jeff Lowenstein in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  5. [SOLVED] Error using dates with HLOOKUP
    By Jeff Lowenstein in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 AM
  6. Error using dates with HLOOKUP
    By Jeff Lowenstein in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  7. Error using dates with HLOOKUP
    By Jeff Lowenstein in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-09-2005, 03:05 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