+ Reply to Thread
Results 1 to 6 of 6

Date formula

  1. #1
    Registered User
    Join Date
    06-24-2009
    Location
    Milpitas, California
    MS-Off Ver
    Excel 2003
    Posts
    2

    Question Date formula

    I need a formula that will roll any date back to the first of that month and year.

    For example: need 06/24/09 changed to 06/01/09.

    Does anyone have any hints?

    Thanks!
    OhForealzzz

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

    re: Date formula

    If you have a date in A1 this formula will give the 1st of that month

    =A1-DAY(A1)+1

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    re: Date formula

    =Date(Year(A1),Month(A1),1)

    will do it.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    06-24-2009
    Location
    Milpitas, California
    MS-Off Ver
    Excel 2003
    Posts
    2

    re: Date formula

    wow. So simple.. I was using IF's and AND's and TEXT's formulas. you guys rock.

    Thanks!

  5. #5
    Registered User
    Join Date
    06-24-2009
    Location
    San Jose, CA
    MS-Off Ver
    Excel 2003
    Posts
    1

    re: Date formula

    duh!
    =A1-DAY(A1)+1

  6. #6
    Registered User
    Join Date
    06-09-2009
    Location
    UAE
    MS-Off Ver
    Excel 2013
    Posts
    20

    Re: Date formula

    try this formula as per attached example spreadsheet.

    Hopefully, your question can be solved.

    Regards

    David
    Attached Files Attached Files

+ 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