+ Reply to Thread
Results 1 to 6 of 6

Showing Fridays of each month in a 4 week month and a five week month

  1. #1
    Registered User
    Join Date
    04-25-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    10

    Showing Fridays of each month in a 4 week month and a five week month

    I am trying to display the Fridays of each month for a financial year.

    I have a worksheet that I made to show dates (Fridays) in Five columns for each month, and the fifth to show only if there is a fifth.
    Even though this part works, the following months do not show correctly as it is not adding the actual days that exist in a month, by ignoring the 31st day of the month in the addition to the date in the prior cell.
    So the following month is out by a day, and so on.

    Any ideas for a solution???

    Any help much appreciated, as I spent so much time looking for a solution!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Showing Fridays of each month in a 4 week month and a five week month

    Hello,

    I change your C8 on worksheet 1 to 6/8/12, and I see it is working fine. (June 8, 2012 is the first friday of June).
    Similarly, if I change C8 on worksheet 1 to 7/6/12, I see it is working just fine also (July 6, 2012 is the first friday of July).

    I also did a WEEKDAY on all of the day on your worksheet, and they are all Monday.
    (copy pasta from Ford)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools

    Regards,
    Lem

  3. #3
    Registered User
    Join Date
    04-25-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Showing Fridays of each month in a 4 week month and a five week month

    Yes! you are right about the Monday, I was a Whole month out! I am blind, need more sleep. Thanks a lot. The second sheet works perfectly now!

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,604

    Re: Showing Fridays of each month in a 4 week month and a five week month

    Have a look here:
    Attached Files Attached Files
    Ben Van Johnson

  5. #5
    Registered User
    Join Date
    04-25-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Showing Fridays of each month in a 4 week month and a five week month

    Thanks for the help On the second sheet if you change the first day to an actual Friday, Not the Monday that I had, It works!
    I just had the starting day wrong!

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

    Re: Showing Fridays of each month in a 4 week month and a five week month

    The formulas in the first sheet should be OK if you just change the formula for the 5th column.

    For G8 you could simply check the day (of the month) - if it's < 8 then it's in the next month and you don't want it to display, i.e. this formula in G8 copied down

    =IF(DAY(F8+7)<8,"",F8+7)
    Audere est facere

+ 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