Help with formula for line chart?

Options
✭✭

Right now I have a formula set up to count hours for each week given certain criteria.

The count from each week is then added to the past week to get an ascending total each week to display in a line graph for a running total. How can I write this formula to count when it is the current work week only so that the chart line doesn't track across to wk52 from the current week and It doesn't have to be updated manually?

Thanks

Matt

• ✭✭✭✭✭✭
Options

You can check if a date is this week or not by a formula like this;

=IF(WEEKNUMBER(Date@row) = WEEKNUMBER(TODAY()), 1, 0)

Please take a look at the demo sheet below.

So, assuming your {Master: Job Site Readiness Range 4} range is some date range, you can add the following criteria to your formula;

,{Master: Job Site Readiness Range 4}, WEEKNUMBER(@cell) = WEEKNUMBER(TODAY())

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!