+ Reply to Thread
Results 1 to 3 of 3

Subtract a date for the first of the month

  1. #1
    Registered User
    Join Date
    06-07-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010, Excel 2007
    Posts
    57

    Subtract a date for the first of the month

    Hello All, I'm trying to figure out formula to for instance: 3/07/2012 from 3/1/2012. I want to use formula since I have to copy down 400 plus rows.

    I'm using the NETWORKDAYS function. but EOMONTH(3/07/2012,0)+1 give me 4/1/2012.

    the number of workdays from the first of the month for a given date


    Any suggest will be appreciated.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Subtract a date for the first of the month

    Try using EOMONTH with -1, so if you have a date in A2 you can get the number of workdays between the start of that month and A2 with this formula

    =NETWORKDAYS(EOMONTH(A2,-1)+1,A2)

    or you can use this version

    =NETWORKDAYS(A2-DAY(A2)+1,A2)
    Audere est facere

  3. #3
    Registered User
    Join Date
    06-07-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010, Excel 2007
    Posts
    57

    Re: Subtract a date for the first of the month

    I got it EOMONTH(03/072012, -1)+1 give me 03/01/2012

    ---------- Post added at 03:14 PM ---------- Previous post was at 03:13 PM ----------

    Thanks daddylonglegs

+ 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