• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to sum time series data between 2 dates

PG808

New Member
I would like a formula that enables me to sum sales data in say, column c based on the dates in column b. I have many records based on geographies in column a.
so my data has 3 fields. geography, date and sales value. I want to return a sales value aggregate for each geography based on the start /end dates that I choose. The geographies have do not all have a record for every date, so the solution needs to include a reference to actual dates rather than to fixed cell positions.
 
I would like a formula that enables me to sum sales data in say, column c based on the dates in column b. I have many records based on geographies in column a.
so my data has 3 fields. geography, date and sales value. I want to return a sales value aggregate for each geography based on the start /end dates that I choose. The geographies have do not all have a record for every date, so the solution needs to include a reference to actual dates rather than to fixed cell positions.
Hi,

Try this where

E1 = Name of the geography
F1= Start date
G1 = End date


=SUMIFS(C2:C1000,A2:A1000,E1,B2:B1000,">=" & F1,B2:B1000,"<="&G1)
 
Back
Top