+ Reply to Thread
Results 1 to 8 of 8

Date Formula - 1st,2nd & 3rd Sundays of each month

  1. #1
    lsmft
    Guest

    Date Formula - 1st,2nd & 3rd Sundays of each month

    I'd like to set up a sheet so that Column "A" would reflect the first Sundays' offerings of each month, Column "B" the second Sundays, "C" 3rd Sunday, etc.
    Cell "A-2" = 1st Sunday of Jan.
    Cell "B-2" = 2nd Sunday of Jan.
    Cell "A-3" = 1st Sunday of Feb. etc.
    Can this be done by formula or do I just need to do it manually.
    Thank you

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Assumes months in Col A

    Try

    =DATE(YEAR($A1),MONTH($A1),1)+MOD(8-WEEKDAY(DATE(YEAR($A1),MONTH($A1),1)),7)+INT(COLUMN(A1)-1)*7
    or does this link help

    http://www.excelforum.com/showthread.php?t=616380

    VBA Noob
    Last edited by VBA Noob; 11-01-2007 at 06:14 PM.
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    lsmft
    Guest
    Having some problems with it.
    1) should the whole sheet be formatted for date or for numbers?
    2) I'll be posting money amounts in the appropriate cells as the day comes up.
    3) Could be I'm not sure how to ask what I want or if what I want is what I need.
    Thanks anyway

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    See example

    VBA Noob
    Attached Files Attached Files

  5. #5
    lsmft
    Guest
    Thank you, I can work with this.
    This is THE answer I needed. All I have to do for the 5 Sunday weeks is click and drag and even I know how to do that.
    Thanks again for the help and patience.

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Good to hear.

    Can I remind you to use more descriptive titles in future to help make the site more searchable
    VBA Noob

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    This way will show 4 Sundays or 5 as appropriate - change year in B1 as required
    Attached Files Attached Files

  8. #8
    lsmft
    Guest
    Quote Originally Posted by daddylonglegs
    This way will show 4 Sundays or 5 as appropriate - change year in B1 as required
    Thank you,
    This will be a big help for me too.
    I do appreciate the help offered via this website as it has greatly benefited me todate. I even look over other's posts to see if I may learn from them.
    LOL )

+ 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