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.

If Status is "Completed" then make % Complete "100%"

I need help with the formula to automatically make the % Complete be 100% for any row where Status is "Completed"

Do I put the formula in the % Complete cell? And if so, what formula? What I have tried so far does not work:

=IF(Status=Completed,%Complete=100%)

That's probably wrong for a variety of reasons, but I can't find the answer in my searches...

Thanks!

Tags:

Comments

  • Jamison
    Jamison ✭✭✭✭✭
    edited 08/25/16

    For future reference - this page is super helpful:http://help.smartsheet.com/articles/775363-using-formulas

    To answer your question:

    Yes, put it in the % Complete Cell.

    Depending on if you want to use the % Complete value as a number (in order to do comparisons like <, > ), you can do it a couple ways.

    To be able to use the % Complete column as a number and have it display as a percent:

    1. 1. Change the column to % format: Highlight the % Complete column and select the % icon in the left hand menu.
    2. 2. Put =If(Status1="Complete", 1) in the first row of the % complete column. this will return 1 which will be formatted to 100%.

    If you don't care that it is a number:

    1. Put =If(Status1="Complete", "100%") - notice the 100% ias now in quotes - but you won't be able to do any comparisons or calculations with this value without additional steps.

    公式是失踪的行号,renetheses around your string (Complete), and since it is already in that column, you do not need to put "%complete=" in there, it already knows that.

  • Huh. Thanks for the reply. It's not working for me though - I can't get the cell to show that a formula is in there (like, I don't see the prepended "fX" and it doesn't produce any result, ie "1" or "100%")

    I just see literally what I type into the cell. It's not treating it like a formula, it's just treating it like plain text. The current type is "Text/Number"

    I tried changing what you typed above to "Completed", since that's the value in the cell and I tried adding brackets around the value since I saw that in one of Smartsheet's examples (below) but it's still not calculating anything...

    EXAMPLE:

    =IF([Value 1]34 <= [Value 2]34, "Value 1 is less than or equal to Value 2", "Value 1 is greater than Value 2")

  • OK to troubleshoot further, I created a new column called "TEST" and left the current type as "Text/Number" and now it does work, in that column.

    I think part of the reason I can't make it work in the "% Complete" column (which is a column that existed by default in the Smartsheet template I used) is because the "column is being used in schedule calculations".

  • Jamison
    Jamison ✭✭✭✭✭

    Interesting - do you have a link to the template you used?

    Edit - also, yes, you need to make sure the column name matches up with the formula. I may not have used the exact column name you did in my example.

    Edit> I can't make it so anything that I start with a "=" doesn't automatically evaluate as a formula. Even just a lone "=" gives an "UNPARSEABLE" error.

  • Hi-- To confirm, we don't currently support using formulas in dependency-related columns when dependencies are enabled on a sheet. To get around this, you could either create the formulas in a second sheet, then use cell-linking to link them into your primary sheetorcreate the formulas in a new column in your primary sheet, link the values out to a secondary sheet, then cell-link them back to your primary sheet.

    Jamison-- If you want to "write out" a formula in Smartsheet and not have it evaluate, you can preface the formula with an apostrophe ( ' )!

  • Kennedy - that looks like it is working, but that was a bit painful. I chose the option of creating the formula on the main sheet, linking it out to a secondary and then linking it back to my %-Complete column.

    Having an option to be able to create formulas in the dependency columns - at least not in the rows that are roll-ups from other rows, would be a great feature.

    Thanks

  • what if i have more than one option e.g. completed = 100% and not done=0%, how do i use the formula to pick either of the two percentages?

  • J. Craig Williams
    J. Craig Williams ✭✭✭✭✭✭

    Domah,

    You'd likely build a Nested If (a series of IF statements) or combinations with the OR function.

    Craig

  • Hi,

    I tried doing the nested formula for the other options ("Not Started" equaling 0% and "In Progress" equaling 50%) but am not having any luck.

    I'm not to savvy when it comes to formulas but this is what I had based on the first part of the formula:

    =IF(OR(Status3="Complete", 1, IF(Status3=“In Progress”, .5, IF(Status3=“Not Started”, 0))))

    Any help is much appreciated!

    Jen

  • I need to add on to this. I am absolutely shocked smartsheet is incapable of this. Using formulas in cells is basic spreadsheet 101.

    Smartsheet absolutely needs to support formulas in dependency-related columns. Without this, nothing more than manually entered data is possible. And no, linking to other sheets, Zapier, or other 3rd party integrations are not acceptable solutions. Those options are useful if you're building a data pipeline between different data sources. We just need the ability to update cells in the same sheet based on other cells.

    For the smartsheet product managers, here's my request:

    1) Add support for formulas in dependency columns.

    2) If formulas in dependency columns is a technical problem and simply too hard to solve, add triggers for setting cell content. Triggers already exist for conditional formatting. Just extend that functionality to set cell values instead of formatting. For example, when the "Status" column is changed to "Complete", it sets the "% Complete" column to 1 (100%). That would also solve this problem. See attached image mockup of what I would expect this to look like.

    mockup-on-change-trigger.png

  • Mikey
    Mikey ✭✭✭✭

    Add my vote for this - I'm not too fussed about being able to write formula into dependency columns, I'd prefer it if the symbols that are designed to indicate progress (like the 0%, 25%, 50%, 75%, 100% 'Progress Pie' indicator) had the capability to be directly linked to % complete.

    Am I the only one that thinks it's a bit weird that I can indicate (say) 25% progress on an activity by selecting a progress indicating symbol, but it is not linked to the tasks actual progress?

    I've done the workaround thing of linking and updating from another sheet, but it's hardly an elegant solution, and needs careful management especially if lines are added or deleted in the target sheet.

