+ Reply to Thread
Results 1 to 5 of 5

Find Fourth Saturday and Fifth Saturday of the month

  1. #1
    Forum Contributor
    Join Date
    12-18-2019
    Location
    chennai
    MS-Off Ver
    excel 2010
    Posts
    141

    Post Find Fourth Saturday and Fifth Saturday of the month

    Hi Seeking someone help to create VBA Code for the below.

    I have dates in one column, (Column A) i need to update month in next column. (Column B)

    Month is not exact date of column A. If the date before fourth Saturday of the month, then that month to be updated.

    If the date is after Fourth Saturday of the month then next month to be updated.

    There is another condition Regular month its Fourth Saturday, whereas Quarter its Fifth Saturday.

    Example
    Jan- 4th Saturday
    Feb-4th Saturday
    Mar-5th Saturday
    Apr- 4th Saturday
    May-4th Saturday
    Jun-5th Saturday
    Jul- 4th Saturday
    Aug-4th Saturday
    Sep-5th Saturday
    Oct 4th Saturday
    Nov-4th Saturday
    Dec-5th Saturday

    I am manually doing this its taking more time, it will will helpful if someone help me for VBA Code for this.

  2. #2
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: Find Fourth Saturday and Fifth Saturday of the month

    Hey ayyappan80,

    Does the below code do what you need ?

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    12-18-2019
    Location
    chennai
    MS-Off Ver
    excel 2010
    Posts
    141

    Re: Find Fourth Saturday and Fifth Saturday of the month

    Hi Nankw83

    Thanks for your code. Yes its exactly as expected.
    currently on output month coming in number format, can you please make it "MM" "YY".
    And date column is fixed in A1, instead can you change to selection of column. (Column to be inserted in right side of date column selected)

  4. #4
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: Find Fourth Saturday and Fifth Saturday of the month

    I have updated the code to cater for your additional requirements. I am not sure about the number format you want to show but you can change it in the below code I have commented

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    12-18-2019
    Location
    chennai
    MS-Off Ver
    excel 2010
    Posts
    141

    Re: Find Fourth Saturday and Fifth Saturday of the month

    Exactly working as expected. Thank you so much for your support

+ 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. Calculating 3rd saturday of the any month
    By S.Daniel in forum Excel General
    Replies: 8
    Last Post: 08-23-2016, 11:23 PM
  2. [SOLVED] first saturday in a month
    By Barry in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-07-2016, 02:59 PM
  3. [SOLVED] Every Saturday and 2nd Sunday of each month
    By Titan27 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-20-2016, 09:56 PM
  4. first day of the month is saturday, sunday or else ?
    By Ramo13541 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-27-2016, 07:16 PM
  5. [SOLVED] Check If Today is Saturday. If Saturday, Execute Macro
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-06-2014, 09:07 AM
  6. Show Saturday Dates when Month selected from DV list
    By scottylad2 in forum Excel General
    Replies: 6
    Last Post: 12-01-2010, 04:35 PM
  7. Replies: 11
    Last Post: 09-19-2005, 08:15 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