+ Reply to Thread
Results 1 to 7 of 7

Date manipulation

  1. #1
    Forum Contributor
    Join Date
    10-12-2018
    Location
    Leesburg, FL
    MS-Off Ver
    2013
    Posts
    113

    Date manipulation

    Is there a function that can help me do the following... Given a month/day/year return the first of the previous month. So, 1/22/2019 would become 12/1/2018

  2. #2
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    484

    Re: Date manipulation

    Try

    =EOMONTH(A1,-2)+1

  3. #3
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Date manipulation

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    with you date in A1.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  4. #4
    Forum Contributor
    Join Date
    10-12-2018
    Location
    Leesburg, FL
    MS-Off Ver
    2013
    Posts
    113

    Re: Date manipulation

    Quote Originally Posted by KOKOSEK View Post
    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    with you date in A1.
    KOKOSEK - Thank you!

  5. #5
    Forum Contributor
    Join Date
    10-12-2018
    Location
    Leesburg, FL
    MS-Off Ver
    2013
    Posts
    113

    Re: Date manipulation

    Quote Originally Posted by KOKOSEK View Post
    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    with you date in A1.
    Is this function available in VBA?

  6. #6
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Date manipulation

    in vba use

    Please Login or Register  to view this content.
    Last edited by Roel Jongman; 02-04-2019 at 04:21 PM. Reason: removed day(1). Day function is obsolete

  7. #7
    Forum Contributor
    Join Date
    10-12-2018
    Location
    Leesburg, FL
    MS-Off Ver
    2013
    Posts
    113

    Re: Date manipulation

    Quote Originally Posted by Roel Jongman View Post
    in vba use

    Please Login or Register  to view this content.
    Roel Jongman - That works! Thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] date manipulation
    By k1dr0ck in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-29-2018, 10:48 PM
  2. [SOLVED] Date and time manipulation
    By AlexMK in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-30-2016, 02:40 AM
  3. Date Format Manipulation
    By Zagra147 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-06-2009, 05:43 AM
  4. Date manipulation
    By elite_thut in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-19-2008, 03:20 AM
  5. [SOLVED] Date manipulation
    By Rick A in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-22-2006, 01:35 PM
  6. Macro Date Manipulation
    By DKY in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-27-2006, 03:45 PM
  7. [SOLVED] For better Performance in VBA for Excel - Strings manipulation OR Objects manipulation
    By vmegha in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2005, 08:20 PM

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