The following formula works =SUMIF(Month,"<"&MonthNumber,INDIRECT(V23)) where cell v23 contains the following concatenation
="'Food Last Year'!$C" & MATCH(B$23,LYIndex,0) & ":$N" & MATCH(B$23,LYIndex,0). This gets the range I want i.e. 'Food Last Year'!$C6:$N6 where 'Food Last Year' is the name of the sheet where the data is kept
However rather than using the indirect in the sumif formula I would like to nest the ="'Food Last Year'!$C" & MATCH(B$23,LYIndex,0) & ":$N" & MATCH(B$23,LYIndex,0)in the formula eg =SUMIF(Month,"<"&MonthNumber,"'Food Last Year'!$C" & MATCH(B$23,LYIndex,0) & ":$N" & MATCH(B$23,LYIndex,0)) however excel will not accept any of many the variations I have tried including the example above
It imagine it will have something to do with ' or " or ""
I am pulling my hair out. Please help
="'Food Last Year'!$C" & MATCH(B$23,LYIndex,0) & ":$N" & MATCH(B$23,LYIndex,0). This gets the range I want i.e. 'Food Last Year'!$C6:$N6 where 'Food Last Year' is the name of the sheet where the data is kept
However rather than using the indirect in the sumif formula I would like to nest the ="'Food Last Year'!$C" & MATCH(B$23,LYIndex,0) & ":$N" & MATCH(B$23,LYIndex,0)in the formula eg =SUMIF(Month,"<"&MonthNumber,"'Food Last Year'!$C" & MATCH(B$23,LYIndex,0) & ":$N" & MATCH(B$23,LYIndex,0)) however excel will not accept any of many the variations I have tried including the example above
It imagine it will have something to do with ' or " or ""
I am pulling my hair out. Please help