Hi,
Been trying to figure this out for awhile. Here's my issue:
I am trying to create a rolling sum of the minutes that there is an outage at a particular data center over the last 12 complete months (not including the current month) by referencing another sheet in Smartsheet. We eventually want this number to update automatically for the last twelve months, but the sheet I'm referencing's dates don't go back that far.
One of the formulas I tried was
=SUM({Uptime Minutes}, {Event Date}, AND(IFERROR(MONTH(@cell), 0) = MONTH(TODAY()) - 1), {Event Date}, AND(IFERROR(MONTH(@cell), 0) = MONTH(TODAY()) - 2))... etc. for the last twelve months, but I wasn't able to add criteria to reference which Data Center I wanted.
I have tried SUMIF/SUMIFS, as well, but because the data doesn't quite reach 12 months ago, the value returns a zero (an error).
Another formula I have that works similarly is
=SUMIFS({Uptime Minutes}, {Event Date}, AND(IFERROR(MONTH(@cell), 0) = (MONTH(TODAY() - DAY(TODAY())))), {Data Center}, FIND("Data Center Name", UPPER(@cell)) > 0)
which returns the Uptime Minutes for the full previous month at a named Data Center. Is it possible to do this for the last twelve months, and if a particular month doesn't exist in my referenced sheet, ignore the command?
I have thought about trying something like FIND(the most historic date in the column) IF(MONTH [is less than] MONTH(TODAY()) - 12),
or maybe
=SUMIF({Uptime Minutes}, {Data Center}, FIND("Data Center Name", UPPER(@cell)) > 0, IF(DATE [is less than] MONTH(TODAY())-1, AND(DATE [is greater than] MONTH(TODAY())-13)))
but I'm not quite sure how to do this/if it's possible.
Would love some advice! Thanks!