+ Reply to Thread
Results 1 to 4 of 4

Returning nearest date based on dynamic data

  1. #1
    Forum Contributor
    Join Date
    02-26-2014
    Location
    Aylsham, Norfolk, UK
    MS-Off Ver
    Excel 365
    Posts
    126

    Returning nearest date based on dynamic data

    I need to be able to return a date for the previous and next dates based upon the current date and interval between dates.

    I have attached a model as rough idea of what I need.

    Essentially I have the "=today()" formula in a fixed cell to make life a little easier. I have a variable titled Interval which allows the data enterer to select an interval from a controlled list. Then I have the Last and Next columns which need to show the date of the last issued invoice and the date that the next one will be due.

    The first pay column is a fixed date that will not change.

    The day of each month will always be the same as the day of the first payment (e.g. 5th will always be the 5th regardless of month, And if its weekly it will always be on the same day), at this stage I'm not worried if it falls on a weekend for anything other than weekly.Attachment 438481

  2. #2
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Returning nearest date based on dynamic data

    Cell F3: Last Inv
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Cell F4: Next Inv
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note: This only covers weekly and monthly.

  3. #3
    Forum Contributor
    Join Date
    02-26-2014
    Location
    Aylsham, Norfolk, UK
    MS-Off Ver
    Excel 365
    Posts
    126

    Re: Returning nearest date based on dynamic data

    Thank you for the help, that is a good starting point for me (there are a few other bits I need to do with it which I have not posted here).

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Returning nearest date based on dynamic data

    Hi
    try these for Last Inv in F3:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Finding Nearest date in a range based on critera date
    By skate1991 in forum Excel General
    Replies: 5
    Last Post: 07-22-2015, 02:10 PM
  2. Returning Rows of Data based on a date interval
    By JonesTom in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-16-2015, 05:34 PM
  3. Returning data based on date and value
    By roykeane1 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-12-2013, 03:59 PM
  4. Returning Values based on date falling between Date ranges
    By honest1122 in forum Excel General
    Replies: 5
    Last Post: 06-29-2012, 05:10 PM
  5. Replies: 5
    Last Post: 02-29-2012, 04:27 PM
  6. Text searching within a cell, returning the nearest value.
    By starwarrior in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-29-2012, 09:38 AM
  7. Replies: 8
    Last Post: 11-16-2006, 09:27 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