Hey all,
I am hoping someone can help me out. I am trying to figure out the easiest way to find the sum of a range of data based on a variable. Basically all my data is on one sheet with dates in row 2 (B2:LW2), departments in column A (A3:A36), and sales values for each department for each day (B3:LW36). On another sheet I have a list of dates that correspond to the last day of our pay weeks (B4:B29) Nov 4 for example. What i need to do is find the last day of the pay week for each department on the data sheet and then add the sales for that day and the previous 13 days (one pay period). Can someone suggest the best way to do this? Thanks
I am hoping someone can help me out. I am trying to figure out the easiest way to find the sum of a range of data based on a variable. Basically all my data is on one sheet with dates in row 2 (B2:LW2), departments in column A (A3:A36), and sales values for each department for each day (B3:LW36). On another sheet I have a list of dates that correspond to the last day of our pay weeks (B4:B29) Nov 4 for example. What i need to do is find the last day of the pay week for each department on the data sheet and then add the sales for that day and the previous 13 days (one pay period). Can someone suggest the best way to do this? Thanks