Welcome to the Smartsheet Forum Archives


The posts in this forum are no longer monitored for accuracy and their content may no longer be current. If there's a discussion here that interests you and you'd like to find (or create) a more current version, pleaseVisit the Current Forums.

我怎么能有条件地更新一个计算单元b吗ut leave the current value there if the condition fails?

Jim Hook
Jim Hook ✭✭✭✭✭✭
edited 12/09/19 inArchived 2015 Posts

I keep track of about 40 active projects in our company. Among other things, I keep one Smartsheet on each project that shows the hours worked by several different functional areas on a week-by-week basis. I only want to put the current week's hours into the project history row for the current week after they have been validated. I have tried to find a way to do this using an IF statement that would do the following: IF(A=B,C,do nothing), in other words if the condition A=B, is true, put the value C in the cell, else if the condition fails, leave the old value in the cell. There is a way to do this in Excel but I haven't been able to find a way in Smartsheet. Instead I have to manually open each project sheet and do a copy and paste from where the weekly data comes into the sheet (via links from employee project timesheets) into the proper row in the project history. I only have to do this once a week but I would like to make it more automatic.

Tags:

Comments

  • PPS Solutions
    PPS Solutions ✭✭✭✭✭

    Hi Jim, before exhausting the formulae route further have you considered using reports? Create a report which lists all 40 projects' worth of data (use Today() function to filter down to "this week's" time entries) then block copy and paste the data into your sheet containing the history of weekly approved time. If you are (I was not sure from your comment?) that you are using a single sheet per project to keep history seperate then create a report for that using the history sheets and filter for "this week's" blank rows and then use paste to get the data in. Basically use reports..

    Not sure if that helps?

  • Jim Hook
    Jim Hook ✭✭✭✭✭✭

    Hi Peter,

    Today the data flow through my system starts with employee project timesheets which all get linked into a combined department total for each project that their department head can view. From there all the departments get consolidated on a project-by-project basis onto a master project timesheet and from there the data goes to the individual project tracking sheets. All the transfers are done with links from one sheet to the next and I rely on the structure and sequence of projects and functions to make the linking realistic (by that I mean being able to link hundreds of cells in a single operation when creating the data flow). I have tried to use reports to do this but the sequence of charges by project and function are basically random and cannot easily be sorted out in a way that would make getting them into the individual project tracking sheets practical. After getting into the individual project tracking sheets the data goes into a number of additional Smartsheets for financial analysis. Again, this is all done via links.

    I do also keep an Excel database of all employee project charges since we began using this system in January 2014. I use a Smartsheet report, almost exactly as you stated, to extract the weekly charges from all the possible charges before exporting them to Excel and adding them to the database for pivot table analysis. This comes in handy when a supervisor asks what their employee worked on for the past year in preparation for performance evaluations, etc.

  • Jeremy Michels
    Jeremy Michels ✭✭✭✭✭

    I may have a solution to this. I track many projects the same way. All of the projects are on one sheet though. I have columns for each month that needs tracked. In you case weeks. The weeks auto fill off of a formula. The formula uses a trigger to tell them where to go. So in our case we use moths and the trigger tells it to go to one column or the other every month. If it is jauary it goes to Juanuary by enter a 1 into the trigger cooumn. IF it goes to the othe column for Jauary it is 1.1. If you do like this you can use the data to flow into the linked cells add the trigger and it will pop it in the correct cell for the month total to the top and link ot to the next report. I run about 2600 line items on one sheet for 12 very large jobs this way with out a hitch.

    One key would be to add the new rows under the parent row of the project and add a child row per person or week as you would need. In my case I have a fixed set of items per job at the start. So I copy all of my sheets to maintain the flow. As items need to be added they are added at the bottom.

  • Jim Hook
    Jim Hook ✭✭✭✭✭✭

    Hi Jeremy,

    Thanks for the inputs. I understand how your system works with the trigger and that's what I've been trying to find a way to do in my case. I'm not sure it will work with the way my sheets are structured but I'll give it some additional thought. In my case I can easily use your approach for the current and future weeks but keeping past week rows from changing is my problem since the IF formula in those cells cannot "do nothing" if the weekly dates don't match when the trigger is set. Also, in my case I would set the trigger from a central linked location and want it to automatically update all 40 project sheets without my having to open them individually. I'm not sure when Smeartsheet would do that--would it happen in the background automatically or wait until the next time I opened each sheet which would defeat the purpose.

  • Travis
    Travis Employee

    Jim, there is a trick which can ‘open and update’ (in the background) as many sheets as you want by changing a cell in a single sheet. To do this we will use cell linking. I suggest using a checkbox because all you will have to do is check/uncheck the box, but you could realistically use almost any cell type to do this. Link a single cell out to all 40 sheets (maybe in the first row of each sheet). When you edit the source cell, all the sheets it is linked out to will update with the new information. If you use a checkbox, you will just need to check or uncheck the box each day and all the linked sheets will ‘open and update’ in the background.

  • Jim Hook
    Jim Hook ✭✭✭✭✭✭

    Thanks Travis. I do use the method you outlined to distribute information across multiple sheets. After thinking about it for a minute I realized that Smartsheet does automatically update everything on a sheet when new cell links arrive since in some cases I have several serial links from one sheet to another to another and a change at the beginning has rippled through them all even though I am only looking at the last one.

