+ Reply to Thread
Results 1 to 4 of 4

Return months based on year

  1. #1
    Forum Contributor
    Join Date
    09-13-2013
    Location
    Saudi Arabia
    MS-Off Ver
    2010, 2013
    Posts
    192

    Return months based on year

    Hello again.

    I am looking for a formula where a user enter a year in Cell A1 and all the 12 months will be return beside.

    For Example:
    A1 = 2019 then B1 = 01-01-2019, C1 = 01-02-2019, D1 = 01-03-2019, etc...

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,624

    Re: Return months based on year

    Use the date function with a1 for the year and the column number for the month...
    Ben Van Johnson

  3. #3
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Bistrita, Romania
    MS-Off Ver
    2019; 365
    Posts
    231

    Re: Return months based on year

    What protonLeah probably means is put this in B1 and drag right to M1:
    =DATE($A1;COLUMN()-1;1)
    To show your appreciation
    Click ★ Add reputation!

  4. #4
    Forum Contributor
    Join Date
    09-13-2013
    Location
    Saudi Arabia
    MS-Off Ver
    2010, 2013
    Posts
    192

    Re: Return months based on year

    thanks for your help.

+ 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] Generate Months and Year Table based on Cell Drop down data
    By mchilapur in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-18-2020, 03:01 PM
  2. Year based on months and highest date in source data
    By Diphal in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-22-2017, 09:50 AM
  3. project figures for rest of this year based on last 18 months?
    By prometheusfox in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-25-2016, 10:14 AM
  4. [SOLVED] VBA Insert Current Month, Year and subsequent months/year for 15 months
    By MichiganWilliams in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2014, 03:49 PM
  5. Months in a year based on number of days
    By managingcrap in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-23-2014, 10:58 AM
  6. [SOLVED] Return 12 Months from Year End Date
    By PDBartlett in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-17-2014, 06:39 AM
  7. Possible to pull info based on months only and not year?
    By PowerSchoolDude in forum Excel General
    Replies: 2
    Last Post: 12-18-2009, 07:01 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