Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8608535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:38:13+00:00 2026-06-12T03:38:13+00:00

My work entails that I have to calculate 6 thru 18 months back from

  • 0

My work entails that I have to calculate 6 thru 18 months back from a specific date. I have 2 examples.
Example 1:
My work asks me to calculate refunds from our clients. These refunds can only be 18 months at a time and the last date of the refund period is the day the letter goes out to the client. So, If the refund letter is set to be sent on August 28, 2012, What is the first date of that period? Also, what if it were August 29, 30, and 31st(08/28/2012 – 08/31/2012). My calculation would say that all of these time periods have March 1st, 2011 as their start date. I use SAS as the program tool. Here is the function I used:

 eighteen_months = intnx('month',Visit_date,18,'sameday')+1;

The main assumption that I am making is 1 month is equal to the first date of the first month and the last date and that same month(01/01/2012 thru 01/31/2012). Subsequently, 3 months is equal to the first date of the first month and the last date of the 3rd month(01/01/2012 thru 03/31/2012 or 04/01/2012 thru 06/30/2012). Here are a couple of other 18 month Calculations:

                First Date           Last Date
                10/30/1999           4/29/2001
                 5/6/2006            11/5/2007
                4/30/2012           10/29/2013
                 4/3/2018            10/2/2019
                  2/24/2024          8/23/2025
                  5/10/2026          11/9/2027

The issue occurs in the case of my original example with August 28-31 where 18months can actually be 4 different time lengths.

Example 2:
My work also asks me to do the opposite where I have the first date and need figure out a 6 thru 18 month time period. I was recently asked what is 6 months if the first date is 06/22/2012? I responded with 12/21/2012 and was told that it is actually 12/22/2012. There is no real documentation/logic on how this is calculated in the company. Here is my function in SAS.

    Six_months = intnx('month',Visit_date,6,'sameday')-1;

I am trying to establish a process and wanted to see if anyone runs into these processes on a consistent basis and if there is any easier way in Excel/SAS. Any responses would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T03:38:14+00:00Added an answer on June 12, 2026 at 3:38 am

    To get the First Date from Last Date in Excel try this formula where Last Date is in B2

    =EDATE(B2,-18)+1

    That works for your 6 listed examples and also works to return 1st March 2011 from 28/29/30/31 August 2012

    EDATE function, as you might guess, can be used to add or subtract a number of months from a date, if the day doesn’t exist within that month, like 30th Feb, then it defaults to the last day of that month

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Work on C# Desktop project,I have an account on paypal ,From my desktop application
I work with SQL Server 2005. I have a start and end date. Ex:
I have a Java applet that streams video (MJPEG) from a server. I wrote
I am to work on a project that entails transfer of some critical information
I work with Cocos2d. This CocosDention not have the property that i need. Maybe
Work on ASP.NET Visual Studio 2008 C#. I have a page. From this page
I'm working on a project that entails photographing text (from any hard copy of
Work on asp.net vs05. I have three type of value Like:IsDesign,IsPrinting,IsInstall they are bit
Work on this small test application to learn threading/locking. I have the following code,
I work with unordered_set . Here it's written that it has a reserve function

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.