+ Reply to Thread
Results 1 to 5 of 5

Min/Max Matching Between Ranges

  1. #1
    Registered User
    Join Date
    10-27-2010
    Location
    Gambrills, MD
    MS-Off Ver
    Excel 2007
    Posts
    3

    Min/Max Matching Between Ranges

    I have a worksheet that's been baffling me for some time now.

    I have 2 sheets (see below)

    Sheet 1:
    Name | MIN Start Date | MAX End Date

    Sheet 2:
    Name | Start Date | End Date

    Named Ranges:
    _Est_End_Date_Active_Column (range of all end dates)
    _Start_Date_Active_Column (range of all start dates)
    _Assignment_Active_Column (range of all names)

    What I want to do is match the MIN Start Date where Sheet 1 Name is in the row.

    So for example:

    Data:
    Jason | 1/1/11 | 2/15/11
    Tommy | 2/2/11 | 3/15/11
    Justin | 3/3/11 | 4/15/11
    Sal | 4/4/11 | 5/15/11

    Sheet 1:
    Justin | 1/1/11 | 2/15/11

    What I am getting is:

    Justin: 1/1/11 | 5/15/11

    Here's the formula I've been working with:

    =MAX(IF(_Assignment_Active_Column=$A14,_Est_End_Date_Active_Column))

    Not sure what I am doing wrong...
    Last edited by NBVC; 07-11-2011 at 02:42 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Min/Max Matching Between Ranges

    Are you using the right named range for start dates?

    Also, are you confirming formula with CTRL+SHIFT+ENTER not just ENTER since it is an array formula?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    10-27-2010
    Location
    Gambrills, MD
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Min/Max Matching Between Ranges

    The named ranges are correct. The _Start_Date_Active_Column is a named range for all of the start dates in the Start Date Column and the _Est_End_Date_Active_Column is a named range for all of the end dates in the Est End Date Column.

    I tried both 'Enter' and 'CTRL-SHIFT-ENTER' and recieved the same date back.

    It seems that it's pulling the MAX and MIN dates, but it's not looking to verify that the name is associated with the dates.

    What it should be pulling, for example, if I am looking for the MAX end date for "Jason" would be 2/15/11, but instead it's stating the MAX end date is 5/15/11.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Min/Max Matching Between Ranges

    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.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

  5. #5
    Registered User
    Join Date
    10-27-2010
    Location
    Gambrills, MD
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Min/Max Matching Between Ranges

    Well... I don't know how, but I just tried it again and now it's working as an Array Formula. Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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