Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default sumtotal as per date range

How to sum up the total of a particular column according to date range. For
example all data for the month of Jan 2006. Below is sample worksheet.

A B C
Date Item Amount
01/01/06 xxxxxxxx 100.00
01/08/06 yyyyyyyy 200.00
01/15/06 zzzzzzzz 150.00
01/22/06 mmmm 250.00
01/27/06 nnnnnnn 150.00
02/01/06 ddddddd 225.00
02/08/06 cccccccc 275.00
03/04/06 aaaaaaa 225.00
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default sumtotal as per date range

=SUMPRODUCT(--(YEAR(A2:A200)=2006),--(MONTH(A2:A200)=1),C2:C200)

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"John Abetong" wrote in message
...
How to sum up the total of a particular column according to date range.

For
example all data for the month of Jan 2006. Below is sample worksheet.

A B C
Date Item Amount
01/01/06 xxxxxxxx 100.00
01/08/06 yyyyyyyy 200.00
01/15/06 zzzzzzzz 150.00
01/22/06 mmmm 250.00
01/27/06 nnnnnnn 150.00
02/01/06 ddddddd 225.00
02/08/06 cccccccc 275.00
03/04/06 aaaaaaa 225.00



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default sumtotal as per date range

Bob,

The function below is EXCELLENT.

What if I will sumproduct for a particular item only in Column B?

"Bob Phillips" wrote:

=SUMPRODUCT(--(YEAR(A2:A200)=2006),--(MONTH(A2:A200)=1),C2:C200)

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"John Abetong" wrote in message
...
How to sum up the total of a particular column according to date range.

For
example all data for the month of Jan 2006. Below is sample worksheet.

A B C
Date Item Amount
01/01/06 xxxxxxxx 100.00
01/08/06 yyyyyyyy 200.00
01/15/06 zzzzzzzz 150.00
01/22/06 mmmm 250.00
01/27/06 nnnnnnn 150.00
02/01/06 ddddddd 225.00
02/08/06 cccccccc 275.00
03/04/06 aaaaaaa 225.00




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default sumtotal as per date range

Just keep adding your requirements:

=SUMPRODUCT(--(YEAR(A2:A200)=2006),--(MONTH(A2:A200)=1),
--(b2:b200="something"),C2:C200)

or

=SUMPRODUCT(--(text(a2:a200,"yyyymm")="200601"),--(b2:b200="something"),C2:C200)

John Abetong wrote:

Bob,

The function below is EXCELLENT.

What if I will sumproduct for a particular item only in Column B?

"Bob Phillips" wrote:

=SUMPRODUCT(--(YEAR(A2:A200)=2006),--(MONTH(A2:A200)=1),C2:C200)

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"John Abetong" wrote in message
...
How to sum up the total of a particular column according to date range.

For
example all data for the month of Jan 2006. Below is sample worksheet.

A B C
Date Item Amount
01/01/06 xxxxxxxx 100.00
01/08/06 yyyyyyyy 200.00
01/15/06 zzzzzzzz 150.00
01/22/06 mmmm 250.00
01/27/06 nnnnnnn 150.00
02/01/06 ddddddd 225.00
02/08/06 cccccccc 275.00
03/04/06 aaaaaaa 225.00





--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default sumtotal as per date range

=SUMPRODUCT(--(YEAR(A2:A200)=2006),--(MONTH(A2:A200)=1),--(B2:B200="item_val
ue"),C2:C200)

if the item is numeric, drop the quotation marks.


--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"John Abetong" wrote in message
...
Bob,

The function below is EXCELLENT.

What if I will sumproduct for a particular item only in Column B?

"Bob Phillips" wrote:

=SUMPRODUCT(--(YEAR(A2:A200)=2006),--(MONTH(A2:A200)=1),C2:C200)

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"John Abetong" wrote in message
...
How to sum up the total of a particular column according to date

range.
For
example all data for the month of Jan 2006. Below is sample worksheet.

A B C
Date Item Amount
01/01/06 xxxxxxxx 100.00
01/08/06 yyyyyyyy 200.00
01/15/06 zzzzzzzz 150.00
01/22/06 mmmm 250.00
01/27/06 nnnnnnn 150.00
02/01/06 ddddddd 225.00
02/08/06 cccccccc 275.00
03/04/06 aaaaaaa 225.00






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
finding earliest date within a range by employee Steve Excel Worksheet Functions 4 October 19th 06 11:34 PM
Advanced filter a dynamic date range oneandoneis2 Excel Worksheet Functions 2 April 6th 06 08:57 AM
Crate group of date, with Dynamic Range in pivot table not working Tiya Excel Discussion (Misc queries) 3 March 1st 06 02:26 PM
Date Range within one cell Cachod1 New Users to Excel 5 October 18th 05 03:30 AM
Date Range and calculation vgreen Excel Worksheet Functions 2 August 23rd 05 11:08 AM


All times are GMT +1. The time now is 06:01 AM.

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

About Us

"It's about Microsoft Excel"