+ Reply to Thread
Results 1 to 4 of 4

Months and Week Days

  1. #1
    Forum Contributor
    Join Date
    06-20-2012
    Location
    Derby
    MS-Off Ver
    Excel 2010
    Posts
    381

    Months and Week Days

    Hi All,

    Need a bit of help with a formula for the attached.

    If I have a week that begins with the end of the month then I want a formula to show the following month.

    Or if 75% of a week is showing July for example, and the remaining 25% is showing June, then I need something that says July or a month number...

    Not sure where to start, can anyone help?
    Attached Files Attached Files

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Months and Week Days

    =IF(MONTH(A2+1)=MONTH(A2),A2,A2+1)

    (FORMATTED FOR "mmm")


    Are you trying to build a calendar?
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Contributor
    Join Date
    06-20-2012
    Location
    Derby
    MS-Off Ver
    Excel 2010
    Posts
    381

    Re: Months and Week Days

    I'm just doing some tests for a colleague, but that formula seems to have done the trick, thank you.

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Months and Week Days

    Alternatively, this will test for both conditions; end of month and first day of week

    =IF(AND(A2=EOMONTH(A2,0),WEEKDAY(A2,2)=1),A2+1,A2)

+ 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. convert Days to Years, Months, Days
    By Klaudebou in forum Excel General
    Replies: 4
    Last Post: 08-24-2014, 02:22 PM
  2. [SOLVED] calculate numbers of days elapsed a week, month or 6 months from now
    By labogola in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-01-2014, 09:14 AM
  3. Convert days -> Years, Months, Days, Hours, Minutes, Seconds
    By brharrii in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-06-2012, 06:44 PM
  4. Translate ~Number of days in a week to number of days across months
    By martin ridley in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-26-2008, 01:09 PM
  5. i have two days and i want the difference in days, months, year
    By maja in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-21-2006, 08:14 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