+ Reply to Thread
Results 1 to 9 of 9

lookup min value in ranges of dates

  1. #1
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    lookup min value in ranges of dates

    I've attached a workbook which has two columns of dates. The first column (A) contains a continuous series of dates. Next to each date (Column B) is a value (a percentage) from a database.

    The second column of dates is not continuous. It is broken into ranges of dates (Column J), each one associated with a Ticket # (Column K).

    For each range of dates associated with a ticket number I need to find the minimum value in column B.

    I've manually calculated some desired results in column W.

    Can someone help me with the formula for this? Thanks so much!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: lookup min value in ranges of dates

    You can use a couple of hidden helper columns:
    col X
    Please Login or Register  to view this content.
    col Y
    Please Login or Register  to view this content.
    col Z
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Ben Van Johnson

  3. #3
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    Re: lookup min value in ranges of dates

    Thanks Ben, that works! I just drug column Z over to column W, and the formulas held together. I appreciate this.

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: lookup min value in ranges of dates

    I'm late to the party.

    An afterthought. In W4 and filled down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Dave

  5. #5
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    Re: lookup min value in ranges of dates

    Hi, after I tried these formulas in my actual workbook they didn't always function correctly.

    Flameretired, I settled on your formula for now though. I've attached it in a facsimile of my actual workbook so that
    we can use the actual column letters in an effort to reduce the possibility that I am making a mistake when I
    put the formula to use.

    If you scroll down to rows 711 through 781, you'll see three sets of ranges with their respective IDs (#123610 through
    #123612).

    The formula result is incorrect with these IDs. You'll see that in each case it is showing -3.15%. The correct
    solutions are shown in column BP.

    I thought that creating absolute ranges might help (e.g. $T$47:$T$2000) but this didn't work.

    Any suggestions?

    Thanks
    Attached Files Attached Files

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: lookup min value in ranges of dates

    Please try at BO47

    =IF(BH47<>"",MIN(AT47:INDEX(AT47:$AT$9999,MATCH(BH47,BG47:BG$9999)),0),"")

  7. #7
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    Re: lookup min value in ranges of dates

    Thanks Bo_Ry, that works!

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: lookup min value in ranges of dates

    The formula result is incorrect with these IDs. You'll see that in each case it is showing -3.15%. The correct
    solutions are shown in column BP.
    I don't see them.

    Can you help me out? Also please tell us what the data source date range is for those rows. The source skips dates where the formula depends upon contiguous dates.

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: lookup min value in ranges of dates

    Aha! I see now.

+ 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. Replies: 4
    Last Post: 04-28-2017, 03:24 AM
  2. [SOLVED] lookup/output ranges within ranges
    By andredl in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-18-2014, 06:36 PM
  3. Replies: 2
    Last Post: 10-21-2013, 07:55 PM
  4. [SOLVED] excel formula to help my calculation from min dates of 3 dates cell ranges
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-04-2013, 10:32 AM
  5. Replies: 1
    Last Post: 06-25-2012, 12:45 AM
  6. [SOLVED] Extracting Data From Charts Using Ranges (V-Lookup W/ Ranges?)
    By Kolin in forum Excel General
    Replies: 9
    Last Post: 04-14-2012, 05:39 PM
  7. Compare dates to ranges of dates
    By Santed593 in forum ExcelTip.com Feedback / Comments / Suggestions
    Replies: 1
    Last Post: 08-05-2005, 12:22 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