Week number comparison
=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
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!