+ Reply to Thread
Results 1 to 3 of 3

How to get a cell to display the date of the first day of the month

  1. #1
    bugmenot
    Guest

    How to get a cell to display the date of the first day of the month

    I basically want a cell that displays the date of the first day of the month as a date cell.

    So today it would be 7/1/2009

    Thanks for the help

    Edit:
    After a search i found out this probably won't work because what I am trying to do is get the number of work days Month-to-Date. I was going to use networkdays but apparently it won't take a date field? Any help would be much appreciated
    Last edited by bugmenot; 07-22-2009 at 12:57 PM.

  2. #2
    Forum Contributor
    Join Date
    04-23-2009
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003 work, 2007 home
    Posts
    199

    Re: How to get a cell to display the date of the first day of the month

    if you have a list of dates and want to find the first day of a particular month eg date in cell A1 is 25-Feb-2008 use =DATE(YEAR(A1),MONTH(A1),1) in cell B1 (this will give you the first day of a particular month) and to get the number of workdays between A and B use =ABS(NETWORKDAYS(A1,B1)) in cell C1.

    will look something like the below

    13-Feb-09 01-Feb-09 10

  3. #3
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: How to get a cell to display the date of the first day of the month

    Assuming you mean the current date and usuing the US locale ..

    =DATEVALUE(MONTH(NOW())&"-01-" &YEAR(NOW()))
    Martin

+ 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