+ Reply to Thread
Results 1 to 10 of 10

Counting Dates in a Range

Hybrid View

Guest Counting Dates in a Range 01-13-2006, 04:35 PM
Guest RE: Counting Dates in a Range 01-13-2006, 04:50 PM
Guest RE: Counting Dates in a Range 01-13-2006, 05:00 PM
Guest RE: Counting Dates in a Range 01-13-2006, 05:20 PM
Guest RE: Counting Dates in a Range 01-13-2006, 05:30 PM
  1. #1
    Matt7102
    Guest

    Counting Dates in a Range

    I seek help to find a formula to do the following:
    I have a range (P2:AB659) that is populated with dates entered 1/16/06
    format and displayed as 6-Jan format. I need to count the number of cells
    containing any date in January, any date in February, etc.

    TIA, Matt



  2. #2
    Sloth
    Guest

    RE: Counting Dates in a Range

    =SUMPRODUCT(--(MONTH(P2:AB659)=1)

    change the 1 to the month number you want to count (ie. Jan=1, Feb=2, Mar=3,
    etc.)

    "Matt7102" wrote:

    > I seek help to find a formula to do the following:
    > I have a range (P2:AB659) that is populated with dates entered 1/16/06
    > format and displayed as 6-Jan format. I need to count the number of cells
    > containing any date in January, any date in February, etc.
    >
    > TIA, Matt
    >
    >


  3. #3
    Bean123r
    Guest

    RE: Counting Dates in a Range

    What is the purpose/meaning of the double dash (--) in this formula?

    Thanks

    "Sloth" wrote:

    > =SUMPRODUCT(--(MONTH(P2:AB659)=1)
    >
    > change the 1 to the month number you want to count (ie. Jan=1, Feb=2, Mar=3,
    > etc.)
    >
    > "Matt7102" wrote:
    >
    > > I seek help to find a formula to do the following:
    > > I have a range (P2:AB659) that is populated with dates entered 1/16/06
    > > format and displayed as 6-Jan format. I need to count the number of cells
    > > containing any date in January, any date in February, etc.
    > >
    > > TIA, Matt
    > >
    > >


  4. #4
    Sloth
    Guest

    RE: Counting Dates in a Range

    It turns an array of logical terms into 1's and 0's. This way they can be
    summed (TRUE/FALSE is ignored when summing).

    Example:
    {TRUE,TRUE,FALSE,TRUE}->{1,1,0,1}

    NOTE: The formula is missing a close parenthesis and should be

    =SUMPRODUCT(--(MONTH(P2:AB659)=1))

    "Bean123r" wrote:

    > What is the purpose/meaning of the double dash (--) in this formula?
    >
    > Thanks
    >
    > "Sloth" wrote:
    >
    > > =SUMPRODUCT(--(MONTH(P2:AB659)=1)
    > >
    > > change the 1 to the month number you want to count (ie. Jan=1, Feb=2, Mar=3,
    > > etc.)
    > >
    > > "Matt7102" wrote:
    > >
    > > > I seek help to find a formula to do the following:
    > > > I have a range (P2:AB659) that is populated with dates entered 1/16/06
    > > > format and displayed as 6-Jan format. I need to count the number of cells
    > > > containing any date in January, any date in February, etc.
    > > >
    > > > TIA, Matt
    > > >
    > > >


  5. #5
    Matt7102
    Guest

    RE: Counting Dates in a Range

    Thanks for the help, and the short tutorial on explaining the formula
    function... however, using a smaller dataset to test, the formula does not
    return the correct result for January. Works fine for all other months.
    When I add a date in the range other than January to the test dataset, (or
    delete an existing) all is well for the month altered. January is just NOT
    working...any ideas?

    "Sloth" wrote:

    > It turns an array of logical terms into 1's and 0's. This way they can be
    > summed (TRUE/FALSE is ignored when summing).
    >
    > Example:
    > {TRUE,TRUE,FALSE,TRUE}->{1,1,0,1}
    >
    > NOTE: The formula is missing a close parenthesis and should be
    >
    > =SUMPRODUCT(--(MONTH(P2:AB659)=1))
    >
    > "Bean123r" wrote:
    >
    > > What is the purpose/meaning of the double dash (--) in this formula?
    > >
    > > Thanks
    > >
    > > "Sloth" wrote:
    > >
    > > > =SUMPRODUCT(--(MONTH(P2:AB659)=1)
    > > >
    > > > change the 1 to the month number you want to count (ie. Jan=1, Feb=2, Mar=3,
    > > > etc.)
    > > >
    > > > "Matt7102" wrote:
    > > >
    > > > > I seek help to find a formula to do the following:
    > > > > I have a range (P2:AB659) that is populated with dates entered 1/16/06
    > > > > format and displayed as 6-Jan format. I need to count the number of cells
    > > > > containing any date in January, any date in February, etc.
    > > > >
    > > > > TIA, Matt
    > > > >
    > > > >


  6. #6
    Sloth
    Guest

    RE: Counting Dates in a Range

    I have no idea why it wouldn't be working. I made a small list to test that
    worked fine. Can you show the list, formulas, and results? Is it giving an
    error, or the wrong value? What value does the formula produce? What value
    should it be?

    "Matt7102" wrote:

    > Thanks for the help, and the short tutorial on explaining the formula
    > function... however, using a smaller dataset to test, the formula does not
    > return the correct result for January. Works fine for all other months.
    > When I add a date in the range other than January to the test dataset, (or
    > delete an existing) all is well for the month altered. January is just NOT
    > working...any ideas?
    >
    > "Sloth" wrote:
    >
    > > It turns an array of logical terms into 1's and 0's. This way they can be
    > > summed (TRUE/FALSE is ignored when summing).
    > >
    > > Example:
    > > {TRUE,TRUE,FALSE,TRUE}->{1,1,0,1}
    > >
    > > NOTE: The formula is missing a close parenthesis and should be
    > >
    > > =SUMPRODUCT(--(MONTH(P2:AB659)=1))
    > >
    > > "Bean123r" wrote:
    > >
    > > > What is the purpose/meaning of the double dash (--) in this formula?
    > > >
    > > > Thanks
    > > >
    > > > "Sloth" wrote:
    > > >
    > > > > =SUMPRODUCT(--(MONTH(P2:AB659)=1)
    > > > >
    > > > > change the 1 to the month number you want to count (ie. Jan=1, Feb=2, Mar=3,
    > > > > etc.)
    > > > >
    > > > > "Matt7102" wrote:
    > > > >
    > > > > > I seek help to find a formula to do the following:
    > > > > > I have a range (P2:AB659) that is populated with dates entered 1/16/06
    > > > > > format and displayed as 6-Jan format. I need to count the number of cells
    > > > > > containing any date in January, any date in February, etc.
    > > > > >
    > > > > > TIA, Matt
    > > > > >
    > > > > >


+ 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