+ Reply to Thread
Results 1 to 2 of 2

count number of days including weekend

  1. #1
    Registered User
    Join Date
    07-10-2006
    Posts
    22

    count number of days including weekend

    Hi there,

    Any one help me please?!

    I'm trying to find a suitable function to enable me to count number of days. The trouble is that it has to start on day 1 for example, 01/05/06 to 05/05/06 = 5 days or 01/05/06 to 08/05/06 = 8 days or 30/04/06 to 08/05/06 = 9 days However the execel does not seem to count what i want.

    I have tried this =a2-a1 function but will not get what i required as if i put the same date; 01/05/06 to 05/05/06, execel will count 4?!?!

    Can any one help me on this one?

    Lastly,I'm currently working update the project in my work, and I'm trying to set up that if a job has 'started' e.g rewire, central heating etc, in between 01/04/05 to 31/03/05 = "x" and if 01/04/06 to 31/03/06 = "y", if no work start then leave it blank.

    When I use this function,see below:
    =if(or(g10<a1,g10<a2),"x","y")

    (a1=01/04/05 a2=31/03/05)

    if no date has been input, the x or y will come up, is there a way of any dates input = x/y and no date leave it in blank?

    I would be grateful for you help.


    Craig

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Thumbs up

    Hello craig@help,

    Sorry if this is a bit late, but maybe if you had put your question in the Miscellaneous or General forum, someone may have replied before.

    The answer to your first question, if you take one date (A1) 01/05/06 away from another date (A2) 05/05/06

    =A2-A1, this equals 4, if you want to include all the dates your formula is

    =A2-A1+1 this equals 5

    With regard to your other question, when you say "if no date input", I'm assuming your referring to cell G10, if that is the case you formula is

    =IF(G10="","",IF(OR(G10<A1,G10<A2),"x","y"))

    Hope this helps, don't forget to post your next question in the right forum

    oldchippy

+ 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