A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1. This result can be obtained by filtering on the Date field in the pivot table.
- If you still want to type the dates in in another sheet and get the results you can setup a copy of the pivot table on that sheet, and write a macro that responds to the entry of two dates by automatically filtering the data.
- You can use SUMIFS or SUMPRODUCT against the original data rather than the pivot table. Suppose the raw data is:
A B C (Sheet1)
1 Date Country Passengers
2 1/1/01 France 3
You enter your two dates on another sheet in A1 and B1 and in C1 the country then the formula would be
=SUMPRODUCT(--(Sheet1!A:A>=A1),--(Sheet1!A:A<=B1),--(Sheet1!B:B=C1),Sheet1!C:C)
If this answer solves your problem, please check Mark as Answered. If this answer helps, please click the Vote as Helpful button. Cheers, Shane Devenshire