Returning value based on date in another column

Sam Swain
βββββ
Looking for a solution / formula type on the following:
- I want theΒ Actual Phase NumberΒ column to give a number between 1 and 8.
- The number it will give is calculated by first looking at theΒ Actual DOCΒ column. The date in row 1 showing 12/13/22 will look atΒ Scheduled DOCΒ and find the most recent date before. In this case, the most recent date before 12/13/22 is 12/02/22.
- TheΒ Phase NumberΒ column for 12/02/22 shows '7'
- I therefore want row 1 of theΒ Actual Phase NumberΒ row to return '7'
Tags:
Best Answer
-
You would need to use something like this:
=INDEX([Phase Number]:[Phase Number], MATCH(MAX(COLLECT([Scheduled DOC]:[Scheduled DOC], [Scheduled DOC]:[Scheduled DOC], @cell<= [Actual DOC]@row)), [Scheduled DOC]:[Scheduled DOC], 0))
Answers
-
You would need to use something like this:
=INDEX([Phase Number]:[Phase Number], MATCH(MAX(COLLECT([Scheduled DOC]:[Scheduled DOC], [Scheduled DOC]:[Scheduled DOC], @cell<= [Actual DOC]@row)), [Scheduled DOC]:[Scheduled DOC], 0))
-
That worked thanks Paul!!!
Help Article Resources
Categories
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!