Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Could anybody tell me how to add values based on dates.

I want to get the sum of a particular month E.G. 1 Jan 07 to 31 Jan 07 from 6
months data?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Could anybody tell me how to add values based on dates.

Assuming there is only January for ONE year then try:

=SUMPRODUCT(--(MONTH(A1:A100)=1)*(B1:B100))

Where A1:A100 are your dates (cells formatted as DATE) and B1:B100 is the
data to be summated.

If there are multiple years:

=SUMPRODUCT(--(MONTH(A1:A100)=1),--(YEAR(A1:A100)=2007)*(B1:B100))


HTH

"Muhammad Nazim uddin" wrote:

I want to get the sum of a particular month E.G. 1 Jan 07 to 31 Jan 07 from 6
months data?

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
Format cell color based on multiple cell values Zenaida Excel Discussion (Misc queries) 3 May 9th 06 11:56 PM
line graph-need to pick up dates as values for the x axis? mountainair Charts and Charting in Excel 2 November 23rd 05 09:02 PM
How to dates column with values in next column Carlton A. Barlow Excel Discussion (Misc queries) 1 April 18th 05 04:28 AM
FILL DATES IN VARIOUS CELLS BASED ON A DATE ENTERED IN A SINGLE C. dencrowell Excel Discussion (Misc queries) 1 April 14th 05 04:11 AM
If I have X,Y data how do I sum the Y values using a set of bins based on x values ScottBerger Excel Worksheet Functions 1 November 16th 04 11:48 PM


All times are GMT +1. The time now is 09:19 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"