Move Rows with Auto-Number System Column - retaining an auto-number value

Hey everyone,

我在我的第一个自动化连续移动from Sheet A or Sheet B to Sheet C when the Approval Status is Declined. Sheet A is a list of a specific type of project and Sheet B is a list of a different type of project. Sheet C will essentially be a Backlog project list.

Both Sheets A and B have an Auto-Number system column which serves as the Project ID but they utilize different alpha prefixes to denote the different type of projects so it's easy to tell by the Project ID the type of project. In this case, the projects from Sheet A use "DB-XXX" and Sheet B uses "LITE-XXX"

During the approval process in both sheets A and B, the approver has the option to "Backlog" (decline) the project. At that point, I would like to move the declined row from Sheet A or B to Sheet C - our Backlog list. Eventually, I would like a process that takes place in Sheet C where we review the Backlog and determine whether we should move it back to the Active projects (sheet A or B). I want to preserve the Project ID though.

So for example. A project is submitted to Sheet A. It is assigned Project ID DB-001 by the system. The approver decides to decline it. The row is moved from Sheet A to Sheet C. At the end of the month, the team reviews Sheet C, deciding to keep/kill projects on Sheet C. The team decides that Project ID DB-001 should be approved now. The automation then moves the row Project ID DB-001 back to Sheet A. Will the row retain its DB-001 Project ID? Or will it be assigned a new Project ID?

Best Answers

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭
    Answer ✓

    You will want to test it, but I feel like you are going to run into a problem with trying to get the automation to populate a system generated column. You may need to create a new column that records the "Original Project ID" using a basic cell reference to the auto-number column. When the Move Row Automation grabs the roe, it will transfer static data which means that the original project ID should be captured for the row.

  • katie.dickinson
    Answer ✓

    Thanks for your thoughts, Paul. What you described is what I was worried about and before I went through the effort of building it out, I wanted to check with others first. Since you suggested testing it, I decided to invest the time.

    Good news - it saved the original value from the System Generated column and, better yet, it kept it when I moved the row back.

    This is how I have it set up from start to finish in case anyone else has a similar need.

    1. Sheet A and Sheet B act as the intake sheet and the active project sheet. When a project is proposed through the related form, it is dropped into Sheet A or B (they have separate forms).
    2. When the form is submitted, the row is populated and a Project ID (auto-number column) is created for the line item. In Sheet A, the Project ID is formatted with a prefix of "DB-XXX" and Sheet B is formatted with a prefix of "LITE-XXX". For my use, this denotes the project type without needing a category and works because the projects have different intake requirements.
    3. Once the row is populated and the Project ID is generated, an approval process kicks off. The Approver has a choice of Approving for Work or Sending to Backlog. Approving for Work does nothing except change the Approval status to Approved. Sending to Backlog kicks off a "Move Rows" automation.
    4. When a row's Approval status is set to "Backlogged" (caused by a declined approval) for either Sheet A or Sheet B, the system moves the row to Sheet C, my Project Backlog sheet.
    5. The Project Backlog sheet has a system generated auto-number column without any pre-determined format for the auto-number. The column is named Project ID just like on Sheet A and Sheet B.
    6. The Move Rows automation described in #4 here, successfully places the Project ID from either Sheet A or Sheet B into the Project ID field in Sheet C. It doesn't create a second auto-number when the row is added to Sheet C.
    7. I also have an automation in Sheet C (the Project Backlog sheet) to move projects off the Backlog into the original sheets they came from. When the row's Approval status is set to "Approved", it kicks off a "Move Rows" automation.
    8. The Move Rows automation considers the Project contents (Automation Condition "when Project ID contains") to determine whether to send the row to Sheet A or Sheet B. In my case, this works because the prefix in the Project ID is different - if Project ID contains DB then go to Sheet A; if Project ID contains LITE then go to Sheet B.
    9. Upon being returned to its original sheet, the Project ID continues to persist even if other projects have been created and approved after it.

