Consulting

Results 1 to 10 of 10

Thread: Solved: Counting weekdays

  1. #1
    VBAX Tutor
    Joined
    Sep 2007
    Posts
    265
    Location

    Solved: Counting weekdays

    Hi guys

    please help me to count how many weekdays between start date to end date.

    please find attached for your reference.

    Many thanks in advance

  2. #2
    VBAX Contributor
    Joined
    May 2010
    Location
    Sydney, NSW, Australia
    Posts
    170
    Location
    =NETWORKDAYS(A1,A2)

    Where A1 and A2 are the start and end days

  3. #3
    VBAX Tutor
    Joined
    Sep 2007
    Posts
    265
    Location
    Thanks Dan, appreciate your help.

    However, I want to counting the weekdays with public holidays.

  4. #4
    VBAX Contributor
    Joined
    May 2010
    Location
    Sydney, NSW, Australia
    Posts
    170
    Location
    Then put the dates of the public holidays in as a parameter:






    1/01/2010


    10/01/2010


    5


    =NETWORKDAYS(G12,G13,"6/1/2010")

  5. #5
    VBAX Tutor
    Joined
    Sep 2007
    Posts
    265
    Location
    Yes I did. please take a look on the above attachment.

    Its courious some of formula is doesn't work. Pls advice

  6. #6
    VBAX Contributor
    Joined
    May 2010
    Location
    Sydney, NSW, Australia
    Posts
    170
    Location
    The immediate issue I see is the dates you listed as public holidays, you have the 24th and 25th Dec 2010 but the 24th is a work day and the 25th is a Saturday, the correct public holidays (at least in Aus, not sure about elsewhere) are the 27th and 28th

  7. #7
    VBAX Tutor
    Joined
    Sep 2007
    Posts
    265
    Location
    Hi Dan

    I don't thing so, 24 & 25 are public holidays in here.
    Can you advise, why my formula at J43, J48 and J49 doesn't work.

    Thanks so much

  8. #8
    VBAX Tutor
    Joined
    Sep 2007
    Posts
    265
    Location
    Hi Dan

    Thanks for assistance.
    I end up with reformat the dates.

    Once again thank you and have a nice day

  9. #9
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Try

    =LOOKUP(2,1/A2:H2,A2:H2)

    in J2 and copy down
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  10. #10
    VBAX Tutor
    Joined
    Sep 2007
    Posts
    265
    Location
    Thanks bob for amazing solution. Its like magic for me.

    Eventhought, I don't know how to figure out your formula.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •