LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Report Post  
Posted to microsoft.public.excel.misc
Matt7102
 
Posts: n/a
Default Counting Dates in a Range

Thanks for the assistance, it now works without error. Hope I can pass along
similar help someday!

Matt

"Sloth" wrote:

Good problem solving, I didn't realise you had blank cells. Try these
formulas.

=SUMPRODUCT(--(MONTH(range)=1),1-(ISBLANK(range)))
or
=SUMPRODUCT(--(MONTH(range)=1),--(ISNUMBER(range)))

"Matt7102" wrote:

I just figured out that the cell range is 130 cells, and entering any date
reduces the <blank cell count by one- Jan formula is counting blank cells
perhaps?

"Sloth" wrote:

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




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
How do I count in a range of dates? nancy Excel Worksheet Functions 2 November 23rd 05 11:03 AM
Counting the number of dates? aaronwexler New Users to Excel 5 September 1st 05 11:26 PM
Finding Dates in a date range Marcus Excel Discussion (Misc queries) 1 April 5th 05 01:51 AM
How to Calculate Dates without counting the weekends Lillian F Excel Worksheet Functions 9 January 24th 05 09:09 AM


All times are GMT +1. The time now is 11:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"