+ Reply to Thread
Results 1 to 12 of 12

date and workday function

  1. #1
    Registered User
    Join Date
    09-13-2015
    Location
    Mother Base
    MS-Off Ver
    2010
    Posts
    8

    date and workday function

    For the date, assume that - although payments are due the end of each month - they are actually made on the first workday of each month (disregarding federal holidays).

    so if i use the today() on a cell and then using that today, i want to generate the the payment day on this first of the next month. so for example, today is 9/13/2015, i want to generate the payment date on 10/1/2015 and then on the first for every month after october; 11, 12, 1, etc.

    is there a way to do this without using the eomonth function?

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

    Re: date and workday function

    A1 =Today()
    then somewhere else:
    =DATE(YEAR(A1),MONTH(A1)+1,1)
    Ben Van Johnson

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: date and workday function

    Or just this...
    =EOMONTH(A1,0)+1
    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
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    09-13-2015
    Location
    Mother Base
    MS-Off Ver
    2010
    Posts
    8

    Re: date and workday function

    needs to be the 1st workday of the month, the 1st of the month is not necessary the work date

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: date and workday function

    This got ugly, but It works....
    =EOMONTH(A3,0)+1+IF(WEEKDAY(EOMONTH(A3,0)+1,2)>5,8-WEEKDAY(EOMONTH(A3,0)+1,2),0)
    or....
    =EOMONTH(A3,0)+IF(WEEKDAY(EOMONTH(A3,0)+1,2)>5,9-WEEKDAY(EOMONTH(A3,0)+1,2),1)

  6. #6
    Registered User
    Join Date
    09-13-2015
    Location
    Mother Base
    MS-Off Ver
    2010
    Posts
    8

    Re: date and workday function

    i found this function / formula on the net = =WORKDAY(J9-DAY(J9),1) this works perfectly but does anyone know how to drag this formula down to any number of cells? say i want to know the 1st working date of the next 5 months.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: date and workday function

    Did you try my suggestion?

  8. #8
    Registered User
    Join Date
    09-13-2015
    Location
    Mother Base
    MS-Off Ver
    2010
    Posts
    8

    Re: date and workday function

    Quote Originally Posted by FDibbins View Post
    Did you try my suggestion?
    yes it did work but my class did not cover that stuff, only things that have been covered so far is date and workdate functions.

  9. #9
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: date and workday function

    Maybe:

    =WORKDAY(A1+32-DAY(A1+32),1)
    Quang PT

  10. #10
    Registered User
    Join Date
    09-13-2015
    Location
    Mother Base
    MS-Off Ver
    2010
    Posts
    8

    Re: date and workday function

    Quote Originally Posted by bebo021999 View Post
    Maybe:

    =WORKDAY(A1+32-DAY(A1+32),1)
    that works except for some reason jan 1 shows up has a working day.

    but i really want to thank you, this is maybe as close as i will ever get

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: date and workday function

    So this is a homework assignment?

  12. #12
    Registered User
    Join Date
    09-13-2015
    Location
    Mother Base
    MS-Off Ver
    2010
    Posts
    8

    Re: date and workday function

    Yes it is an assignment. The professor will release the solutions later I will post it up.

+ 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. Replies: 10
    Last Post: 02-29-2024, 08:55 AM
  2. [SOLVED] need help to lookup a (workday) date, and then excel output to show that date minus 1
    By Marijke in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-23-2013, 11:13 AM
  3. WORKDAY function returning Saturday date
    By mmorris11 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-28-2013, 09:49 AM
  4. Workday.INTL or Workday function issue
    By junoon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-17-2013, 03:14 PM
  5. Workday Function Retursn Wrong Date
    By goss in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-04-2013, 02:33 PM
  6. [SOLVED] workday function --> calculate START date
    By kaaver in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-11-2010, 11:31 AM
  7. workday date function
    By sjayar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-11-2005, 01:20 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