Answers

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭
    Answer ✓

    You will want to test it, but I feel like you are going to run into a problem with trying to get the automation to populate a system generated column. You may need to create a new column that records the "Original Project ID" using a basic cell reference to the auto-number column. When the Move Row Automation grabs the roe, it will transfer static data which means that the original project ID should be captured for the row.

  • katie.dickinson
    Answer ✓

    Thanks for your thoughts, Paul. What you described is what I was worried about and before I went through the effort of building it out, I wanted to check with others first. Since you suggested testing it, I decided to invest the time.

    Good news - it saved the original value from the System Generated column and, better yet, it kept it when I moved the row back.

    This is how I have it set up from start to finish in case anyone else has a similar need.

    1. Sheet A and Sheet B act as the intake sheet and the active project sheet. When a project is proposed through the related form, it is dropped into Sheet A or B (they have separate forms).
    2. When the form is submitted, the row is populated and a Project ID (auto-number column) is created for the line item. In Sheet A, the Project ID is formatted with a prefix of "DB-XXX" and Sheet B is formatted with a prefix of "LITE-XXX". For my use, this denotes the project type without needing a category and works because the projects have different intake requirements.
    3. Once the row is populated and the Project ID is generated, an approval process kicks off. The Approver has a choice of Approving for Work or Sending to Backlog. Approving for Work does nothing except change the Approval status to Approved. Sending to Backlog kicks off a "Move Rows" automation.
    4. When a row's Approval status is set to "Backlogged" (caused by a declined approval) for either Sheet A or Sheet B, the system moves the row to Sheet C, my Project Backlog sheet.
    5. The Project Backlog sheet has a system generated auto-number column without any pre-determined format for the auto-number. The column is named Project ID just like on Sheet A and Sheet B.
    6. The Move Rows automation described in #4 here, successfully places the Project ID from either Sheet A or Sheet B into the Project ID field in Sheet C. It doesn't create a second auto-number when the row is added to Sheet C.
    7. I also have an automation in Sheet C (the Project Backlog sheet) to move projects off the Backlog into the original sheets they came from. When the row's Approval status is set to "Approved", it kicks off a "Move Rows" automation.
    8. The Move Rows automation considers the Project contents (Automation Condition "when Project ID contains") to determine whether to send the row to Sheet A or Sheet B. In my case, this works because the prefix in the Project ID is different - if Project ID contains DB then go to Sheet A; if Project ID contains LITE then go to Sheet B.
    9. Upon being returned to its original sheet, the Project ID continues to persist even if other projects have been created and approved after it.
  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out theFormula Handbook template!
Hello @Michelle Choate 2<\/a> !<\/p>

Yes, use this formula:<\/p>

=IF([Date of Record]@row < DATE(2023, 7, 14), 43, IF([Date of Record]@row <= DATE(2023, 8, 22), 46))<\/p><\/div><\/div>

It looks like this:<\/p>

\n
\n \n \"image.png\"<\/img><\/a>\n <\/div>\n<\/div>\n

<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>

You can keep adding IF() statements to this for additional date limits and outputs.<\/p>

Hope that helps!<\/p>

___________________________________________________________________________________________<\/p>

👨🏼‍💻 Dan Palenchar | <\/strong>School of Sheets Solutions Consulting<\/strong><\/a> | Smartsheet Aligned Gold Partner<\/strong><\/p>

If this response helped you please help me & the community by accepting it and reacting as you see fit (💡insightful, ⬆️ Vote Up, and\/or ❤️Awesome).<\/em><\/p>

🆘 Smartsheet Consulting Inquiries: schoolofsheets.com\/workwithus<\/a><\/p>

▶️ Smartsheet Tutorial Videos: schoolofsheets.com\/youtube<\/a><\/p>

