Index between a group of dates to return a corresponding row value

Options

I need to add a formula with the "period end date" to have it automatically update to return the "period rate year" that it falls within - e.g., 1/31/25 falls within 4/1/24 and 6/30/25 so it returns 2024 in the yellow.

image.png
Tags:

Best Answer

  • DKazatsky2
    DKazatsky2 Community Champion
    Answer ✓

    Hi @Lauren Y,

    Give this a try.

    =INDEX(COLLECT([Rate Year]$2:[Rate Year]$8, [Rate Year Start]$2:[Rate Year Start]$8, <=[Period End Date]@row , [Rate Year End]$2:[Rate Year End]$8, >=[Period End Date]@row ), 1)

    Hope this helps,

    Dave

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!