I need help writing a formula.
Best Answer
-
Carson Penticuff ✭✭✭✭✭
You would need to add another column to be able to make that calculation.
Answers
-
ker9 ✭✭✭✭✭✭
Please try this:
=IF([ColA]@row > 0, [ColB]@row - [ColA]@row, 0)
If ColA is <=0 then it will return 0
(change "ColA" and "ColB" to your actual column names)
Hope this helps!
-
It gave me back #Circular Reference
this is the formula I made
=IF([email protected]> 0,[email protected]-[email protected], 0)
It did not change if I put the row name in brackets [ ]
-
Carson Penticuff ✭✭✭✭✭
Are you putting the formula into the May or April row?
-
into the May row
-
Ray Lindstrom ✭✭✭✭✭✭
Which column are you pasting this formula into? Sounds like you're executing this formula in cell b if you're getting a circular reference. This formula won't work in cell/column b because it's the cell being evaluated and written to.
-
Yes I do get a circular reference. What I want to do if possible is if the month = $0 leave it as $0. but if the month is greater than $0 then take that amount and subtract it from the previous months amount to get the difference.
-
Carson Penticuff ✭✭✭✭✭
You would need to add another column to be able to make that calculation.
-
Ok, thank you!
-
Ray Lindstrom ✭✭✭✭✭✭
I believe once you reference that other column from the May (cell b) column, your circular reference error will return.
Help Article Resources
Categories
=SUMIFS({Ext Price}, {Activity Description}, CONTAINS(\"CF\", @cell))<\/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":106971,"type":"question","name":"Using SUMIFS Formula","excerpt":"Needing help writing a SUMIFS formula! I have tried a few ways, but just get errors. =SUMIFS({budget}, {Type}, \"AMR\", {leadership}, \"Truttmann\")) I would like to have the sum of the budget if the type is AMR and the leadership is Truttmann. I have multiple types and leaderships that I would be using this for. Thanks!","snippet":"Needing help writing a SUMIFS formula! I have tried a few ways, but just get errors. =SUMIFS({budget}, {Type}, \"AMR\", {leadership}, \"Truttmann\")) I would like to have the sum of…","categoryID":322,"dateInserted":"2023-06-27T18:45:22+00:00","dateUpdated":null,"dateLastComment":"2023-06-28T12:24:31+00:00","insertUserID":162642,"insertUser":{"userID":162642,"name":"jtomeaCH","title":"ISG Support Manager","url":"https:\/\/community.smartsheet.com\/profile\/jtomeaCH","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-28T12:25:13+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-28T12:29:28+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":5,"countViews":34,"score":null,"hot":3375849593,"url":"https:\/\/community.smartsheet.com\/discussion\/106971\/using-sumifs-formula","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106971\/using-sumifs-formula","format":"Rich","tagIDs":[254],"lastPost":{"discussionID":106971,"commentID":382799,"name":"Re: Using SUMIFS Formula","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/382799#Comment_382799","dateInserted":"2023-06-28T12:24:31+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-28T12:29:28+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":"2023-06-27T20:19:39+00:00","dateAnswered":"2023-06-27T19:59:16+00:00","acceptedAnswers":[{"commentID":382688,"body":"
Double check your cross sheet references. Make sure they are all single columns by clicking on the appropriate column header.<\/p>
<\/p>
When doing this, give the sheet a little time to load before selecting the column. Sometimes moving too fast allows you to select a column header before the sheet fully loads in the creator window. Then when the sheet does finally completely load in, the selection automatically reverts to the home cell (top right corner). This happens to me quite a bit when I am in a hurry.<\/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":106984,"type":"question","name":"Using Countif to count Often and Very Often,","excerpt":"however I can't get it to work the Often is also counting the Very Often: =COUNTIF([Tools & Resources (SE-2)]8:[Tools & Resources (SE-2)]12, HAS(\"Often\", @cell), NOT(HAS(\"Very\", @cell)))","snippet":"however I can't get it to work the Often is also counting the Very Often: =COUNTIF([Tools & Resources (SE-2)]8:[Tools & Resources (SE-2)]12, HAS(\"Often\", @cell), NOT(HAS(\"Very\",…","categoryID":322,"dateInserted":"2023-06-27T22:21:22+00:00","dateUpdated":"2023-06-27T22:25:38+00:00","dateLastComment":"2023-06-27T22:37:19+00:00","insertUserID":13941,"insertUser":{"userID":13941,"name":"steinkj","title":"","url":"https:\/\/community.smartsheet.com\/profile\/steinkj","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/drupal_profile\/files\/2017-04\/84\/c0\/n84c060f2d4e16db2de757af80ad4cdca.png","dateLastActive":"2023-06-27T22:35:42+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭"},"updateUserID":13941,"lastUserID":13941,"lastUser":{"userID":13941,"name":"steinkj","title":"","url":"https:\/\/community.smartsheet.com\/profile\/steinkj","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/drupal_profile\/files\/2017-04\/84\/c0\/n84c060f2d4e16db2de757af80ad4cdca.png","dateLastActive":"2023-06-27T22:35:42+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":24,"score":null,"hot":3375811121,"url":"https:\/\/community.smartsheet.com\/discussion\/106984\/using-countif-to-count-often-and-very-often","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106984\/using-countif-to-count-often-and-very-often","format":"Rich","lastPost":{"discussionID":106984,"commentID":382723,"name":"Re: Using Countif to count Often and Very Often,","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/382723#Comment_382723","dateInserted":"2023-06-27T22:37:19+00:00","insertUserID":13941,"insertUser":{"userID":13941,"name":"steinkj","title":"","url":"https:\/\/community.smartsheet.com\/profile\/steinkj","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/drupal_profile\/files\/2017-04\/84\/c0\/n84c060f2d4e16db2de757af80ad4cdca.png","dateLastActive":"2023-06-27T22:35:42+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":"2023-06-28T09:04:26+00:00","dateAnswered":"2023-06-27T22:35:14+00:00","acceptedAnswers":[{"commentID":382720,"body":"