Using WeekNum as a variable to total a sum range with a criteria range

StarvinDan

New Member
Joined
Oct 27, 2014
Messages
2
Thanks in advance for helping out...
Excel 2013 / Win7

I would like to update the criteria in a formula which contains a criteria range based upon the value of the weeknum. The range of cells decreases as each week passes. I have one cell which is the criteria =weeknum(today()), a criteria_range which contains weeknum() for each of the 7 days in each week over a 3 month period and a sum_range which contains the numbers I would like to total. Sum range = N20:CZ:20, criteria range = N19:CZ19 and criteria ">=M16" which is weeknum(today()) in cell M16

I've tried if, sumif and sumifs and cannot get this to work - any help would be greatly appreciated

In the table below I show a collapsed version of the cell range for several weeks, the entries for # available per week by weeknum and the current total under remaining amt.
current week19
Remaining AmtWeeknum17
18
19
20
21
22
23
13# avail by Wk
2
2
2
4
2
3
2

<tbody>
</tbody>
-- Dan
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
No problem.

If my experience is anything to go by you never stop learning new stuff about Excel. :)

Regards,
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top