View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bdddd
 
Posts: n/a
Default How to use a range in SUMIF?

I'm trying to find a month-to-date total for each of several years. I used
the following formula:
=SUMIF(B3:B350,AND("="&K6,"<="&K2),L3:L350)
where B3:B350 are dates
K6 is the first of the month
K2 is Today
L3:L350 contain the amounts to total
The criteria give a "#Value!" error.

Any suggestions?