+ Reply to Thread
Results 1 to 10 of 10

Finding Min/Max for Dynamic Date Range

Hybrid View

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

    Re: Finding Min/Max for Dynamic Date Range

    B7 =index($b$1:$aP$1,match(a7,$b$2:$aP$2,0))
    c7 =LOOKUP(A7,$B$2:$AP$2,$B$1:$AP$1)
    Last edited by martindwilson; 10-19-2013 at 07:36 PM.
    "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

  2. #2
    Registered User
    Join Date
    08-23-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Finding Min/Max for Dynamic Date Range

    Hi Martin--

    I plugged your solution in and it worked as promised. Can you help me understand how it works? I'm familiar with both INDEX(MATCH) and LOOKUP, but I'm left scratching my head as to why the INDEX(MATCH) returns the smallest date and the LOOKUP returns the largest.

    Any insights into how that works?

    Thanks!

  3. #3
    Registered User
    Join Date
    08-23-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Finding Min/Max for Dynamic Date Range

    Quote Originally Posted by martindwilson View Post
    B7 =index($b$1:$aP$1,match(a7,$b$2:$aP$2,0))
    c7 =LOOKUP(A7,$B$2:$AP$2,$B$1:$AP$1)
    Hi Martin--

    I plugged your solution in and it worked as promised. Can you help me understand how it works? I'm familiar with both INDEX(MATCH) and LOOKUP, but I'm left scratching my head as to why the INDEX(MATCH) returns the smallest date and the LOOKUP returns the largest.

    Any insights into how that works?

    Thanks!

+ 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] dynamic date range
    By weeble33 in forum Excel General
    Replies: 5
    Last Post: 07-08-2013, 01:44 PM
  2. Finding a date in a text string and comparing it to a date range
    By ABARAN1000 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-05-2012, 02:55 PM
  3. [SOLVED] Dynamic named range based on a start date and end date
    By Gary Lockton in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-06-2012, 07:26 PM
  4. [SOLVED] Finding dynamic range
    By hardik.r.shah in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-03-2012, 01:30 AM
  5. [SOLVED] Finding dates within a date range
    By Marcus in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-04-2005, 09:06 PM

Tags for this Thread

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