Formula to return the week ending date

Options

Hi,

I have a column of dates and I need a formula to work out the week ending date from it, assuming the last day of the week is Friday. Can anyone help?

Thanks

• ✭✭✭✭✭✭
Options

The below should work.

This assumes you want Saturday to return the next weeks Friday.

=IF(WEEKDAY([DATE]@row) = 7, [DATE]@row + 6, [DATE]@row + (6 - WEEKDAY([DATE]@row)))

• edited 02/03/21
Options

I've managed to answer my own question. It occurred to me just after posting this. For anyone that's interested the formula is...

=Date@row + (6 - WEEKDAY(Date@row))

Adjust that 6 to correspond to the date you want to be counted as your week end date.

EDIT: This did not work for all days of the week. See Leibel S's answer for the solution

• ✭✭✭✭✭✭
Options

The below should work.

This assumes you want Saturday to return the next weeks Friday.

=IF(WEEKDAY([DATE]@row) = 7, [DATE]@row + 6, [DATE]@row + (6 - WEEKDAY([DATE]@row)))

• Options

Thank you Leibel S. That worked perfectly.

• Options

Looking for a formula based off of a date column, Sunday through Saturday dates listed, and return the following Saturday (for Sun-Friday) or that exact date if a Saturday is entered.

Help!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!