+ Reply to Thread
Results 1 to 4 of 4

Return Min Value with Index/Match if Min date is two or one month from today's date

  1. #1
    Registered User
    Join Date
    10-16-2019
    Location
    California
    MS-Off Ver
    Latest
    Posts
    15

    Return Min Value with Index/Match if Min date is two or one month from today's date

    Hi Guys:

    I have a rent roll for several properties which will have their rents increase over time. I would like to have my worksheet automatically update as those rent increase dates get closer to make sure I am billing them correctly. I am looking for an equation which will populate the next rent increase date column in sheet one with the next rent increase month coming up if that month is two or one months in the future from today's month and year for a given property. I want it to match the tenant in sheet one and look through the tenants in sheet two and match the minimum of the list of dates and compare it with today's month and year. If there isn't anything coming up within 1 or 2 months I want it to return blank. Thoughts?

    SHEET 1

    Unit Tenant Next Rent Increase Date Increase Amount
    100A TRADER JOES
    100B STARBUCKS
    100C PIZZAHUT

    SHEET 2


    Today = 12/1/2019

    Unit Tenant Next Rent Increase Date Increase Amount
    100A TRADER JOES 01/01/2020 10,000
    100A TRADER JOES 06/01/2020 10,100
    100A TRADER JOES 01/01/2021 10,200
    100A TRADER JOES 06/01/2021 10,300
    100A TRADER JOES 01/01/2022 10,400
    100B STARBUCKS 01/01/2020 5,000
    100B STARBUCKS 06/01/2020 5,100
    100B STARBUCKS 01/01/2021 5,200
    100B STARBUCKS 06/01/2021 5,300
    100B STARBUCKS 01/01/2022 5,400
    Last edited by fbinaghi; 10-18-2019 at 04:05 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Return Min Value with Index/Match if Min date is two or one month from today's date

    It is always better to attach your actual Excel file instead of putting tables of data in your post. Fortunately I could create a few in under a minute, but most people will not take the time to reproduce a file from scratch.

    I am a little perplexed to see rent increases 5 days apart, but here is what a solution looks like. This will show increases within 60 days of the current date.

    =IFERROR(INDEX(Sheet2!C$2:C$11,MATCH($A3&"-1-",Sheet2!$A$2:$A$11&IF(Sheet2!C$2:C$11<TODAY()+60,"-1-",0),0),1),"")

    This is an array formula. After typing in the formula, do not hit ENTER--hit CTRL+SHIFT+ENTER. You have done it correctly if the formula in the formula box has {braces} around it. You cannot type in the braces; they are just an indicator that it is an array formula.

    I have implemented it in your file, showing dates so that some will match and some will not. If there are two dates within 60 days, it will only show the first one. This assumes that all dates on Sheet2 are in the future.
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    10-16-2019
    Location
    California
    MS-Off Ver
    Latest
    Posts
    15

    Re: Return Min Value with Index/Match if Min date is two or one month from today's date

    You are correct. The dates were off. I have updated my original table. I will take a look at the excel sheet you've made now. Thank you!

  4. #4
    Registered User
    Join Date
    10-16-2019
    Location
    California
    MS-Off Ver
    Latest
    Posts
    15

    Re: Return Min Value with Index/Match if Min date is two or one month from today's date

    Excellent! The equation works great. I have never seen the "-1-" used before. What does that mean? Could you explain the logic behind this equation? Best regards.

+ 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] How to return yesterdays date unless today is monday then return previous fridays date
    By ciaron178 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-10-2019, 10:15 AM
  2. Find Text Within Table, Return First Row Date, Then Compare to Today's Date
    By EduardStoo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-21-2019, 10:47 AM
  3. Index Match using Min to find a text value based on the closest date to today
    By Ericpinkel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-04-2018, 09:38 PM
  4. [SOLVED] INDEX MATCH where value is greater than or equal to today's date
    By Ophi352 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-23-2017, 04:14 AM
  5. [SOLVED] Index match return min and max date
    By silambarasan.J in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 05-03-2017, 09:01 AM
  6. [SOLVED] Index Match using today's date
    By Margate in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-20-2016, 03:19 PM
  7. [SOLVED] Creating a view by filtering 2 columns by date (both within 3 months of today's date)
    By Gti182 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-21-2014, 05:04 AM

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