This discussion has been closed.
Hi @David Sprague<\/a>, <\/p>

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

There's a known issue at the moment.<\/p>

I'll get back to the post if I can find the thread.<\/p>

I hope that helps!<\/p>

Be safe, and have a fantastic weekend!<\/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":321,"name":"Smartsheet Basics","url":"https:\/\/community.smartsheet.com\/categories\/smartsheet-basics%2B","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":108880,"type":"question","name":"Recover a Row that was accidentally moved then deleted","excerpt":"I was attempting to copy a row from sheet 1 to sheet 2, but I accidentally moved the row then deleted it, but then realized belatedly that the original (now deleted) data in sheet 1 had been moved. Apparently one can not simply use the \"undo action\" arrow after moving something--the option is grayed out as in not…","snippet":"I was attempting to copy a row from sheet 1 to sheet 2, but I accidentally moved the row then deleted it, but then realized belatedly that the original (now deleted) data in sheet…","categoryID":321,"dateInserted":"2023-08-11T22:27:56+00:00","dateUpdated":null,"dateLastComment":"2023-08-12T05:12:42+00:00","insertUserID":165013,"insertUser":{"userID":165013,"name":"GlennJo","title":"Riparian Stewardship Program Manager","url":"https:\/\/community.smartsheet.com\/profile\/GlennJo","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-12T03:46:04+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":165013,"lastUser":{"userID":165013,"name":"GlennJo","title":"Riparian Stewardship Program Manager","url":"https:\/\/community.smartsheet.com\/profile\/GlennJo","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-12T03:46:04+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":32,"score":null,"hot":3383611238,"url":"https:\/\/community.smartsheet.com\/discussion\/108880\/recover-a-row-that-was-accidentally-moved-then-deleted","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/108880\/recover-a-row-that-was-accidentally-moved-then-deleted","format":"Rich","lastPost":{"discussionID":108880,"commentID":390348,"name":"Re: Recover a Row that was accidentally moved then deleted","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/390348#Comment_390348","dateInserted":"2023-08-12T05:12:42+00:00","insertUserID":165013,"insertUser":{"userID":165013,"name":"GlennJo","title":"Riparian Stewardship Program Manager","url":"https:\/\/community.smartsheet.com\/profile\/GlennJo","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-12T03:46:04+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":"Smartsheet Basics","url":"https:\/\/community.smartsheet.com\/categories\/smartsheet-basics%2B"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-08-12T03:46:02+00:00","dateAnswered":"2023-08-11T23:45:38+00:00","acceptedAnswers":[{"commentID":390342,"body":"

\n \n https:\/\/community.smartsheet.com\/discussion\/108880\/recover-a-row-that-was-accidentally-moved-then-deleted\n <\/a>\n<\/div>\n

Hey @GlennJo<\/a>,<\/p>

the sheet should be available in the owner of the sheet, deleted files. If it is specifically a row of data that was deleted, you can try checking the activity log to see if it shows the removed data there.<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":321,"name":"Smartsheet Basics","url":"https:\/\/community.smartsheet.com\/categories\/smartsheet-basics%2B","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":108840,"type":"question","name":"WorkApps - Admin Permissions on Assets","excerpt":"Hi, We are using WorkApps more and more to create a \"one-stop shop\" where users can go to access forms, sheets, reports, dashboards & dynamic views. Some users have admin access to sheets, and we lock certain columns to ensure that editors can only amend specific information. However, when sheet admins use WorkApps then…","snippet":"Hi, We are using WorkApps more and more to create a \"one-stop shop\" where users can go to access forms, sheets, reports, dashboards & dynamic views. Some users have admin access…","categoryID":343,"dateInserted":"2023-08-11T03:12:23+00:00","dateUpdated":"2023-08-11T08:46:32+00:00","dateLastComment":"2023-08-12T15:07:07+00:00","insertUserID":125212,"insertUser":{"userID":125212,"name":"Neil Watson","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Neil%20Watson","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!pglbKXXltro!HIFbX6W_ivo!Lnqe5-nvNY5","dateLastActive":"2023-08-12T21:42:58+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"updateUserID":91566,"lastUserID":8888,"lastUser":{"userID":8888,"name":"Andrée Starå","title":"Smartsheet Expert Consultant & Partner | Workflow Consultant \/ CEO @ WORK BOLD","url":"https:\/\/community.smartsheet.com\/profile\/Andr%C3%A9e%20Star%C3%A5","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/0PAU3GBYQLBT\/nXWM7QXGD6464.jpg","dateLastActive":"2023-08-13T10:56:13+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":34,"score":null,"hot":3383578170,"url":"https:\/\/community.smartsheet.com\/discussion\/108840\/workapps-admin-permissions-on-assets","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/108840\/workapps-admin-permissions-on-assets","format":"Rich","lastPost":{"discussionID":108840,"commentID":390361,"name":"Re: WorkApps - Admin Permissions on Assets","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/390361#Comment_390361","dateInserted":"2023-08-12T15:07:07+00:00","insertUserID":8888,"insertUser":{"userID":8888,"name":"Andrée Starå","title":"Smartsheet Expert Consultant & Partner | Workflow Consultant \/ CEO @ WORK BOLD","url":"https:\/\/community.smartsheet.com\/profile\/Andr%C3%A9e%20Star%C3%A5","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/0PAU3GBYQLBT\/nXWM7QXGD6464.jpg","dateLastActive":"2023-08-13T10:56:13+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":"Add Ons and Integrations","url":"https:\/\/community.smartsheet.com\/categories\/apps-and-integrations"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-08-11T23:36:29+00:00","dateAnswered":"2023-08-11T18:10:14+00:00","acceptedAnswers":[{"commentID":390276,"body":"

Sounds about right. Are you looking for some kind of guidance on a specific issue?<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":343,"name":"Add Ons and Integrations","url":"https:\/\/community.smartsheet.com\/categories\/apps-and-integrations","allowedDiscussionTypes":["discussion","question"]},"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&includeChildCategories=1&type%5B0%5D=Question&excludeHiddenCategories=1&siteSectionID=0&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 Posts","subtitle":null,"description":null,"noCheckboxes":true,"containerOptions":[],"discussionOptions":[]}">

Trending Posts