I can't figure out why this function doesn't work. I get a "#VALUE!"
={SUM((MONTH($B$3)=MONTH(INDIRECT("'"&I$15&"'!F14:IV14")))*(YEAR($B$3)=YEAR(INDIRECT("'"&I$15&"'!F14:IV14")))*INDIRECT("'"&I$15&"'!F"&ROW()&":IV"&ROW()))}
The reason for using the array formula instead of a sumif is because I'm trying to dummy proof the formula so that no matter what day of the month the user uses, it still works. Then, my "&I$15&" is looking for the right tab from which to pull data.
The more basic function below works but I want to be able to copy the fomula down the column which is the reason for the row() formula. Additionally, if the user adds a row, I want the formula to be be copied easily.
={SUM((MONTH($B$3)=MONTH(INDIRECT("'"&I$15&"'!F14:IV14")))*(YEAR($B$3)=YEAR(INDIRECT("'"&I$15&"'!F14:IV14")))*INDIRECT("'"&I$15&"'!F18:IV18"))}
The function below works too so I don't understand why I can't combine this with the function immediately above to make the first function work.
={SUM(INDIRECT("'"&I$15&"'!F"&ROW()&":IV"&ROW()))}
Bookmarks