Help on calculation by date

New Contributor
I need help on how to count number of tickets open 12 weeks befora and 12 weeks after a certain date in Excel. The trouble is tickets should be counted by device id where ticket id is unice value and device id can appear multiple times. I created a pivot table by weeks but as I add more tickets in time, I need to adjust the formula to pick different 12 weeks(cells) as I move from week 3 to week 4 etc... Id there any way to avoid pivot and create a formula or at least to adjust pivot table to show dates by days - it is a large set of data so pivot table only shows week level as lowest at date hiararchy. Hope I'm not too confusing and someone can help with little Excel magic
2 Replies




Is this what you are looking for? The formula returns the number of unique device id numbers 12 weeks before and 12 weeks after a certain date as shown in the attached file.

Thanks a lot, but I wasn't succesfull I'm afraid.. I've attached an example of the report I need to populate, the number of ticket per device before and after certain date, but to add more details, that certain date will change (entered date field) and the raw data I need to use has ticket as unique values but number of devices are duplicate meaning there are more than one ticket opened for each device and I need calculation per specific device in calc sheet hope this makes sense:-)