Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
DP7 DP7 is offline
external usenet poster
 
Posts: 54
Default Sum based on ranges pivot table?

I have a column that contains dates & quantities I would like to sum based on
date ranges that I would define. For example I would want the sum quantities
whose dates fall in-between Nov. 11 & Nov 17. Nov. 18 & 24€¦.. So on & so
forth. I have been trying to figure out a way to do this with maybe a v
lookup or pivot table. However I have not been able to do so. If anyone has
any ideas as to how I can do what I want to do I would be very grateful.
Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Sum based on ranges pivot table?

The usual way of getting a range of dates is to use a subtraction

(dates <= Nov 17) - (dates < Nov 11)

You can use a two SUMIF function to get the results.

=sumif(B1:B100,"<="&11/17/07,C1:C100)-sumif(B1:B100,"<"&11/11/07,C1:C100)

"DP7" wrote:

I have a column that contains dates & quantities I would like to sum based on
date ranges that I would define. For example I would want the sum quantities
whose dates fall in-between Nov. 11 & Nov 17. Nov. 18 & 24€¦.. So on & so
forth. I have been trying to figure out a way to do this with maybe a v
lookup or pivot table. However I have not been able to do so. If anyone has
any ideas as to how I can do what I want to do I would be very grateful.
Thanks in advance.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 417
Default Sum based on ranges pivot table?

I would add a column (labeled "Filter") to your data. Enter a formula that
evaluates to TRUE if the date is within range. Then make "Filter" a page
field in your pivot table and set it to show only TRUE.

--
Regards,
Bill Renaud



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
Pivot Table Ranges Dave Eade Excel Discussion (Misc queries) 8 January 23rd 09 03:13 PM
Pivot Table Data Ranges Darby Excel Discussion (Misc queries) 1 October 29th 08 04:03 PM
Pivot table based on amount ranges. Captain Snuggles Excel Programming 4 October 26th 07 06:17 PM
Pivot Table - consolidating ranges (again) xman Excel Discussion (Misc queries) 3 September 18th 05 02:17 PM
using date ranges in a pivot table Matt Elms Excel Programming 0 November 26th 03 09:22 AM


All times are GMT +1. The time now is 12:38 AM.

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"