ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Ability to sum data by varying dates (https://www.excelbanter.com/excel-worksheet-functions/39496-ability-sum-data-varying-dates.html)

chopsx7

Ability to sum data by varying dates
 
I have numerous lists of data going back several years organized simply col1
- date col2-data. Frequently I need to go back and provide sum totals
(sometimes avg etc) over a requested date range. Is there a way to utilize a
lookup function of some sort whereby I can enter a start and end date and
have excel sum the range based on the dates? Now I manually check the lists
to figure out the range that needs to be included in the calculation.
Thanks

Ron Rosenfeld

On Tue, 9 Aug 2005 08:43:03 -0700, "chopsx7"
wrote:

I have numerous lists of data going back several years organized simply col1
- date col2-data. Frequently I need to go back and provide sum totals
(sometimes avg etc) over a requested date range. Is there a way to utilize a
lookup function of some sort whereby I can enter a start and end date and
have excel sum the range based on the dates? Now I manually check the lists
to figure out the range that needs to be included in the calculation.
Thanks


Look at the SUMIF worksheet function:

e.g.:

=SUMIF(col1, "=" & start_date, col2) -
SUMIF(col1, "" & end_date, col2)


--ron

Bob Phillips

=SUMPRODUCT(--(A2:A10000=--"1999-01-01"),--(A2:A10000<=--"2002-12-31"),B2:B
10000)

or put the dates in some space cells and use those

=SUMPRODUCT(--(A2:A10000=M1),--(A2:A10000<=M2),B2:B10000)


--
HTH

Bob Phillips

"chopsx7" wrote in message
...
I have numerous lists of data going back several years organized simply

col1
- date col2-data. Frequently I need to go back and provide sum totals
(sometimes avg etc) over a requested date range. Is there a way to

utilize a
lookup function of some sort whereby I can enter a start and end date and
have excel sum the range based on the dates? Now I manually check the

lists
to figure out the range that needs to be included in the calculation.
Thanks





All times are GMT +1. The time now is 06:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com