Hi smarties, I have 40 metric sheets (one per location). In each sheet I have an countif formula that references a data sheet. I have this formula in about 20 columns. A sample is in the screen shot. It says something like count if the name in the Frontline leader column of the metric sheet matches the name in the data entry sheet and the date in the Week column is 3 weeks ago, look in the Hazard and Injury Columns and if it says Yes, count as 1 if not, count as 0 then divide by same criteria but by total yes or no (so if it's yes in Hazard and No in Injury for that leader for that week, it comes up 50%)
I repeat this formula for 13 weeks, but instead of -1 I change the number to how many weeks ago (times 13)
Every time I make a change I have to change 40 sheetsx20 columns x 13 weeks then drag down to the 20 cells in that week's set of cells. That's 10,400 manual cell updates which is not optimal.
I know we can't copy a formula from one sheet to another. Is there any easier way?
Image of formula above and in text below: note the formula is fine.
=IF([Frontline Leader]@row = "", "", IFERROR(SUM(COUNTIFS({Who}, [Frontline Leader]@row, {Hazard}, "Yes", {Week}, IFERROR(WEEKNUMBER(@cell), 0) = WEEKNUMBER(TODAY()) - 1, {Week}, IFERROR(YEAR(@cell), 0) = YEAR(TODAY())), COUNTIFS({Who}, [Frontline Leader]@row, {Injuries}, "Yes", {Week}, IFERROR(WEEKNUMBER(@cell), 0) = WEEKNUMBER(TODAY()) - 1, {Week}, IFERROR(YEAR(@cell), 0) = YEAR(TODAY()))) / SUM(COUNTIFS({Who}, [Frontline Leader]@row, {Hazard}, OR(@cell = "Yes", @cell = "No"), {Week}, IFERROR(WEEKNUMBER(@cell), 0) = WEEKNUMBER(TODAY()) - 1, {Week}, IFERROR(YEAR(@cell), 0) = YEAR(TODAY())), COUNTIFS({Who}, [Frontline Leader]@row, {Injuries}, OR(@cell = "Yes", @cell = "No"), {Week}, IFERROR(WEEKNUMBER(@cell), 0) = WEEKNUMBER(TODAY()) - 1, {Week}, IFERROR(YEAR(@cell), 0) = YEAR(TODAY()))), ""))