这能做到吗?圆"-" IF +

我可以用算术表来做,但我想尝试用一个公式来做。不确定能不能做到!

我现在有一个公式可以给出一个数字。我们称它为17.35

然后,我将数字四舍五入,将它们分成2个不同的单元格

第一行=17.35

第2行=ROUND([Column1] 1,0)答案是17(在Excel中我使用TRUNC

第3行=[Column1]1 - [Column1]20.35

第4行=IF([Column1]3 < 0.25, [Column1]2, IF([Column1]3 > 0.75, [Column1]2 + 1, [Column1]2 + 0.5)17.50

  • 乔有关的
标签:

最佳答案

  • 好看的Shiobara
    ✓回答

    听起来你想MROUND ()哪个四舍五入到最近的倍数,但您的具体示例的边界由您的如果()有点不同MROUND ()的行为。

    试一试:

    = MROUND (0.5 [Column1])

    [Column1]1 = 17,您的第4行值将为17也会如此MROUND ()价值。

    [Column1]1 = 17.25,两者都将17.5

    [Column1]1 = 17.76,两者都将18

    [Column1]1 = 17.74,两者都将17.5

    但是![Column1]1 = 17.75,您的第4行值将为17.5MROUND ()价值将是18

    如果你需要准确的行为如果表达式,你仍然可以用一个公式来做,但它会很长:

    =ROUNDDOWN([Column1] 1,0) + IF([Column1]1 - ROUNDDOWN([Column1] 1,0) < 0.25, 0, IF([Column1]1 - ROUNDDOWN([Column1] 1,0) > 0.75, 1,0.5)))

    希望这能有所帮助,

    好看的

答案

  • 好看的Shiobara
    ✓回答

    听起来你想MROUND ()哪个四舍五入到最近的倍数,但您的具体示例的边界由您的如果()有点不同MROUND ()的行为。

    试一试:

    = MROUND (0.5 [Column1])

    [Column1]1 = 17,您的第4行值将为17也会如此MROUND ()价值。

    [Column1]1 = 17.25,两者都将17.5

    [Column1]1 = 17.76,两者都将18

    [Column1]1 = 17.74,两者都将17.5

    但是![Column1]1 = 17.75,您的第4行值将为17.5MROUND ()价值将是18

    如果你需要准确的行为如果表达式,你仍然可以用一个公式来做,但它会很长:

    =ROUNDDOWN([Column1] 1,0) + IF([Column1]1 - ROUNDDOWN([Column1] 1,0) < 0.25, 0, IF([Column1]1 - ROUNDDOWN([Column1] 1,0) > 0.75, 1,0.5)))

    希望这能有所帮助,

    好看的

帮助文章资源欧宝体育app官方888

想直接在Smartsheet中练习使用公式吗?

请查看公式手册模板!
@connett<\/a> Unfortunately, no. Not with Smartsheet forms.<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question","log":{"dateUpdated":"2022-12-09 20:11:47","updateUser":{"userID":155858,"name":"connett","url":"https:\/\/community.smartsheet.com\/profile\/connett","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2022-12-09T20:10:08+00:00","banned":0,"punished":0,"private":false,"label":"✭"}}},"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":98632,"type":"question","name":"Formula for If Date is Blank or Not Blank, set Status symbol to Red\/Green","excerpt":"Hi everyone!! I am struggling with finding the correct formula to indicate status of task (shown by symbols) based on if a date is submitted into another cell. In words, I'd like to have the formula be set to make the status symbol \"Green\" if Column \"Date\" is not blank. I would also like the formula to make the status…","categoryID":322,"dateInserted":"2022-12-09T18:56:55+00:00","dateUpdated":null,"dateLastComment":"2022-12-09T19:43:16+00:00","insertUserID":152534,"insertUser":{"userID":152534,"name":"Jessewise","url":"https:\/\/community.smartsheet.com\/profile\/Jessewise","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2022-12-09T19:45:24+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":152534,"lastUser":{"userID":152534,"name":"Jessewise","url":"https:\/\/community.smartsheet.com\/profile\/Jessewise","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2022-12-09T19:45:24+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":29,"score":null,"hot":3341229011,"url":"https:\/\/community.smartsheet.com\/discussion\/98632\/formula-for-if-date-is-blank-or-not-blank-set-status-symbol-to-red-green","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/98632\/formula-for-if-date-is-blank-or-not-blank-set-status-symbol-to-red-green","format":"Rich","lastPost":{"discussionID":98632,"commentID":353886,"name":"Re: Formula for If Date is Blank or Not Blank, set Status symbol to Red\/Green","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/353886#Comment_353886","dateInserted":"2022-12-09T19:43:16+00:00","insertUserID":152534,"insertUser":{"userID":152534,"name":"Jessewise","url":"https:\/\/community.smartsheet.com\/profile\/Jessewise","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2022-12-09T19:45:24+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,"attributes":{"question":{"status":"accepted","dateAccepted":"2022-12-09T19:42:54+00:00","dateAnswered":"2022-12-09T19:27:00+00:00","acceptedAnswers":[{"commentID":353882,"body":"