PS - If you have a follow up response attention use @Dan Palenchar<\/a> so I get notified of your reply!<\/strong><\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[{"tagID":254,"urlcode":"formulas","name":"Formulas"}]},{"discussionID":111278,"type":"question","name":"Formula for Color Coding Cells when 2 conditions haven't been met","excerpt":"Working a project plan and looking for a logical formula to color code the Status column: Highlight\/Color code the Status field if the start date is in the past and the status is \"To be Initiated\", or if the end date is in the past and the status is not \"Completed\" Thank you!","snippet":"Working a project plan and looking for a logical formula to color code the Status column: Highlight\/Color code the Status field if the start date is in the past and the status is…","categoryID":322,"dateInserted":"2023-10-05T18:48:28+00:00","dateUpdated":"2023-10-05T20:22:17+00:00","dateLastComment":"2023-10-06T13:27:41+00:00","insertUserID":140828,"insertUser":{"userID":140828,"name":"MarianneD617","url":"https:\/\/community.smartsheet.com\/profile\/MarianneD617","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/avatarstock\/nWVKDFTEFOKBN.png","dateLastActive":"2023-10-05T22:16:06+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭"},"updateUserID":140828,"lastUserID":140828,"lastUser":{"userID":140828,"name":"MarianneD617","url":"https:\/\/community.smartsheet.com\/profile\/MarianneD617","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/avatarstock\/nWVKDFTEFOKBN.png","dateLastActive":"2023-10-05T22:16:06+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":27,"score":null,"hot":3393131769,"url":"https:\/\/community.smartsheet.com\/discussion\/111278\/formula-for-color-coding-cells-when-2-conditions-havent-been-met","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/111278\/formula-for-color-coding-cells-when-2-conditions-havent-been-met","format":"Rich","lastPost":{"discussionID":111278,"commentID":398875,"name":"Re: Formula for Color Coding Cells when 2 conditions haven't been met","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/398875#Comment_398875","dateInserted":"2023-10-06T13:27:41+00:00","insertUserID":140828,"insertUser":{"userID":140828,"name":"MarianneD617","url":"https:\/\/community.smartsheet.com\/profile\/MarianneD617","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/avatarstock\/nWVKDFTEFOKBN.png","dateLastActive":"2023-10-05T22:16:06+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Get Help","url":"https:\/\/community.smartsheet.com\/categories\/get-help"},{"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions"}],"groupID":null,"statusID":3,"image":{"url":"https:\/\/us.v-cdn.net\/6031209\/uploads\/JLQU8D8JYSX5\/screenshot-2023-10-05-at-2-42-34-pm.png","urlSrcSet":{"10":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=10\/https:\/\/us.v-cdn.net\/6031209\/uploads\/JLQU8D8JYSX5\/screenshot-2023-10-05-at-2-42-34-pm.png","300":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=300\/https:\/\/us.v-cdn.net\/6031209\/uploads\/JLQU8D8JYSX5\/screenshot-2023-10-05-at-2-42-34-pm.png","800":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=800\/https:\/\/us.v-cdn.net\/6031209\/uploads\/JLQU8D8JYSX5\/screenshot-2023-10-05-at-2-42-34-pm.png","1200":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=1200\/https:\/\/us.v-cdn.net\/6031209\/uploads\/JLQU8D8JYSX5\/screenshot-2023-10-05-at-2-42-34-pm.png","1600":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=1600\/https:\/\/us.v-cdn.net\/6031209\/uploads\/JLQU8D8JYSX5\/screenshot-2023-10-05-at-2-42-34-pm.png"},"alt":"Screenshot 2023-10-05 at 2.42.34 PM.png"},"attributes":{"question":{"status":"accepted","dateAccepted":"2023-10-06T13:36:08+00:00","dateAnswered":"2023-10-05T21:48:44+00:00","acceptedAnswers":[{"commentID":398779,"body":"

Hi @MarianneD617<\/a> <\/p>

I hope you're well and safe!<\/p>

The easiest way is to create two Conditional Formatting Rules.<\/p>

\n
\n \n \"image.png\"<\/img><\/a>\n <\/div>\n<\/div>\n

Did that work\/help? <\/p>

I hope that helps!<\/p>

Be safe, and have a fantastic week!<\/p>

Best,<\/p>

Andrée Starå<\/strong><\/a> | Workflow Consultant \/ CEO @ WORK BOLD<\/strong><\/a><\/p>

Did my post(s) help or answer your question or solve your problem? Please support the Community by <\/em>marking it Insightful\/Vote Up, Awesome, or\/and as the accepted answer<\/em><\/strong>. It will make it easier for others to find a solution or help to answer!<\/em><\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[]},{"discussionID":111262,"type":"question","name":"Automatically add a check to a checkbox cell if a cell is Not blank","excerpt":"Hi all. I've been trying to figure this one out by myself but I just cant seem to get it. I have a column \"Date Closed\" and I want to have a checkbox in that row be automatically checked once a value (date) is added to the \"Date Closed\" cell. (and the checkbox empty if there is no Date Closed value). I thought this would…","snippet":"Hi all. I've been trying to figure this one out by myself but I just cant seem to get it. I have a column \"Date Closed\" and I want to have a checkbox in that row be automatically…","categoryID":322,"dateInserted":"2023-10-05T16:46:03+00:00","dateUpdated":null,"dateLastComment":"2023-10-06T14:08:52+00:00","insertUserID":157535,"insertUser":{"userID":157535,"name":"steves","url":"https:\/\/community.smartsheet.com\/profile\/steves","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-10-06T14:06:41+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":120260,"lastUser":{"userID":120260,"name":"David Tutwiler","title":"","url":"https:\/\/community.smartsheet.com\/profile\/David%20Tutwiler","photoUrl":"https:\/\/lh3.googleusercontent.com\/a-\/AOh14GiIpuCpV7Zvo9nduJmLt8ULNYObTVazzemdnIiy6w=s96-c","dateLastActive":"2023-10-06T14:08:03+00:00","banned":0,"punished":0,"private":false,"label":"Overachievers Alumni"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":5,"countViews":33,"score":null,"hot":3393128695,"url":"https:\/\/community.smartsheet.com\/discussion\/111262\/automatically-add-a-check-to-a-checkbox-cell-if-a-cell-is-not-blank","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/111262\/automatically-add-a-check-to-a-checkbox-cell-if-a-cell-is-not-blank","format":"Rich","lastPost":{"discussionID":111262,"commentID":398887,"name":"Re: Automatically add a check to a checkbox cell if a cell is Not blank","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/398887#Comment_398887","dateInserted":"2023-10-06T14:08:52+00:00","insertUserID":120260,"insertUser":{"userID":120260,"name":"David Tutwiler","title":"","url":"https:\/\/community.smartsheet.com\/profile\/David%20Tutwiler","photoUrl":"https:\/\/lh3.googleusercontent.com\/a-\/AOh14GiIpuCpV7Zvo9nduJmLt8ULNYObTVazzemdnIiy6w=s96-c","dateLastActive":"2023-10-06T14:08:03+00:00","banned":0,"punished":0,"private":false,"label":"Overachievers Alumni"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Get Help","url":"https:\/\/community.smartsheet.com\/categories\/get-help"},{"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-10-06T14:07:06+00:00","dateAnswered":"2023-10-06T13:23:07+00:00","acceptedAnswers":[{"commentID":398868,"body":"

Until you can get it to work, I would delete the second automation just to make sure they aren't accidentally interfering.<\/p>

I can see that if you create a new row with the Date already filled in this automation won't work. It is only being triggered when the sheet is changed.<\/p>

The other thing I can think of is that this automation requires that you save the sheet and then wait a few seconds for it to update. If you are making changes and waiting for the automation to run without saving the sheet, this won't work. I would suggest updating the date on a row, clicking Save, then waiting up to 1 minute (it should take just a few seconds) for the sheet to update.<\/p>

If that doesn't work, will you let us know?<\/p>"},{"commentID":398886,"body":"

David! thanks you were totally right. The automation is not immediate for some reason, it takes <minute for it to run and for the box to check itself. i was being impatient.<\/p>

This works great! thanks so much.<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[]}],"initialPaging":{"nextURL":"https:\/\/community.smartsheet.com\/api\/v2\/discussions?page=2&categoryID=322&includeChildCategories=1&type%5B0%5D=Question&excludeHiddenCategories=1&sort=-hot&limit=3&expand%5B0%5D=all&expand%5B1%5D=-body&expand%5B2%5D=insertUser&expand%5B3%5D=lastUser&status=accepted","prevURL":null,"currentPage":1,"total":10000,"limit":3},"title":"Trending in Formulas and Functions ","subtitle":null,"description":null,"noCheckboxes":true,"containerOptions":[],"discussionOptions":[]}">

Trending in Formulas and Functions