+ Reply to Thread
Results 1 to 2 of 2

Macro or Formula to create Date range by getting input of month and year

  1. #1
    Registered User
    Join Date
    06-18-2013
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    16

    Macro or Formula to create Date range by getting input of month and year

    Hi All,

    I just come in a very difficult situation where i need to generate dynamic date ranges in excel to fetch data. I need date ranges generate automatically for month of perticular year. I have searched at many places but can not find out any solution I am attaching and excel sheet giving hypothetical example of what exectly i need

    When i give in put like January in one cell and 2013 in another cell it should generate ranges like

    Jan Week 1 (Jan 1 - Jan 4)
    Jan Week 2 (Jan 7 - Jan 11)
    Jan Week 3 (Jan 14 - Jan 18)
    Jan Week 4 (Jan21 - Jan 25)
    Jan Week 5 (Jan 28 - Jan 31)


    and



    2013-01-01 and 2013-01-05
    2013-01-07 and 2013-01-12
    2013-01-14 and 2013-01-19
    2013-01-21 and 2013-01-26
    2013-01-28 and 2013-01-31


    You can create macro or formula anything which is possible. I have also attached excel sheet..

    Thanks in advance,
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Macro or Formula to create Date range by getting input of month and year

    Hi,

    This should get you on your way

    Please Login or Register  to view this content.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

+ 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] Create Fiscal Year - Lookup Date in Fiscal Month Date Range and Return EOM Date
    By gbriscoe in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-25-2013, 03:29 PM
  2. [SOLVED] Function to Display Input Box, Retrieve Date, and Return Day, Month And Year
    By Authentik8 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2012, 08:04 AM
  3. Take user input start date and end date. Create a column for each month between these
    By TheCyrusVirus in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-07-2010, 11:46 AM
  4. formula for prior month & year of a month end date.
    By mikeburg in forum Excel General
    Replies: 2
    Last Post: 09-25-2007, 04:01 PM
  5. [SOLVED] Macro to create files based on month/year
    By Jon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-14-2005, 04:25 PM

Tags for this Thread

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