Want to return latest value of one column when a different column matches a value from another sheet

Options

Hi All,

I've been seeing all the great help here, and hoping for some myself. I've been searching, and coming up with mixed approaches. I've been using VLOOKUP to auto-fill a row in a sheet when an ID matches an ID from a master sheet (many:one relationship). Now I also want to update a column in a row in the master sheet where there is a one:many relationship, but only with the value from the latest matching row in the secondary sheet. I got this far with my initial formula, which does return the first match.

=IFERROR(VLOOKUP([Record ID]@row, {Secondary_Sheet_Range}, 6), "New")

I really want the last match based on a date column. I've seen using MAX and COLLECT, etc. Any help would be appreciated. I also have an IFERROR so that it defaults to something if there is no match in the secondary table.

Thanks in advance!

Best Answers

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!