Looking for most recent date

I have two sheets. The first is a tracker for up coming reoccurring tasks and the second is a copy of rows that have been completed.

In the first sheet I would like to collect the date from the "date" column in the second sheet if the "Combined" column values match that on the first sheet and if "Most Recent" is checked in the second sheet. I know that there has to be a way to do this but every formula I try to use gives one error or another when I try to add the most recent criteria. For reference I will include images of the two sheets below.

I know that it will probably involve an INDEX/MATCH (the second sheet could be reordered) but not sure beyond that. And I might just be blanking on something I know but if anyone can help that would be great!


This is the first sheet:

This is the second sheet:


Best Answer

  • Genevieve P.
    Genevieve P. Employee
    edited 06/25/21 Answer ✓

    Hi @Kimberly Loveless

    If I'm understanding you correctly you want to find the most recent or MAX date, based on criteria in another column. In this instance, instead of an INDEX(MATCH, we can use a MAX(COLLECT function to find the Max date!

    The COLLECT function will filter down the Date range to only look at dates that are associated with the identical "Combined" value. Then the MAX function will find the MAX date in that range.


    Try this:

    =MAX(COLLECT({Date Column Sheet 2}, {Combined Column Sheet 2}, Combined@row))


    Let me know if this works for you.

    Cheers,

    Genevieve

    Need more help? 👀 | Help and Learning Center

    こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!