Hi and greetings,
I am trying to use last years sales data to compare to this year for certain sales categories.
However I need to limit the sum range of the historical data to the current week number eg week 20 as this years figures only go up to the current week eg week 20.
I have a cell into which I type in the number 20 and I want the sumifs function to return last years sales totals up to week 20 and exclude any weeks over that count number.
My formula
=SUMIFS(B5:F5,B3:F3,"<=D1")
B5:F5 is the range of sales values
B3:F3 is the range of week values (criteria)
D1 is the cell containing a specific week number for which I need sales summed up to and including this week.
Problem is using this formula gives a result of zero!
If I manually replace the D1 reference with a value eg 18 then the formula works fine.
If I remove the quote marks around the reference I get a formula error message.
Please help a very confused (and pissed) Australian!!!!
I am trying to use last years sales data to compare to this year for certain sales categories.
However I need to limit the sum range of the historical data to the current week number eg week 20 as this years figures only go up to the current week eg week 20.
I have a cell into which I type in the number 20 and I want the sumifs function to return last years sales totals up to week 20 and exclude any weeks over that count number.
My formula
=SUMIFS(B5:F5,B3:F3,"<=D1")
B5:F5 is the range of sales values
B3:F3 is the range of week values (criteria)
D1 is the cell containing a specific week number for which I need sales summed up to and including this week.
Problem is using this formula gives a result of zero!
If I manually replace the D1 reference with a value eg 18 then the formula works fine.
If I remove the quote marks around the reference I get a formula error message.
Please help a very confused (and pissed) Australian!!!!