Return a value based on the MAX date in a Child row

SherriL
SherriL ✭✭
edited 03/15/23 in Formulas and Functions

Hi,

I've looked at many INDEX/COLLECT postings on here, and I just can't seem to find what I need.

I want to pull the value from a particular column based on whether that value is in a row that is the MAX DATE for that group of child records.

The screenshot below shows a sample "Patient". We create a parent row, then child rows for each of their subsequent visits. Notice in the "Sessions Remaining" column, I calculate how many sessions they have remaining from what was authorized. (Note, the first/evaluation session doesn't count, so my numbers aren't off.)

I want to have a cell on the parent row indicate how many sessions they currently have left based on the last DOS (date of service). Therefore, the cell on Mickey's parent row would currently indicate 62.

Your help is much appreciated. I'm sure I'm just mixing up the order and/or references I'm using.


image.png


Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!