+ Reply to Thread
Results 1 to 6 of 6

Return latest value (by date) within a date range

  1. #1
    Registered User
    Join Date
    07-06-2016
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    46

    Return latest value (by date) within a date range

    Hi,

    See attached.

    In column P, I want to return the latest $/L rate from column I, for a specific property, based on dates (in column D) before the last day of a specified month (in column L).

    I'm not sure which type of formula to use but in excel terms:

    1. Match M1 to Array G3:G100 (Property match)
    2. Return latest (by date) rate from I3:I100 ($/L range array) if D3:D100 (Date range array) <= EOMONTH(L1,0) (month)

    So for example: Cell P1 should equal $1.1733 (that is Property = Pegunny, latest date in January = 19/01/2018)


    Please let me know if i need to clarify anything, cheers
    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,609

    Re: Return latest value (by date) within a date range

    Try:
    Please Login or Register  to view this content.
    PropertyNames =Rebate!$G$3:$G$17
    PurchaseDate =Rebate!$D$3:$D$17
    RateRangeI =Rebate!$I$3:$I$17


    Or, dynamic ranges (RateRangeI)similar to:
    Please Login or Register  to view this content.
    Last edited by protonLeah; 01-31-2018 at 12:45 AM.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    07-06-2016
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    46

    Re: Return latest value (by date) within a date range

    Hi Ben

    Can you advise what (c1:c15) relates to in the first formula?

    Also how do you apply the dynamic range formula so that it has a criteria of property and < specified date?

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Return latest value (by date) within a date range

    p3=LOOKUP(2,1/(($D$3:$D$1700<=EOMONTH($L3,0))*($G$3:$G$1700=$M3)),$I$3:$I$1700)
    Try this and copy towards down
    change the data range as per your needs
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Registered User
    Join Date
    07-06-2016
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    46

    Re: Return latest value (by date) within a date range

    Thanks for your help Silva

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

    Re: Return latest value (by date) within a date range

    ....deleted....
    Last edited by protonLeah; 01-31-2018 at 07:04 PM.

+ 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] Lookup dates in cell range and return latest date and name
    By Glorioso999 in forum Excel General
    Replies: 6
    Last Post: 01-28-2017, 12:43 PM
  2. Find latest date in a column and return a value with that date
    By Neyme in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-13-2015, 01:50 PM
  3. Replies: 8
    Last Post: 04-08-2015, 10:10 PM
  4. [SOLVED] Return the value from the row with latest date
    By G.Bregvadze in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-12-2013, 09:14 AM
  5. [SOLVED] Formula required to return 2 latest records in a date range
    By Backroomgeeza in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 10-23-2012, 05:53 AM
  6. Replies: 1
    Last Post: 04-04-2012, 08:21 AM
  7. Return Latest Date from a range of data
    By Kenji in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-01-2010, 06:19 AM

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