Week number comparison
![Mary Kam](https://us.v-cdn.net/6031209/uploads/defaultavatar/nWRMFRX6I99I6.jpg)
=IF($[STUDY NUMBER]@row = "", "", IF($[STUDY NUMBER]@row = "EMPTY", "", IF(AND(WEEKNUMBER($ARRIVAL@row) <= [WK 39 SEP 26]$1, WEEKNUMBER($[END DATE]@row) >= [WK 39 SEP 26]$1), $[# FLOWERS]@row, IF(AND(YEAR($ARRIVAL@row) <= 2021, WEEKNUMBER($[END DATE]@row) >= [WK 39 SEP 26]$1), $[# FLOWERS]@row, IF(AND(WEEKNUMBER($ARRIVAL@row) <= [WK 39 SEP 26]$1, YEAR($[END DATE]@row) >= 2022), $[# FLOWERS]@row, IF(AND(YEAR($ARRIVAL@row) < 2022, YEAR($[END DATE]@row) >= 2022), $[# FLOWERS]@row))))))
[WK 39 SEP 26]$1 is just below the column header with a 39.
Arrival dates and end dates vary with different years and months etc.. I am looking for a formula that fits all scenerios, where if the dates fit within the weeknumber and is in year 2022 I want a return value.
Note the 7 in red should not give a return value.
Thanks
Best Answer
-
I did a cross check and the formula is correct.
Answers
-
I did a cross check and the formula is correct.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.1K Get Help
- 348 Global Discussions
- 199 Industry Talk
- 427 Announcements
- 4.4K Ideas & Feature Requests
- 133 Brandfolder
- 127 Just for fun
- 127 Community Job Board
- 455 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 282 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!