View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ziggy Ziggy is offline
external usenet poster
 
Posts: 47
Default Why can't I use the MONTH function within the SUMIFS statement?

On Mar 28, 7:28*am, djhunt77
wrote:
I have a Detail worksheet with three named ranges: Category, DateOfService
and Amount.

I have a Summary worksheet where I am trying to summaries the amounts by
Category (represented by the rows) and Month (represented by the columns)..

Why do I get an error when I try to use this formula on the Summary sheet?

=SUMIFS(Amount,Category,A2,Month(DateOfService),1)

where A2 is the first row in the summary data.



Any chance that with "Category" and "A2" you are mixing text and
values? Or is your "DateOf Service" text?

Break it into single criteria and see where the problem is.

I use a formla just like that and it works fine.

Else Bob's SUMPRODUCT formula with the unary works fine.