Forum Discussion

BMB199's avatar
BMB199
Copper Contributor
Apr 04, 2022
Solved

SUM formula referencing dates

I need a SUMIF formula that will draw from the left table and provide a sum of the data between the dates FROM:TO and fill out the fields in bold in the right table. I've been trying to use SUMIF to make it work, but haven't been able to make it function.

 

How can I do this?

 

DateData1Data2  FromToWeekSUM Data1 btw FROM:TO

SUM Data2 btw

FROM:TO

01-07-1921  01-07-1902-07-191  
02-07-1942  08-07-1914-07-192  
03-07-1953  15-07-1921-07-193  
04-07-1964  22-07-1928-07-194  
05-07-1975  29-07-1904-08-195  
06-07-198.46       
07-07-199.67       
08-07-1910.88       
09-07-19129       
10-07-1913.210       
11-07-1914.411       
12-07-1915.612       
13-07-1916.813       
14-07-191814       
15-07-1919.215       
16-07-1920.416       
17-07-1921.617       
18-07-1922.818       
19-07-192419       
  • BMB199 Based on your example, assuming the top left corner is in A1 and the "Sum Data 1"-formula to be entered in I2, like this:

    =SUMIFS(B$2:B$20,$A$2:$A$20,">="&$F2,$A$2:$A$20,"<="&$G2)

     Copy down and across.

     

     

1 Reply

  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Platinum Contributor

    BMB199 Based on your example, assuming the top left corner is in A1 and the "Sum Data 1"-formula to be entered in I2, like this:

    =SUMIFS(B$2:B$20,$A$2:$A$20,">="&$F2,$A$2:$A$20,"<="&$G2)

     Copy down and across.

     

     

Resources