This discussion has been closed.
Try this:<\/p>

=COUNTIFS([Item Number]:[Item Number], OR(@cell = \"C001\", @cell = \"COO2\", @cell = \"COO3\", @cell = \"COO4\"), [Status]:[Status], OR(@cell = \"Green\", @cell = \"Yellow\", @cell = \"Red\"))<\/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":109490,"type":"question","name":"HAS exact match within multiselect - Numbered Values","excerpt":"Scenario: Trying to identify a match if a value shows up in a multiselect from another sheet. Approach: I'm able to get 95% of this done through an index(collect(contains))) formula, but having some false positives show up wherever a partial match is found. I later found some suggestions that (has) would be more…","snippet":"Scenario: Trying to identify a match if a value shows up in a multiselect from another sheet. Approach: I'm able to get 95% of this done through an index(collect(contains)))…","categoryID":322,"dateInserted":"2023-08-25T19:26:32+00:00","dateUpdated":null,"dateLastComment":"2023-08-26T00:49:48+00:00","insertUserID":154049,"insertUser":{"userID":154049,"name":"Rob W.","url":"https:\/\/community.smartsheet.com\/profile\/Rob%20W.","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-26T00:49:37+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":154049,"lastUser":{"userID":154049,"name":"Rob W.","url":"https:\/\/community.smartsheet.com\/profile\/Rob%20W.","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-26T00:49:37+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":18,"score":null,"hot":3386003780,"url":"https:\/\/community.smartsheet.com\/discussion\/109490\/has-exact-match-within-multiselect-numbered-values","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/109490\/has-exact-match-within-multiselect-numbered-values","format":"Rich","lastPost":{"discussionID":109490,"commentID":392694,"name":"Re: HAS exact match within multiselect - Numbered Values","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/392694#Comment_392694","dateInserted":"2023-08-26T00:49:48+00:00","insertUserID":154049,"insertUser":{"userID":154049,"name":"Rob W.","url":"https:\/\/community.smartsheet.com\/profile\/Rob%20W.","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-26T00:49:37+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\/KJPRLKL2FW16\/capture-png.png","urlSrcSet":{"10":"","300":"","800":"","1200":"","1600":""},"alt":"Capture.PNG"},"attributes":{"question":{"status":"accepted","dateAccepted":"2023-08-26T00:49:35+00:00","dateAnswered":"2023-08-25T23:58:23+00:00","acceptedAnswers":[{"commentID":392688,"body":"

Hi, <\/p>

Instead of applying the formula to \"Multiselect Text String\" row, did you tried with \"Multiselect Values\" row?<\/p>

=IF(HAS([Multiselect Values]@row, [Component ID]@row), \"MATCH\", \"NO MATCH\")<\/p>

Thank you,<\/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":109474,"type":"question","name":"Help with date calculation formula","excerpt":"Hello, I'm trying to find a formula that will help me calculate how long an intake took to resolve. The rows I need to be calculated are Date Reported & Resolution Date. If the resolution date is blank I want it to use the current date in the calculation to see how long this issue has gone unresolved. Any help is much…","snippet":"Hello, I'm trying to find a formula that will help me calculate how long an intake took to resolve. The rows I need to be calculated are Date Reported & Resolution Date. If the…","categoryID":322,"dateInserted":"2023-08-25T16:29:39+00:00","dateUpdated":"2023-08-25T16:29:59+00:00","dateLastComment":"2023-08-25T23:01:30+00:00","insertUserID":165688,"insertUser":{"userID":165688,"name":"Nwest","title":"Systems Analyst","url":"https:\/\/community.smartsheet.com\/profile\/Nwest","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!ukHVZ18ImX4!BcjWAe8S9SY!l7iQo_PZHOx","dateLastActive":"2023-08-25T17:22:30+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":165688,"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-26T17:06:33+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":23,"score":null,"hot":3385987269,"url":"https:\/\/community.smartsheet.com\/discussion\/109474\/help-with-date-calculation-formula","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/109474\/help-with-date-calculation-formula","format":"Rich","tagIDs":[254],"lastPost":{"discussionID":109474,"commentID":392687,"name":"Re: Help with date calculation formula","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/392687#Comment_392687","dateInserted":"2023-08-25T23:01:30+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-26T17:06:33+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,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-08-25T17:04:22+00:00","dateAnswered":"2023-08-25T16:36:59+00:00","acceptedAnswers":[{"commentID":392622,"body":"

\n \n https:\/\/community.smartsheet.com\/discussion\/109474\/help-with-date-calculation-formula\n <\/a>\n<\/div>\n

Hi, <\/p>

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

Try something like this.<\/p>

=IF([Date Reported]@row <> \"//www.santa-greenland.com/community/discussion/comment/\", IF([Resolution Date]@row = \"//www.santa-greenland.com/community/discussion/comment/\", NETDAYS([Date Reported]@row, TODAY()), NETDAYS([Date Reported]@row, [Resolution Date]@row)))<\/p>

Did that work\/help? <\/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":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"}]}],"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