Hi Everyone,
I am a newb in excel and try my best but this one I cannot figure out. I have a sheet where F6 is my input cell for the week number. By that number it will grab data from the input data sheet and give me for that week what the sales were for each day of that week Mon-Fri. This part works great. The problem is trying to find a formula for the weekly average. What I currently have works grreat as long as the number in F6 is in the current week and my weekly average works, but if a prior week is put in F6 then my weekly average is not valid. As the total sales is adding everything from the input data sheet.
I need a formula for total sales so if a prior week is inputted into F6 then it will total only those numbers up to that week minus the current sales for the week that is in F6. I hope this is making sense.
I have attached a sample file.
Test_Sales.xls
I am thinking maybe I might need some VBA code to do this calculation depending on the variable in F6. Can anyone help on this please? Thank you.
Bookmarks