+ Reply to Thread
Results 1 to 3 of 3

Sequence of 12 months shifting 1 month ahead each month

  1. #1
    Registered User
    Join Date
    01-12-2022
    Location
    Oslo, Norway
    MS-Off Ver
    365
    Posts
    5

    Sequence of 12 months shifting 1 month ahead each month

    Hi, I think its a bit diffucult to explain the problem in the title so please take a look at the attached file.

    The background story is that I want to make a forecast for expiring gift cards, which have a runtime for 12 months.

    I was wondering if its possible to have a formula that can fill in the numbers for me from jan 22 to dec 23, so I dont need to copy and paste the numbers as I have done in the file.

    Appreciate any help!
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,811

    Re: Sequence of 12 months shifting 1 month ahead each month

    You can use this formula in D3:

    =IF(AND($A3<=D$1,$A3+365>D$1),$B3,"")

    although you may need to use semicolons ( ; ) instead of commas ( , ) depending on your regional settings, then you can copy across and down as required.

    Hope this helps.

    Pete

  3. #3
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Sequence of 12 months shifting 1 month ahead each month

    Please try in D3 and copy across and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by HansDouwe; 10-29-2022 at 07:59 PM.

+ 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. Replies: 16
    Last Post: 11-23-2019, 01:41 PM
  2. Vba to filter current month, prior month, two months ago and three months ago
    By M7A0S8T8E5R in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2019, 06:56 PM
  3. Autosum every three months based on month selected - Show three month trend
    By whatever 2233 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-04-2018, 07:43 PM
  4. Month on Month for several destinations AND several months
    By tryingtoexcelatexcel in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 05-14-2017, 09:19 PM
  5. 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
  6. Replies: 1
    Last Post: 11-22-2011, 08:11 AM
  7. Replies: 5
    Last Post: 06-21-2011, 09:10 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