Date & Timestamp a specific cell change
Hello,
I am very new to Smartsheet and I am working on a project tracking sheet. We have the following statuses in a cell: Unassigned; In Progress; Completed; Cancelled; On Hold
当提交一个请求自动三ggers a 'Created Date' column that logs the date/time of creation. I would like this to be duplicated to two other columns I have 'Modified Date' and 'Completed Date'.
When the status in a cell changes to In Progress or On Hold, I would like the 'Modified Date' cell on that row to log the date and time.
When the status in a cell changes to Completed or Cancelled, I would like the 'Completed Date' cell on that row to log the date and time.
Could you offer step by step instruction or point me to a video that shows how to accomplish this, if possible.
Thank you so much for your help and sorry if I've explained poorly.
Best Answer
-
Toufong Vang ✭✭✭✭✭
Hi, here is another approach.
Let's say that your sheet is calledMy Sheet. Ensure that this sheet has the system column "Modified Date". In this sheet:
1) Create a Text/Number column named "Timestamp - Status In-Progress or On-Hold" (or something more preferrable).
2) Create a Text/Number column named "Completed Date".
3) Create a Text/Number column named "Last Status" (helper column)*.
4) Create a Text/Number column named "OK to Route?" (helper column) and place the column formula
=IF([Last Status]@row =[email protected], 0, 1)
5) Create a new sheet that has only the "Primary Column". Let's name this sheetMy Sheet - Record Dates(or something more preferrable).
6) Copy one row from "My Sheet" to "My Sheet - Record Dates". (Do this by left-clicking on the row number and select "Copy to Another Sheet..." from the options.)
7) Create a workflow automation configured as follows:
Trigger: When rows are changed...When Status changes to Any Value
Condition: When OK to Route? is equal to 1.
Action: Move rows...Move to "My Sheet - Record Date"
Open the sheetMy Sheet - Record Dates.
8) In the column "Timestamp - Status Changed to In-Progress or On-Hold", create the column formula
= IF( OR([email protected]="In Progress",[email protected]="On HOld"), [Modified Date]@row+"", "")
9) In the column "Completed Date" create the column formula
= IF( OR([email protected]="Completed",[email protected]="Canceled"), [Modified Date]@row+"", "")
10) In the column "Last Status" create the column formula
[email protected]
11) Create a workflow automation configured as follows:
Trigger: When rows are added or changed...When Primary Column changes to to Any Value
Conditions: Where "Timestamp - Status In-Progress or On-Hold" is not blank OR where "Completed Date" is not blank.
Action: Move rows...Move to "My Sheet"
Done!
Here's how this works.
At the time the row is created in My Sheet,Last Statusis blank andOK to Routeis 1.
WhenStatusis changed and saved,Modified Dateis recorded and automation moves the row into My Sheet - Record Date.
Depending on whatStatusis equal to, theModified Datewill be recorded inTimestamp - ...orCompleted Date. The formula inLast Statussets the value equal to whatever was recorded inStatus. Because the trigger was set to "When rows are added or changed" automation moves the recently added row back to My Sheet.
Now back in My Sheet,StatusandLast Statusare the same soOK to Route?is 0 (or False). This fails the condition for automation to move the row until someone changes the value inStatus.
_______________
*The helper columns prevent an infinite loop from occurring when automation moves a row back from "My Sheet - Record Date".
Answers
-
Hollie Green ✭✭✭✭✭
Have you tried a sheet automation for record a date there is a template in the automation.
-
Andrée Starå ✭✭✭✭✭✭
I hope you're well and safe!
Please have a look at my post below with a method I developed.
More info:
Would that work/help?
I hope that helps!
Have a fantastic weekend & Happy New Year!
Best,
Andrée Starå| Workflow Consultant / CEO @WORK BOLD
✅我的帖子(s)帮助或吗answer your question or solve your problem? Please support the Community bymarking it Insightful/Vote Up, Awesome, or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå| Workflow Consultant / CEO @WORK BOLD
W:www.workbold.com| E:[email protected]| P: +46 (0) - 72 - 510 99 35
Feel free to contact me about help with Smartsheet, integrations, general workflow advice, or something else entirely.
-
MBMaddox ✭
@Andrée Staråthank you very much for your post. I apologize, I'm still quite new to this, so I'm not familiar with "copy-row automation and a VLOOKUP or combination of INDEX/MATCH". Do you happen to know of a help video or step by step guide that I could reference? Thank you so much!
-
Toufong Vang ✭✭✭✭✭
Hi, here is another approach.
Let's say that your sheet is calledMy Sheet. Ensure that this sheet has the system column "Modified Date". In this sheet:
1) Create a Text/Number column named "Timestamp - Status In-Progress or On-Hold" (or something more preferrable).
2) Create a Text/Number column named "Completed Date".
3) Create a Text/Number column named "Last Status" (helper column)*.
4) Create a Text/Number column named "OK to Route?" (helper column) and place the column formula
=IF([Last Status]@row =[email protected], 0, 1)
5) Create a new sheet that has only the "Primary Column". Let's name this sheetMy Sheet - Record Dates(or something more preferrable).
6) Copy one row from "My Sheet" to "My Sheet - Record Dates". (Do this by left-clicking on the row number and select "Copy to Another Sheet..." from the options.)
7) Create a workflow automation configured as follows:
Trigger: When rows are changed...When Status changes to Any Value
Condition: When OK to Route? is equal to 1.
Action: Move rows...Move to "My Sheet - Record Date"
Open the sheetMy Sheet - Record Dates.
8) In the column "Timestamp - Status Changed to In-Progress or On-Hold", create the column formula
= IF( OR([email protected]="In Progress",[email protected]="On HOld"), [Modified Date]@row+"", "")
9) In the column "Completed Date" create the column formula
= IF( OR([email protected]="Completed",[email protected]="Canceled"), [Modified Date]@row+"", "")
10) In the column "Last Status" create the column formula
[email protected]
11) Create a workflow automation configured as follows:
Trigger: When rows are added or changed...When Primary Column changes to to Any Value
Conditions: Where "Timestamp - Status In-Progress or On-Hold" is not blank OR where "Completed Date" is not blank.
Action: Move rows...Move to "My Sheet"
Done!
Here's how this works.
At the time the row is created in My Sheet,Last Statusis blank andOK to Routeis 1.
WhenStatusis changed and saved,Modified Dateis recorded and automation moves the row into My Sheet - Record Date.
Depending on whatStatusis equal to, theModified Datewill be recorded inTimestamp - ...orCompleted Date. The formula inLast Statussets the value equal to whatever was recorded inStatus. Because the trigger was set to "When rows are added or changed" automation moves the recently added row back to My Sheet.
Now back in My Sheet,StatusandLast Statusare the same soOK to Route?is 0 (or False). This fails the condition for automation to move the row until someone changes the value inStatus.
_______________
*The helper columns prevent an infinite loop from occurring when automation moves a row back from "My Sheet - Record Date".
-
MBMaddox ✭
@Toufong VangWOW! Thank you so much for your very thorough and helpful answer. You are amazing!
-
Ali412 ✭
@Toufong VangThank you for the nice workaround!
I noticed that the returned rows are sent to the bottom of the sheet.
Is it possible to return the rows to the same location they were taken from?
-
Andrée Starå ✭✭✭✭✭✭
Hi@Ali412
I hope you're well and safe!
It's not possible with Toufong's excellent method, but you can do it with mine because it collects the value back to the same row.
More info:
Would that work/help?
I hope that helps!
Be safe, and have a fantastic week!
Best,
Andrée Starå| Workflow Consultant / CEO @WORK BOLD
✅我的帖子(s)帮助或吗answer your question or solve your problem? Please support the Community bymarking it Insightful/Vote Up, Awesome, or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå| Workflow Consultant / CEO @WORK BOLD
W:www.workbold.com| E:[email protected]| P: +46 (0) - 72 - 510 99 35
Feel free to contact me about help with Smartsheet, integrations, general workflow advice, or something else entirely.
-
Ali412 ✭
@Andrée StaråThanks Andre!
My issue is that I still do not have a unique ID per each row.
However, I realized that I don't really need accurate timestamp that much, so I might just settle for the workflow template of recording the date.
-
Andrée Starå ✭✭✭✭✭✭
Happy to help!
You can add an Autonumbering column and have the unique ID you need.
Make sense?
✅Remember!我的帖子(s)帮助或吗answer your question or solve your problem? Please support the Community bymarking it Insightful/Vote Up/Awesome or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå| Workflow Consultant / CEO @WORK BOLD
W:www.workbold.com| E:[email protected]| P: +46 (0) - 72 - 510 99 35
Feel free to contact me about help with Smartsheet, integrations, general workflow advice, or something else entirely.
-
Toufong Vang ✭✭✭✭✭
Hi,@Ali412, if you don't already have an auto-number column, then:
1) Sort the sheet in the order that you would like.
2) Create an auto-number column.
3) Sort the sheet on the auto-number column.
You can avoid having to perform the sort each time there is a new row if you use@Andrée Starå's "VLOOKUP/INDEX/MATCH" method.
Help Article Resources
Categories
=IFERROR(DATE(YEAR([Date Completed]@row) + 3, MONTH([Date Completed]@row), DAY([Date Completed]@row)), \"//www.santa-greenland.com/community/discussion/99332/\")<\/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":219,"urlcode":"Sheets","name":"Sheets"},{"tagID":254,"urlcode":"Formulas","name":"Formulas"},{"tagID":324,"urlcode":"community-platform","name":"Community Platform"},{"tagID":485,"urlcode":"community-champions","name":"Community Champions"}]},{"discussionID":106206,"type":"question","name":"Pie Chart breaks when values are zero","excerpt":"In a dashboard, pie charts are breaks the reference and shows as Unable to display chart when reference values are changed to zero as these vales calculated via formula. Only Bar charts are showing as No data to display. My end goal is to show as No data to display when values are zero. Kindly help me out here.","categoryID":322,"dateInserted":"2023-06-08T15:21:25+00:00","dateUpdated":null,"dateLastComment":"2023-06-08T18:01:33+00:00","insertUserID":162199,"insertUser":{"userID":162199,"name":"Gajapathi R M","title":"Mr","url":"https:\/\/community.smartsheet.com\/profile\/Gajapathi%20R%20M","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-08T17:37:33+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":45516,"lastUser":{"userID":45516,"name":"Paul Newcome","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Paul%20Newcome","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/082\/nQPUTVFKKWDJ2.jpg","dateLastActive":"2023-06-08T18:05:48+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":6,"countViews":24,"score":null,"hot":3372488578,"url":"https:\/\/community.smartsheet.com\/discussion\/106206\/pie-chart-breaks-when-values-are-zero","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106206\/pie-chart-breaks-when-values-are-zero","format":"Rich","tagIDs":[292],"lastPost":{"discussionID":106206,"commentID":379679,"name":"Re: Pie Chart breaks when values are zero","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/379679#Comment_379679","dateInserted":"2023-06-08T18:01:33+00:00","insertUserID":45516,"insertUser":{"userID":45516,"name":"Paul Newcome","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Paul%20Newcome","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/082\/nQPUTVFKKWDJ2.jpg","dateLastActive":"2023-06-08T18:05:48+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"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\/7KSJLJBZG3GE\/only-bar-chart-png.png","urlSrcSet":{"10":"","300":"","800":"","1200":"","1600":""},"alt":"Only Bar Chart.PNG"},"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-08T17:37:29+00:00","dateAnswered":"2023-06-08T17:12:16+00:00","acceptedAnswers":[{"commentID":379665,"body":"
So is it a sheet that has the calculations on it or a row report? If it is a sheet then you can add 0.00001 to all calculations and decrease the shown decimals. This will maintain some data greater than zero but only display zero.<\/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":292,"urlcode":"Dashboards","name":"Dashboards"}]},{"discussionID":106211,"type":"question","name":"SUMIFS and CONTAINS or MAX","excerpt":"Here's a fun one that's got me scratching my head. So I am trying to add the rows that contain the terms Agile Kanban and waterfall. SUM works, =SUMIF((Variable$2:Variable$9), HAS((Variable$2:Variable$9), (Variable@row)), (A$2:A$9)) returns a 0 and =SUMIF(Variable$2:Variable$9, CONTAINS(Variable@row,…","categoryID":322,"dateInserted":"2023-06-08T16:00:30+00:00","dateUpdated":"2023-06-08T16:04:20+00:00","dateLastComment":"2023-06-08T16:54:43+00:00","insertUserID":160886,"insertUser":{"userID":160886,"name":"Nicole V","title":"Financial Projects Manager","url":"https:\/\/community.smartsheet.com\/profile\/Nicole%20V","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!eiPlp6_hG7I!7GDve_5PRfo!yeqJFAgg3ow","dateLastActive":"2023-06-08T16:37:31+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":91566,"lastUserID":15741,"lastUser":{"userID":15741,"name":"ker9","url":"https:\/\/community.smartsheet.com\/profile\/ker9","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-08T18:28:06+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":4,"countViews":17,"score":null,"hot":3372485713,"url":"https:\/\/community.smartsheet.com\/discussion\/106211\/sumifs-and-contains-or-max","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106211\/sumifs-and-contains-or-max","format":"Rich","lastPost":{"discussionID":106211,"commentID":379659,"name":"Re: SUMIFS and CONTAINS or MAX","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/379659#Comment_379659","dateInserted":"2023-06-08T16:54:43+00:00","insertUserID":15741,"insertUser":{"userID":15741,"name":"ker9","url":"https:\/\/community.smartsheet.com\/profile\/ker9","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-08T18:28:06+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"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\/3BDTJOPMXHWQ\/image.png","urlSrcSet":{"10":"","300":"","800":"","1200":"","1600":""},"alt":"image.png"},"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-08T16:49:15+00:00","dateAnswered":"2023-06-08T16:36:32+00:00","acceptedAnswers":[{"commentID":379652,"body":"