+ Reply to Thread
Results 1 to 6 of 6

Formula. A1=January, B1=2012. How to get C1=first date of month, D1= last date of...

  1. #1
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Bristol, England
    MS-Off Ver
    Excel 2003
    Posts
    471

    Formula. A1=January, B1=2012. How to get C1=first date of month, D1= last date of...

    Hi
    Does anyone know a formula that would do the following:

    Lets say A1=January and B1=2012. How can I have formula in C1 and D1 so C1 would return first date of month (i.e. 01/01/2012) and D1 would return last date of the month (e.i. 31/01/2012.


    The dates would have to be in UK format i.e. dd/mm/yyyy


    Any help is greatly appreciated.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Formula. A1=January, B1=2012. How to get C1=first date of month, D1= last date of

    =--(A1&B1) and format as you like.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Bristol, England
    MS-Off Ver
    Excel 2003
    Posts
    471

    Re: Formula. A1=January, B1=2012. How to get C1=first date of month, D1= last date of

    Thanks shg
    =--(A1&B1) gives me the first date of the month. Much appreeciated.
    But now how to do the other one, how to populate in cell D1 the last date of the month i.e 31/01/2012


    Any ideas?

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Formula. A1=January, B1=2012. How to get C1=first date of month, D1= last date of

    =eomonth(c1, 0)

  5. #5
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Bristol, England
    MS-Off Ver
    Excel 2003
    Posts
    471

    Re: Formula. A1=January, B1=2012. How to get C1=first date of month, D1= last date of

    Thanks for the quick reply.
    =eomonth(c1, 0) leads up to error: #NAME?

    I'm using Excel 2003. By the looks of it 2003 does not support eomonth (http://www.pcreview.co.uk/forums/mis...-t1756997.html

    I can not install anything on work computers (system admins are pit overprotective with everything, I have gone down that route before with lo luck). There will be other users using this spreadsheet who are also on 2003.

    Any idea how to achieve the same without eomonth???
    Your help would be much appreciated. I could just use the start of date and chuck +30 days on it but I would rather get it dead on the money.

    Cheers

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Formula. A1=January, B1=2012. How to get C1=first date of month, D1= last date of

    Try Tools > Add-Ins, tick Analysis Toolpak

    Or =DATE(YEAR(C1), MONTH(C1) + 1, 0)
    Last edited by shg; 01-31-2012 at 08:54 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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