If Year is 2024, give week of year

Options

Looking for help to create a formula that looks at a column and if the year is 2024, give the week of the year.

• ✭✭✭✭✭
Options

Hello @Breelyn Brown

There are 52 weeks in a year. This formula will return which number of the week:

=WEEKNUMBER([Date Column]@row)

This will check IF the year is 2024 then provide the WEEKNUMBER

=IF(YEAR([Date Column]@row) = 2024, WEEKNUMBER([Date Column]@row), 0)

You can replace the 0 with whatever you want to say in quotes like "Not 2024" for when 2024 is not found.

For this to work make sure the properties of your date column in Smartsheet are a "DATE".

• ✭✭✭✭✭✭
Options

@Breelyn Brown Hi, assuming your date column is named "date", use this formula. It should give you the week of the year for that specific cell. =IF(YEAR(date@row) = "2024", WEEKNUMBER(date@row))

• ✭✭✭✭✭
Options

Hello @Breelyn Brown

There are 52 weeks in a year. This formula will return which number of the week:

=WEEKNUMBER([Date Column]@row)

This will check IF the year is 2024 then provide the WEEKNUMBER

=IF(YEAR([Date Column]@row) = 2024, WEEKNUMBER([Date Column]@row), 0)

You can replace the 0 with whatever you want to say in quotes like "Not 2024" for when 2024 is not found.

For this to work make sure the properties of your date column in Smartsheet are a "DATE".

• edited 01/05/24
Options

Thank you so much! The formula worked :)

• ✭✭✭✭✭
Options

Happy to hear this formula worked for you!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!