Formula Help with MAX

This discussion was created from comments split from: Using Index and collect.

Answers

  • Pavel
    Pavel ✭✭

    Hi @Paul Newcome can you please help to code the formula the right way for my case?

    I have two forms in the same doc. From one I'm getting information about Project objective's changes, from another I gathering project name's changes (for instance).

    In the first top line, above the blue color, I want to see the data from below part each of the columns which will be matched with two criteria:

    1. Skip blank cells
    2. Show the data filtred by MAX date from "Incoming data"

    In the project objectives column I've used this formula: =IFERROR(INDEX([Project objectives]:[Project objectives], MATCH(MAX($[Incoming data]:$[Incoming data]), $[Incoming data]:$[Incoming data])), "")

    But it doesn’t work if there are blank cells so I need to add the second criteria somehow.


  • Hi @Pavel

    Try using the COLLECT function to add a filters to your MAX criteria, for example:


    =INDEX([Project Objectives]:[Project Objectives], MATCH(MAX(COLLECT($[Incoming Data]:$[Incoming Data], [Project Objectives]:[Project Objectives], <>"")), $[Incoming Data]:$[Incoming Data]))


    Cheers,

    Genevieve

    Need more help? 👀 | Help and Learning Center

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

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!