Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Confused
 
Posts: n/a
Default Add numbers between certain dates

I have dates in one colum and values in another colum. I want to add values
that are between Jan.1 to Jan. 31. How can I formulate this?

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Add numbers between certain dates

=SUMPRODUCT(--(MONTH(A2:A200)=1),B2:B200)

Note that SUMPRODUCT doesn't work with complete columns, you have to specify
a range.

If there could be multiple years data then use

=SUMPRODUCT(--(YEAR(A2:A200)=2006),--(MONTH(A2:A200)=1),B2:B200)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Confused" wrote in message
...
I have dates in one colum and values in another colum. I want to add

values
that are between Jan.1 to Jan. 31. How can I formulate this?



Reply
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
Prevent excel changing numbers data to dates. Cindax Excel Discussion (Misc queries) 2 February 28th 06 09:32 AM
reversing numbers to create dates Gilles Desjardins Excel Worksheet Functions 5 October 4th 05 11:33 PM
Calculate numbers between 2 dates Rajiv@Ivey Excel Discussion (Misc queries) 0 May 17th 05 06:25 PM
Converting Text months to sortable Numbers or Dates Greg Excel Discussion (Misc queries) 6 May 1st 05 03:32 AM
Dates to numbers John Excel Worksheet Functions 0 February 8th 05 11:45 AM


All times are GMT +1. The time now is 12:01 PM.

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

About Us

"It's about Microsoft Excel"