Week Of Date Formula ( Week of 2/6)

I want to be able to filter all the jobs per the week; Week of function.

Example: Week of 2/6 would automate for any jobs that has a start date between 2/6 and 2/12)

In excel the formula was =IF(G12<G12-WEEKDAY(G12-1),G12,G12-WEEKDAY(G12+7)+1).

How do i convert that to a Smartsheet formula?

(G12 in Smartsheet is _Project Start Date)


Best Answer

  • Sameer Karkhanis
    Sameer Karkhanis ✭✭✭✭✭✭
    edited 02/11/22 Answer ✓

    The WEEKDAY function works the same in Smartsheet so you can literally copy the same formula and replace G12 with your column name

    =IF([_Project Start Date]@row <  ([_Project Start Date]@row - WEEKDAY([_Project Start Date]@row - 1)), [_Project Start Date]@row, ([_Project Start Date]@row - WEEKDAY([_Project Start Date]@row + 7)) + 1)
    

    Btw, make sure that the column where you are using this formula is also a date column (aka column property is set to Date)

Answers

  • Sameer Karkhanis
    Sameer Karkhanis ✭✭✭✭✭✭
    edited 02/11/22 Answer ✓

    The WEEKDAY function works the same in Smartsheet so you can literally copy the same formula and replace G12 with your column name

    =IF([_Project Start Date]@row <  ([_Project Start Date]@row - WEEKDAY([_Project Start Date]@row - 1)), [_Project Start Date]@row, ([_Project Start Date]@row - WEEKDAY([_Project Start Date]@row + 7)) + 1)
    

    Btw, make sure that the column where you are using this formula is also a date column (aka column property is set to Date)

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!