Closed Thread
Results 1 to 8 of 8

Automatically get next Friday's date

  1. #1
    Registered User
    Join Date
    06-09-2008
    Posts
    1

    Automatically get next Friday's date

    Blank Timesheet.xlsHi
    im trying to enter a date in to a time sheet for a friday so that any time the sheet is opened before a friday it will automatically insert the date for the coming friday, and when that date has passed and the sheet is re opened it will automatically insert the next fridays date in the week ending box.

    Any advise would be appreciated
    Last edited by VBA Noob; 06-18-2008 at 03:28 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try:

    =TODAY()-WEEKDAY(TODAY(),3)+IF(WEEKDAY(TODAY(),3)>4,11,4)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-17-2008
    Posts
    7
    Sorry to be a pain NBVC, can you possible give me a formula for Sunday every week?

    Thanks
    Ikflash

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Automatically get next Friday's date

    With these rules:
    If Today is NOT Sunday...return the upcoming Sunday.
    Otherwise, return: Today

    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  5. #5
    Registered User
    Join Date
    06-17-2008
    Posts
    7
    Thanks so much ron

  6. #6
    Registered User
    Join Date
    05-10-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Automatically get next Friday's date

    Hi,

    I'm doing a report that requires me to get the WE ending for every date i enter. ANd if not date is available, the next column would also be blank.

    eg. if i enter 5/10/2012 on cell A1, cell B1 will yield 5/13/2012.

    please help. thank you.

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Automatically get next Friday's date

    Hi and welcome to the forum

    This is a 4 years old Thread.

    According to the number 2 rule of the forum,...

    2. Don't post a question in the thread of another member -- start your own. If you feel it's particularly relevant, provide a link to the other thread.
    Pls, start a new,your own Thread and be sure that you will get your solution.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Automatically get next Friday's date

    Agree with Fotis.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

Closed 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