Forum Discussion
Excelenthusiast223
Jun 10, 2024Copper Contributor
Get sales data for last year but in the next 12 weeks of todays date
Hi all, I'm trying to get the summed sales data for products that occurred in the last year but for the next 12 weeks of todays date e.g. todays date is 10th June 2024, I would want the sales from t...
Martin_Angosto
Jun 10, 2024Iron Contributor
Hi Excelenthusiast223 ,
Edit: You are right. I completely misread your initial description of the problem. Have corrected the formula.
=SUMIFS($G$1:$G$119239,$A$1:$A$119239,">"&EDATE($N$1,-9),$F$1:$F$119239,K5)
Note that -9 comes from -12 months (one year) + 3 months (14 weeks as desired) = -9.
By the way: I have made the formula with the reference to a "Today's date" cell because using the function TODAY() would make the formulation change each day. I thought it is more convenient to use a reference to a manual-entry-cell for better or more convenient analysis purposes.
Excelenthusiast223
Jun 10, 2024Copper Contributor
Hi,
So does the new formula look for the sales inbetween the two dates or just after the EDATE?
I want it to look inbetween e.g. 10th June - 10th September.
So does the new formula look for the sales inbetween the two dates or just after the EDATE?
I want it to look inbetween e.g. 10th June - 10th September.