+ Reply to Thread
Results 1 to 6 of 6

Round to the First of the Month

  1. #1
    Registered User
    Join Date
    03-12-2015
    Location
    Los Angeles, CA
    MS-Off Ver
    2010
    Posts
    2

    Question Round to the First of the Month

    Hello Excel masters! I am trying to figure out how to round to the first of the next month UNLESS the date entered in A1 is already the first of the month.
    Example:
    A1 = 6/2/2015 I need B1 to = 7/1/2015
    A1 = 6/1/2015 I need B1 to = 6/1/2015

    I know how to get the first part but I can't figure out the second. I'm hoping one of you can!

    TIA!
    Last edited by calinini; 03-12-2015 at 01:38 PM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Round to the First of the Month

    This works

    =EOMONTH(A1,0)+NOT(DAY(A1)=1)

    UPDATE: Oops! No it doesn't.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Round to the First of the Month

    Try this instead

    =IF(DAY(A1)=1,A1,EOMONTH(A1,0)+1)

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Round to the First of the Month

    nevermind, misunderstood request.

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Round to the First of the Month

    or
    =EOMONTH(A1-1,0)+1
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  6. #6
    Registered User
    Join Date
    03-12-2015
    Location
    Los Angeles, CA
    MS-Off Ver
    2010
    Posts
    2

    Re: Round to the First of the Month

    PERFECT! Thank you soooo much!

+ 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. Replies: 2
    Last Post: 12-06-2014, 01:58 PM
  2. [SOLVED] How to round to nearest .01 and round down if thousands place is .005
    By dredre609 in forum Excel General
    Replies: 5
    Last Post: 09-29-2014, 11:47 AM
  3. Round up month
    By Edfermo in forum Excel General
    Replies: 2
    Last Post: 11-30-2005, 04:15 PM
  4. [SOLVED] Round date to first of month
    By Dominic in forum Excel General
    Replies: 3
    Last Post: 07-14-2005, 07:05 PM
  5. [SOLVED] How do I ROUND() round off decimals of a column dataset?
    By Højrup in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-12-2005, 07:06 AM

Tags for this Thread

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