Countifs with Column Formulas

Deb Allen
Deb Allen ✭✭✭
edited 12/17/20 inFormulas and Functions

I need a formula that will count if a course is completed and the month, for example

=COUNTIFS(Month:Month, ="October", Status:Status, ="completed")

This is returning the correct information.

But, I am using a column formula for the Month and the COUNTIFS formula only works if the column formula is removed. Once I convert the Month column back to a column formula the above formula no longer works. I tried adding an IFERROR, but that didn't work either. Any suggestions?

Answers

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    What is the exact column formula you are using?

  • Deb Allen
    Deb Allen ✭✭✭

    Hi, Paul

    Here is the column formula I'm using.

    =IF(MONTH([Start Date]@row) = 1, "January", IF(MONTH([Start Date]@row) = 2, "February", IF(MONTH([Start Date]@row) = 3, "March", IF(MONTH([Start Date]@row) = 4, "April", IF(MONTH([Start Date]@row) = 5, "May", IF(MONTH([Start Date]@row) = 6, "June", IF(MONTH([Start Date]@row) = 7, "July", IF(MONTH([Start Date]@row) = 8, "August", IF(MONTH([Start Date]@row) = 9, "September", IF(MONTH([Start Date]@row) = 10, "October", IF(MONTH([Start Date]@row) = 11, "November", IF(MONTH([Start Date]@row) = 12, "December"))))))))))))

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    Hmm... You may want to reach out to support. I have tested using a COUNTIFS on a column containing formulas and then converting that formula into a column formula, and it continued to work just fine for me.

  • Deb Allen
    Deb Allen ✭✭✭
    edited 12/17/20

    Ok, thank you for getting back to me! I will reach out to support.

    I should have noted before, not every row has data, so I don't know if that is where the issue is. It only is an issue with the Month column when I convert to the Column formula.

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    That shouldn't be an issue. It may just be that the sheet needs refreshed on the back-end (which support can do).

  • Genevieve P.
    Genevieve P. Employee Admin

    Hi@Deb Allen

    I touched base with our Support team about this and they have let me know they just sent you an email with a possible solution.

    Since you are using the MONTH function and you noted that this doesn't work when your rows don't have data, it's likely that you just need towrap an IFERROR statementaround each MONTH function.

    The emailed response has an example of how to do this:

    =IF(IFERROR(MONTH([Start Date]@row),0) = 1, "January"... etc.

    Please do let us know if this has resolved your issue!

    Cheers,

    Genevieve

  • Deb Allen
    Deb Allen ✭✭✭

    It did, thank you so much!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out theFormula Handbook template!
you need the last if to be <=1 then Full<\/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":111351,"type":"question","name":"If or Isblank Formula","excerpt":"I am trying to write this formula, if the cell is blank return value of 0, OR if the cell contains the word resource return value of 0, otherwise return the value of 3 for both. I have written this formula 500 times today and cannot get it right, can someone help? =IF(OR(ISBLANK(Title@row), 0, 3), (Title@row = \"Resource\"),…","snippet":"I am trying to write this formula, if the cell is blank return value of 0, OR if the cell contains the word resource return value of 0, otherwise return the value of 3 for both. I…","categoryID":322,"dateInserted":"2023-10-06T19:39:59+00:00","dateUpdated":null,"dateLastComment":"2023-10-06T20:14:14+00:00","insertUserID":132094,"insertUser":{"userID":132094,"name":"Renae Gould","url":"https:\/\/community.smartsheet.com\/profile\/Renae%20Gould","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!6VVQ-oCrcYQ!xZdesVKV87w!18ODegDWWxO","dateLastActive":"2023-10-06T20:12:36+00:00","banned":0,"punished":0,"private":false,"label":"✭✭"},"updateUserID":null,"lastUserID":132094,"lastUser":{"userID":132094,"name":"Renae Gould","url":"https:\/\/community.smartsheet.com\/profile\/Renae%20Gould","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!6VVQ-oCrcYQ!xZdesVKV87w!18ODegDWWxO","dateLastActive":"2023-10-06T20:12:36+00:00","banned":0,"punished":0,"private":false,"label":"✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":20,"score":null,"hot":3393245653,"url":"https:\/\/community.smartsheet.com\/discussion\/111351\/if-or-isblank-formula","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/111351\/if-or-isblank-formula","format":"Rich","lastPost":{"discussionID":111351,"commentID":398982,"name":"Re: If or Isblank Formula","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/398982#Comment_398982","dateInserted":"2023-10-06T20:14:14+00:00","insertUserID":132094,"insertUser":{"userID":132094,"name":"Renae Gould","url":"https:\/\/community.smartsheet.com\/profile\/Renae%20Gould","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!6VVQ-oCrcYQ!xZdesVKV87w!18ODegDWWxO","dateLastActive":"2023-10-06T20:12:36+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-10-06T22:08:44+00:00","dateAnswered":"2023-10-06T19:47:59+00:00","acceptedAnswers":[{"commentID":398978,"body":"

Try: =IF(OR(ISBLANK(Title@row), Title@row = \"Resource\"), 0, 3)<\/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":111329,"type":"question","name":"IF Statements and Summing Children","excerpt":"Hi there - I need a hand with a formula. I'm trying to do the following: Show the difference between Budgeted Amount and Quote Amount unless there is a value in the Actual Amount column, then I'd like to show the difference between the Budgeted Amount and the Actual Amount. But I only want to calculate those values if the…","snippet":"Hi there - I need a hand with a formula. I'm trying to do the following: Show the difference between Budgeted Amount and Quote Amount unless there is a value in the Actual Amount…","categoryID":322,"dateInserted":"2023-10-06T16:41:19+00:00","dateUpdated":null,"dateLastComment":"2023-10-06T19:01:55+00:00","insertUserID":159342,"insertUser":{"userID":159342,"name":"Beth Fantozzi 1","url":"https:\/\/community.smartsheet.com\/profile\/Beth%20Fantozzi%201","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-10-06T19:37:27+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭"},"updateUserID":null,"lastUserID":159342,"lastUser":{"userID":159342,"name":"Beth Fantozzi 1","url":"https:\/\/community.smartsheet.com\/profile\/Beth%20Fantozzi%201","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-10-06T19:37:27+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":32,"score":null,"hot":3393230594,"url":"https:\/\/community.smartsheet.com\/discussion\/111329\/if-statements-and-summing-children","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/111329\/if-statements-and-summing-children","format":"Rich","lastPost":{"discussionID":111329,"commentID":398969,"name":"Re: IF Statements and Summing Children","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/398969#Comment_398969","dateInserted":"2023-10-06T19:01:55+00:00","insertUserID":159342,"insertUser":{"userID":159342,"name":"Beth Fantozzi 1","url":"https:\/\/community.smartsheet.com\/profile\/Beth%20Fantozzi%201","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-10-06T19:37:27+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\/8PZPFEHHKZ5S\/image.png","urlSrcSet":{"10":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=10\/https:\/\/us.v-cdn.net\/6031209\/uploads\/8PZPFEHHKZ5S\/image.png","300":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=300\/https:\/\/us.v-cdn.net\/6031209\/uploads\/8PZPFEHHKZ5S\/image.png","800":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=800\/https:\/\/us.v-cdn.net\/6031209\/uploads\/8PZPFEHHKZ5S\/image.png","1200":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=1200\/https:\/\/us.v-cdn.net\/6031209\/uploads\/8PZPFEHHKZ5S\/image.png","1600":"https:\/\/us.v-cdn.net\/cdn-cgi\/image\/fit=scale-down,width=1600\/https:\/\/us.v-cdn.net\/6031209\/uploads\/8PZPFEHHKZ5S\/image.png"},"alt":"image.png"},"attributes":{"question":{"status":"accepted","dateAccepted":"2023-10-06T19:01:13+00:00","dateAnswered":"2023-10-06T18:49:07+00:00","acceptedAnswers":[{"commentID":398967,"body":"

@Beth Fantozzi 1<\/a> <\/p>

I got you - use this:<\/p>

=IF(COUNT(CHILDREN()) > 0, SUM(CHILDREN()), IF(AND(NOT(ISNUMBER([Quote Amount]@row)), NOT(ISNUMBER([Actual Amount]@row))), 0, IF(ISNUMBER([Actual Amount]@row), [Budgeted Amount]@row - [Actual Amount]@row, [Budgeted Amount]@row - [Quote Amount]@row)))<\/p><\/div><\/div>

It ends up looking like this:<\/p>

\n
\n \n \"image.png\"<\/img><\/a>\n <\/div>\n<\/div>\n

<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>

_____________________________________________________________________________________________<\/p>

👨🏼‍💻 Dan Palenchar | <\/strong>School of Sheets Solutions Consulting<\/strong><\/a> | Smartsheet Aligned Gold Partner<\/strong><\/p>

If this response helped you please help me & the community by accepting it and reacting as you see fit (💡insightful, ⬆️ Vote Up, and\/or ❤️Awesome).<\/em><\/p>

🆘 Smartsheet Consulting Inquiries: schoolofsheets.com\/workwithus<\/a><\/p>

▶️ Smartsheet Tutorial Videos: schoolofsheets.com\/youtube<\/a><\/p>

PS - If you have a follow up response attention use @Dan Palenchar<\/a> so I get notified of your reply!<\/strong><\/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":[]}],"initialPaging":{"nextURL":"https:\/\/community.smartsheet.com\/api\/v2\/discussions?page=2&categoryID=322&includeChildCategories=1&type%5B0%5D=Question&excludeHiddenCategories=1&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 in Formulas and Functions ","subtitle":null,"description":null,"noCheckboxes":true,"containerOptions":[],"discussionOptions":[]}">

Trending in Formulas and Functions