Forum Discussion
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 today until 10th September but in 2023. I don't know if my thinking is right where I should 1) Look up all occurrences of a sale for a certain product and then 2) maybe using a sum if to sum it all up when the date is in the next 12 weeks. Any suggestions? I have included some sample data below. Its about 110,000 rows of invoiced orders. Thanks for your help in advance.
- Martin_AngostoIron Contributor
Hi, please see attached workbook with proposed solution:
=SUMIF($A$1:$A$48,"<"&EDATE($E$1,3),$B$1:$B$48)
- Excelenthusiast223Copper Contributor
How would this work for individual products e.g. just for apples or oranges in my example
- Martin_AngostoIron Contributor