Results 1 to 25 of 25

How many days left in the current month

Threaded View

  1. #16
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: How many days left in the current month

    if i understand your requirement correctly, you would like to know the total number of workdays left in a month, considering that you work Monday through Saturday. if i have got that right, then try the following - inspired by @daddylonglegs:

    put today's date (using CTRL+; or TODAY() function) or any other date in cell A1, then put this formula in B1 to get remaining workdays:

    =SUM(INT((WEEKDAY(A1-{2,3,4,5,6,7})+(EOMONTH(A1,0)-A1))/7))
    for total workdays within that month - since the beginning of the month, try this in C1:

    =SUM(INT((WEEKDAY(A1-{2,3,4,5,6,7})+DAY(EOMONTH(A1,0)))/7))
    these will work only if you have Analysis Toolpak installed.

    the array {2,3,4,5,6,7} stands for Monday through Saturday.



    EDIT:

    in case someone wants to use these without dependency on other cells:

    =SUM(INT((WEEKDAY(TODAY()-{2,3,4,5,6,7})+(EOMONTH(TODAY(),0)-TODAY()))/7))
    =SUM(INT((WEEKDAY(TODAY()-{2,3,4,5,6,7})+DAY(EOMONTH(TODAY(),0)))/7))
    Last edited by icestationzbra; 11-10-2012 at 11:36 AM. Reason: add'l info
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

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