Return the last entries of a row in the first row

I need that the first row always receive the information on the last row.

Please can someone help me with that.

Best Answers

  • Genevieve P.
    Genevieve P. Employee
    Answer ✓

    Hi @luizrocha

    I would suggest adding a System Generated Auto-Number column to the sheet.See: Auto-Number Rows

    Then you can use this in an INDEX Function to find the MAX (or newest) row and bring that data back into the top row, like so:

    =INDEX(Solution:Solution, MAX([Row ID]:[Row ID]))

    You just need to swap out the column at the front of the Index function to reference the next one:

    =INDEX(Status:Status, MAX([Row ID]:[Row ID]))


    Cheers,

    Genevieve

    Need more help? 👀 | Help and Learning Center

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

  • Genevieve P.
    Genevieve P. Employee
    Answer ✓

    Hi @luizrocha

    Since your current row doesn't say "Approved" or not, we'll want to change your IF statement to say IF this formula = "Approved", then say "Approved", otherwise find the One Row Above MAX. Does that make sense?

    Try this:

    =IF(INDEX([Current Status]:[Current Status], MAX([Row ID]:[Row ID])) = "Approved", "Approved", INDEX([Current Status]:[Current Status], MAX([Row ID]:[Row ID]) - 1)

    Notice that I have the -1 outside of the MAX function. This is because I want to find the MAX row, but then remove one after this is found:

    MAX([Row ID]:[Row ID]) - 1

    Cheers,

    Genevieve

    Need more help? 👀 | Help and Learning Center

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

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!