Need to return a value with INDEX(COLLECT) but not if cell is BLANK

Options
Susan Vieira
Susan Vieira ✭✭✭✭✭

Hello,

I am unsure if what I am doing is possible or not but I need to return a value with specific criteria. I need the latest "Revised Date" from the most recent amended version (Occurrence). However, it is possible the latest amended has no updated "Revised Date" field so it should keep the previous revised date..

In my example for Felx, the New/Final End Date should still be 8-Sep-2021.

image.png

Here is my formula:

=IFERROR(IF(Entry@row = "Amended", "", INDEX(COLLECT([Revised Date]:[Revised Date], [Revised Date]:[Revised Date], NOT(ISBLANK(@cell)), [Family Name]:[Family Name], [Family Name]@row, Occurence:Occurence, MAX(COLLECT(Occurence:Occurence, [Family Name]:[Family Name], [Family Name]@row))), 1)), Date@row)

So I'm trying to collect the date from the latest amendment (number in occurrence column) but only if there is a date in the revised date cell. Where am I going wrong with this?


Thank so much for your help.

Tags:

Best Answer

  • Susan Vieira
    Susan Vieira ✭✭✭✭✭
    edited 09/01/21 Answer βœ“

    @Paul Newcome I GOT IT! I tweaked the helper column and got it to return the right amendment!

    =IF(Entry@row = "Original", MAX(COLLECT(Occurence:Occurence, [Family Name]:[Family Name], [Family Name]@row, [Revised Date]:[Revised Date], NOT(ISBLANK(@cell)))))

    This is giving me what I need!

    image.png


    Thanks so much for heling me break it down. :)

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!