+ Reply to Thread
Results 1 to 3 of 3

Dates - countdown from last day of previous month

  1. #1
    Forum Contributor
    Join Date
    05-26-2004
    Location
    Halifax, UK
    MS-Off Ver
    Office 365 v2402
    Posts
    263

    Dates - countdown from last day of previous month

    Okay so I need help with a way of identifying what the previous month was to a given date, then in sequential columns counting down a day at a time for 65 days (don't ask!)

    For example: in cell A1 I have a reference date which is, for the sake of argument, 15/04/2012 (dd/mm/yyyy format).

    I need a way to tell Excel to identify the previous month, then start the date on the LAST DAY of that month, then for each further column subtract one more day.

    So if A1 is 15/04/2012 then in B1 I would have 31/03/2012, C1 would be 30/03/2012, D1 would be 29/03/2012 etc

    It can't be a function that relies on add-ins etc but all PCs it will run on will have Excel 2007 or above.

    Thanks!
    Last edited by TheRobsterUK; 03-10-2014 at 11:57 AM.

  2. #2
    Forum Contributor
    Join Date
    05-26-2004
    Location
    Halifax, UK
    MS-Off Ver
    Office 365 v2402
    Posts
    263

    Re: Dates - countdown from last day of previous month

    Okay so I think I've answered my own question here and as usual the solution is simple when you know how!

    A1 is 15/04/2012 so if in B1 I put:

    =A1-DAY(A1)

    it returns the last day of the previous month, i.e. 31/03/2012. Then for ever other day I want I just do B1-1, C1-1, D1-1 etc.

  3. #3
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Dates - countdown from last day of previous month

    good on you for finding a very nice solution.

    i recently upgraded to 2010, and i don't exactly remember if EOMONTH is a part of the 2007 Analysis Toolpak Add-in or not; but you can give it a shot, if you want.

    if date is in A1, put this in B1, and drag-fill right until you see "-".

    Please Login or Register  to view this content.
    1300
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

+ 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] Assigning Dates to the Previous Month
    By mtndewgradon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-09-2014, 04:11 PM
  2. Macro using vlookups comparing 2 months paysheet(previous month and current month)
    By srinivasan1965 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-07-2012, 03:45 AM
  3. Replies: 4
    Last Post: 03-19-2012, 08:58 AM
  4. [SOLVED] Count dates for previous month
    By scribbler1382@yahoo.com in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-30-2006, 03:45 PM
  5. countdown dates by month
    By shopaholic in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-28-2005, 02:50 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