+ Reply to Thread
Results 1 to 3 of 3

This time last week, last month, last year.

  1. #1
    Forum Contributor
    Join Date
    05-05-2004
    MS-Off Ver
    Office 365
    Posts
    651

    This time last week, last month, last year.

    I assume that this is relatively easy but in searching the net I don’t see specifically what I am after so here it is.
    Col A1-A20000 contains the date.
    Col B1-B20000 contains DAILY information.

    Using this information I would:
    I would LIKE Col C to be this time last week.
    I would LIKE Col D to be this time last month.
    I would LIKE Col E to be this time last year.
    I would LIKE Col F to be the 2 year average.
    I would LIKE Col G to be the 5 year average.

    My thoughts on Col F and G would first require me to start a running 2 and 5 year average from the data in B correct? It won’t be dependent on the date. But rather the formula (which I don’t know) would find the LAST line in col F or G and use that as the #?

    -Ken

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,919

    Re: This time last week, last month, last year.

    In C1 copied down:

    =iferror(VLOOKUP((A1-7),A:B,2),"")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    05-05-2004
    MS-Off Ver
    Office 365
    Posts
    651

    Re: This time last week, last month, last year.

    Thanks very much this is a good start. Can anyone else help with the other requests please.

    -K

+ 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. Calculate Start & End Date & Month for Each Week In Fiscal Year
    By sarndt01 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-22-2014, 02:14 PM
  2. Return value of the last week of the month based on the year and month
    By stevekho2 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-14-2013, 11:04 AM
  3. Adding sort by week, month and year to existing formula
    By Throtmorton P. in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-22-2012, 06:41 AM
  4. how to insert month date year and day of week
    By Sachi Noma in forum Excel General
    Replies: 3
    Last Post: 05-18-2006, 10:10 PM
  5. how to insert month date year and day of week
    By Sachi Noma in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-18-2006, 10:10 PM
  6. Week/month/year rollovers with PivotTable
    By Rayo K in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-28-2005, 05:30 PM

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