View Single Post
  #4  
Old April 24th, 2010, 07:58 PM posted to microsoft.public.excel.worksheet.functions
gooders
external usenet poster
 
Posts: 7
Default Sumproduct with mixed data?

Thanks for your response but the formula isn't working for me. In the Text
formula it returns a value of 0 which is incorrect as there are definitely
Mar2010 dates.

In the other solution I get a #value error.

Thanks guys

"T. Valko" wrote:

One way...

=SUMPRODUCT(--(TEXT('C:\Users\[monitor.xls]Adjusting
Output'!$A$3:$A$10001,"mmmyyyy")="Mar2010"))

--
Biff
Microsoft Excel MVP


"gooders" wrote in message
...
Hi, I have a column that is predominately filled with dates i.e.
1/12/2010;
16/4/2010 etc, and my formula below counted the number of rows based upon
the
month and year of these dates, this worked well until now. Some fields
within
the column now have text instead of a date and this has now messed up my
formula which returns a #value error. Any assistance you can give would
be
greately appreciated.

Thanking you in advance.

=SUMPRODUCT(N(MONTH('C:\Users\[monitor.xls]Adjusting
Output'!$A$3:$A$10001)=3),N(YEAR('C:\Users\[monitor.xls]Adjusting
Output'!$A$3:$A$10001)=2010))



.