+ Reply to Thread
Results 1 to 5 of 5

Convert date from current month to first day of prior month

  1. #1
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,173

    Convert date from current month to first day of prior month

    I am trying to convert a date to the first day of the previous month. For example, in cell AY the value is 10/31/2010. The formula in cell AX2 is:

    Please Login or Register  to view this content.

    The resulting value from formula is 10/1/2010. I want it to convert to 9/1/2010. Thanks in advance for any comments.

    In summary:
    10/1/2010 converts to 9/1/2010
    10/5/2010 converts to 9/1/2010
    10/30/2010 converts to 9/1/2010
    ....and so on
    Last edited by maacmaac; 10-07-2010 at 12:23 PM.

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Convert date from current month to first day of prior month

    Try:

    Please Login or Register  to view this content.
    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    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: Convert date from current month to first day of prior month

    Or =EOMONTH(A1,-2)+1
    Entia non sunt multiplicanda sine necessitate

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

    Re: Convert date from current month to first day of prior month

    Try

    =AY2-DAY(AY2)-DAY(AY2-DAY(AY2))+1
    Audere est facere

  5. #5
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,173

    Re: Convert date from current month to first day of prior month

    Tried all three suggestions posted. All three worked. Thanks.

+ 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