Moving Rows to another sheet

ldavenportHAP
ldavenportHAP ✭✭✭✭
edited 12/06/22 in Formulas and Functions

Hello!

I am looking for some assistance to see if this is possible. My company is utilizing SS for our staffs productivity. Currently it looks something like this

image.png

in order for my formula in the "From Previous Month" to work staff must remain in the exact same order as it is not a column formula example for "Sally Sue" in February

=IF(NOT(ISBLANK([Accounts Per Day]@row)), IF([Accounts Per Day]51 < [Accounts Per Day]@row, "Up", IF([Accounts Per Day]51 > [Accounts Per Day]@row, "Down", "")))

If anyone knows a way to make that a column formula id love to know


ANYWAYS...

what i would like to happen is if someone marks a staff member as "No" in the active column id love a way to automatically add No for all instances for that user and move it to another sheet. I understand how to make a single row move to another sheet but its there a way to automate "If admin marks 1 instance of "Sally Sue" as "No" in Active column, all rows with "Sally Sue" are moved to "Termed Staff Log". Not all leaders at my company are SmartSheet savvy so if i can make this process as easy as possible for them it would be appreciated!


Now that I write this all out I think even if i have rows move the formula for the "From Previous Month" will still need to be manually updated to reflect the new comparison row? idk. Any insight or suggestions are welcome. The "From Previous Month" is a really great quick visual way for our staff to know how they are doing and id hate to get rid of it even if its the bane of this sheets existence lol

Best Answer

  • Paul Newcome
    Paul Newcome Community Champion
    Answer ✓

    When you copy or move a row, the data becomes static. No formulas will exist in the new sheet. So you shouldn't have to update anything after the row has been moved.


    The initial move row issue should be solvable. Insert a hidden helper column with this column formula:

    =IF(COUNTIFS(Staff:Staff, @cell = Staff@row, Active:Active, @cell = "No")> 0, "MOVE")


    Then you can set up your move row automation to trigger when this helper column changes to "MOVE".


    You can also make the [From Previous Month] column's formula more dynamic and we may be able to apply it as a column formula as well. Give this a try and let me know how it works for you:

    Insert a hidden helper column (auto-number called "Auto").

    Insert a hidden helper column (text/number called "Row") with this column formula:

    =MATCH(Auto@row, Auto:Auto, 0)


    Then in the [From Previous Month] column you should be able to use this:

    =IFERROR(IF(Leader@row <> "", IF(INDEX([Accounts Per Day]:[Accounts Per Day], MAX(COLLECT(Row:Row, Row:Row, @cell< Row@row, Staff:Staff, @cell = Staff@row))) < [Accounts Per Day]@row, "Up", IF(INDEX([Accounts Per Day]:[Accounts Per Day], MAX(COLLECT(Row:Row, Row:Row, @cell< Row@row, Staff:Staff, @cell = Staff@row))) > [Accounts Per Day]@row, "Down"))), "")

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!