+ Reply to Thread
Results 1 to 5 of 5

Exclude Sundays between two dates

  1. #1
    Registered User
    Join Date
    11-03-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    29

    Exclude Sundays between two dates

    Hi,

    I have sheet with three dates columns, column A="Date in", Column B="Date cleared" and Column C ="Date out"
    I need to work out how many days there are between "Date in" & "Date out" then times the number by $10, I need to exclude Sundays though in the count between the two dates, then what I also need is if there is a date entered into the "Date Cleared" column excel should ignore the "Date In" and instead work out how many days between "Date Cleared and "Date out" also excluding Sundays. Is there a formula that can do this or will this have to be done in VBA?

    Thanks in advance.
    Attached Files Attached Files
    Last edited by buffalobill; 03-27-2010 at 02:36 AM.

  2. #2
    Registered User
    Join Date
    03-26-2010
    Location
    U.S.A.
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Exclude Sundays between two dates

    Download this file and copy the "Pages" and "Calculations" sheets to your workbook (or just use this workbook).
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-03-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: Exclude Sundays between two dates

    Thank you, this works perfectly. Much appreciated. I would never in a million years have been able to figure that one out.

    thanks again.

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Exclude Sundays between two dates

    This might be a little easier

    If the dates are inclusive ie 01/03/2010 to 02/03/2010 = 2 days

    In H2
    Please Login or Register  to view this content.
    Fill down

    If not ie 01/03/2010 to 02/03/2010 = 1 day

    Please Login or Register  to view this content.
    Your original sheet is ambiguous
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-03-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: Exclude Sundays between two dates

    Thank you, that is a lot easier, I will try that instead.

+ 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