+ Reply to Thread
Results 1 to 3 of 3

Counting between days

  1. #1
    Registered User
    Join Date
    07-24-2012
    Location
    Cincinnati
    MS-Off Ver
    Excel 2007
    Posts
    10

    Counting between days

    I have a column of days, Monday through Sunday for the last three years. In the column next to it I have a 0 to exlcude that day and a 1 to include that day. I need to be able to count the numbers using the column with 0 or 1 given a certain date range. An example would be 7/15/2010 to 8/15/2010 would be 31 actual days, but would only 20 open business days. Need to count the open business days, there are more then just the 7/1/2010 to 8/15/2010 ranges.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Counting between days

    Hi NissanX,

    Look at http://www.pivot-table.com/2010/03/0...-date-filters/

    It might be that 2010 excel has the "between" feature and 2007 doesn't. Time to upgrade? See if 2007 has this feature.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Counting between days

    You can use SUMIFs, e.g. if dates are in column A and 1/0 in B try

    =SUMIFS(B:B,A:A,">="&D2,A:A,"<="&D3)

    where D2 and D3 contains the start and end dates
    Audere est facere

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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