View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld Ron Rosenfeld is offline
external usenet poster
 
Posts: 5,651
Default IF Function Question

On Sun, 1 Mar 2009 18:27:01 -0800, MiJa wrote:

I have two columns: A is Date (format 1-Jan, 14-Feb, 6-Mar, etc.) and B is
Amount ($). I want to search column A and if it contains Jan, I want to sum
the amounts in Column B. How do I accomplish this?


Do you want to sum ALL January dates, or only those for a specified year?

For just the January's of 2009, something like:

=sumif(a:a,"="&date(2009,1,1),b:b) - sumif(a:a,""&date(2009,1,31),b:b)

--ron