#NO MATCH on INDEX COLLECT function

Hello! I am working on a formula to pull an ID for the row that has the LatestDate, and a checkbox is ticked. As there may be more than one matching row with these parameters, FROM those I need to return the ID for the row with the most recent CreatedDate. This will yield a maximum of one result.

This is the formula that returns a #NO MATCH (Note that values in { } represent the ranges)

=INDEX(
COLLECT({ID},
{LatestUpdate}, MAX({LatestUpdate}),
{Checkbox}, 1),
MATCH(MAX(COLLECT({CreatedDate},
{LatestUpdate}, MAX({LatestUpdate}),
{Checkbox}, 1)
),
COLLECT({CreatedDate},
{LatestUpdate}, MAX({LatestUpdate}),
{Checkbox}, 1),
0))

Here is the data:

2025-01-28_09-26-58.png

The value that should be returned is 018.

Thanks in advance for any insight!

LJ.

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!