Try this:<\/p>

=IF(Date@row <> \"//www.santa-greenland.com/community/discussion/91571/\", \"Green\", \"Red\")<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question","log":{"dateUpdated":"2022-12-09 19:42:54","updateUser":{"userID":152534,"name":"Jessewise","url":"https:\/\/community.smartsheet.com\/profile\/Jessewise","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2022-12-09T19:45:24+00:00","banned":0,"punished":0,"private":false,"label":"✭"}}},"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":98615,"type":"question","name":"Cannot get total number of checked boxes to work","excerpt":"I have tried every formula i could find here, but i cannot get it to count how many checkboxes are checked in a column. The checkboxes are in Column \"Check\" and go from row 1-99\" i am putting the formula in row 100 (so directly below the checkboxes). Here is the formula i have narrowed it down to, but still doesnt work:…","categoryID":322,"dateInserted":"2022-12-09T15:08:46+00:00","dateUpdated":null,"dateLastComment":"2022-12-09T18:38:27+00:00","insertUserID":155843,"insertUser":{"userID":155843,"name":"Jhoaas","url":"https:\/\/community.smartsheet.com\/profile\/Jhoaas","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2022-12-09T18:11:45+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":148574,"lastUser":{"userID":148574,"name":"Ryan Sides","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Ryan%20Sides","photoUrl":"https:\/\/lh3.googleusercontent.com\/a\/AEdFTp4daj1zcf91nI29fOQD59cy3z-VGRPfGKMTIxsCOA=s96-c","dateLastActive":"2022-12-09T21:45:14+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":4,"countViews":35,"score":null,"hot":3341212033,"url":"https:\/\/community.smartsheet.com\/discussion\/98615\/cannot-get-total-number-of-checked-boxes-to-work","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/98615\/cannot-get-total-number-of-checked-boxes-to-work","format":"Rich","lastPost":{"discussionID":98615,"commentID":353869,"name":"Re: Cannot get total number of checked boxes to work","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/353869#Comment_353869","dateInserted":"2022-12-09T18:38:27+00:00","insertUserID":148574,"insertUser":{"userID":148574,"name":"Ryan Sides","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Ryan%20Sides","photoUrl":"https:\/\/lh3.googleusercontent.com\/a\/AEdFTp4daj1zcf91nI29fOQD59cy3z-VGRPfGKMTIxsCOA=s96-c","dateLastActive":"2022-12-09T21:45:14+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,"attributes":{"question":{"status":"accepted","dateAccepted":"2022-12-09T18:13:18+00:00","dateAnswered":"2022-12-09T16:28:49+00:00","acceptedAnswers":[{"commentID":353821,"body":"

Hi @Jhoaas<\/a> , give your formula a \"//www.santa-greenland.com/community/discussion/91571/\" at the end to convert your formula into a text string.<\/p>

=COUNTIFS(Check1:Check99, 1)+\"//www.santa-greenland.com/community/discussion/91571/\"<\/p>

Let me know if that works for you.<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question","log":{"dateUpdated":"2022-12-09 18:13:18","updateUser":{"userID":155843,"name":"Jhoaas","url":"https:\/\/community.smartsheet.com\/profile\/Jhoaas","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2022-12-09T18:11:45+00:00","banned":0,"punished":0,"private":false,"label":"✭"}}},"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":[]}],"title":"Trending in Formulas and Functions ","subtitle":null,"description":null,"noCheckboxes":true,"containerOptions":[],"discussionOptions":[]}">