+ Reply to Thread
Results 1 to 5 of 5

need to pull a max value based on highest quarter of a date range

  1. #1
    Registered User
    Join Date
    08-15-2019
    Location
    Florida
    MS-Off Ver
    Office 365
    Posts
    9

    need to pull a max value based on highest quarter of a date range

    Hello Everyone!!

    I attached a workbook with some sample data and basic formulas. I'm looking for the best formula to put in cell B6.

    I'm not very proficient with the different date functions and need some help with this problem. Based on 2 date inputs, start date and end date, I need to reference a data table with quarterly interest rates. Out of all of the quarters that are touched by the date inputs, I need to pull the interest rate that is the highest.

    For example, if the start date is 1/1/17 and the end date is 12/31/17, then I need to reference the rates for the 4 quarters in 2017 and pull the highest rate.

    In the workbook example, the start date is 1/15/17 and the end date is 4/5/19. I need to compare all 4 quarters of 2017, all 4 quarters of 2018, and the first 2 quarters of 2019 and use the highest rate out of those 10. In the example, the highest quarter is the 2nd quarter of 2017 with a rate of 0.000034.

    Any help is much appreciated!!
    Attached Files Attached Files

  2. #2
    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: need to pull a max value based on highest quarter of a date range

    If I understand correctly try this formula in B6.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  3. #3
    Registered User
    Join Date
    08-15-2019
    Location
    Florida
    MS-Off Ver
    Office 365
    Posts
    9

    Re: need to pull a max value based on highest quarter of a date range

    Thank you so much for the reply, Dave! That formula does work to give me the outcome for that test, but I noticed an issue when I manipulated some of the rates in column I. For the sample worksheet, using 1/15/17 and 4/5/19 as the start and end dates, the formula you provided works for any of the highest rates in I6:I13. I actually needed it to also include I5 and I14 for that example. If I change either of those 2 fields in I5 or I14 to be the higher rate, then the formula won't pull that number. I'll try to mess around with it today to see if I can get it to include those 2 fields for this test.

  4. #4
    Registered User
    Join Date
    08-15-2019
    Location
    Florida
    MS-Off Ver
    Office 365
    Posts
    9

    Re: need to pull a max value based on highest quarter of a date range

    B3 needs to be >= G3:G14 and B4 needs to be <= H3:H14. I just have to figure out how to get that in there...don't know how to flip that around

  5. #5
    Registered User
    Join Date
    08-15-2019
    Location
    Florida
    MS-Off Ver
    Office 365
    Posts
    9

    Re: need to pull a max value based on highest quarter of a date range

    I messed around with the workbook today and found a solution. I had to add a few extra columns for some IF formulas, but it appears to give me the result I was looking for. There's probably a more simplified way to do it, but this seems to work. Have a great day everyone! Be safe.
    Attached Files Attached Files

+ 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. How to Pull and Sum Data From Another Spreadsheet Based on a Date Range
    By georgegreenhal3 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-25-2018, 04:24 PM
  2. [SOLVED] Formula to pull the MIN date from a range, based on the criteria.
    By Budhdr in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-11-2018, 10:44 AM
  3. [SOLVED] Formula to pull highest cell value from range
    By sryder in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-06-2016, 07:33 PM
  4. [SOLVED] Pull A Value and SUM in a Range based on a Date in Another Range
    By Caulerpa in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-02-2013, 01:33 PM
  5. Replies: 2
    Last Post: 01-19-2012, 03:53 PM
  6. Assigning period and quarter based on date range. VBA
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-28-2011, 09:04 PM
  7. Based on date, pull sum from a range of cells?
    By infinitysales in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-23-2008, 06:08 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