Error Returning Result Using COLLECT with MAX Date Criteria

I have 5 source tables where raw data is added to monthly (Titled Phase 0, Phase 1, etc). 4 rows of data are added each month to each source table, one for each Results Category option of Success, In Progress, Error, Unknown. One of my source tables is shown here

Separately, I have a summary sheet, where I would like to summarize only the most recent month's data in a simple table, as shown below:


In this screenshot I'm trying to grab the most recent value from the Count column in the source sheet where the Results Category = "Success", but I keep getting a Nested Criteria error.

The formula I am using is a collect formula, which is:

=COLLECT({Phase 0 Patching Results Range 2}, {Phase 0 Patching Results Range 3}, "Success", {Phase 0 Patching Results Range 4}, MAX(COLLECT({Phase 0 Patching Results Range 4}, {Phase 0 Patching Results Range 4}, ISDATE(@cell))))

I'm trying to use two criteria to select the right row:

  • Results Category = Success
  • Date is the MAX date found in the month column

I'm lost at this point. Can anyone point me in the right direction?

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!