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.

Formula help - if cell is blank, checkmark cannot be checked

Loann McGee
Loann McGee ✭✭✭✭✭✭
edited 12/09/19 inArchived 2015 Posts

Brain cells are missing. I've looked through the formula examples and can't seem to put together the formula I need.

We have a column that needs to have text in it before the Checkmark column should be marked with a check.

Here's the scenario: IF column B is empty, checkbox cannot be checked.

This will help our team remember that they have to input data into Column B before they mark the row complete.

Blessings,

Loann

Comments

  • John Sauber
    John Sauber ✭✭✭✭✭✭

    Hi Loann,

    I believe you need a third column to flag what you want. I am assuming the two columns which get edited are called ColumnB (Text/Number type) and ColumnCheck (Checkbox type). Call the third column WrongOrder (Flag type).

    WrongOrder1=IF(AND(ISBLANK(ColumnB1), ColumnCheck1 = 1), 1, 0)

    In order to keep the sheet as clean as it was before the column was added, you could hide the WrongOrder column, and run conditional formatting based on the flag presence to highlight the cell that was checked and shouldn't yet be.

  • JohnHinkle
    JohnHinkle ✭✭✭✭✭✭

    You could also set up a formatting rule that will color the background of the checkbox cell if the corresponding columnB cell is blank. It wouldnt prevent the users from checking the box but it could be a warning not to.

  • John Sauber
    John Sauber ✭✭✭✭✭✭

    I like your suggestion, John. One color could be the warning, and another conditional formatting rule could be where columnB is blank AND ColumnCheck is checked could be a stronger color.

  • Loann McGee
    Loann McGee ✭✭✭✭✭✭

    John S - I used your formula to no avail. Help?

    Here's what I did, naming the column as you suggested, but using our existing column names: WrongOrder1=IF(AND(ISBLANK(CIOProcessNotes1), CIOComplete1 = 1), 1, 0)


    The result I need is if the CIO Process Notes is blank, CIO Complete does not have a checkbox.

    I entered the above formula in the Wrong Order column, saved, then added text to the CIO Process Notes column and saved my changes. The CIO Complete checkbox did not turn to a check.

    Blessings,

    Loann

  • Loann McGee
    Loann McGee ✭✭✭✭✭✭
    edited 07/16/15

    And to clarify, it's not that the checkbox is checked if there is content in the CIO Process Notes, it's that it CANNOT be checkedunlessthere is content. Not sure if that's possible.

    Thus, if I try to check the box it won't let me until I have entered the CIO Process Notes.


    Blessings,

    Loann

  • John Sauber
    John Sauber ✭✭✭✭✭✭

    Did you use the first part of the formula? That was my way of saying the formula should go into column WrongOrder1. The exact formula for row 1 of WrongOrder would read:

    =IF(AND(ISBLANK(CIOProcessNotes1), CIOComplete1 = 1), 1, 0)

    A little bit of careful study of the construction of an IF() statement might have told you this. Just so you know, thereis no wayto prevent anyone from checking the box. THe workaround that we are suggesting would simply "call out" someone who is circumventing the process you have in place. Preventing someone from checking a box would entail changing the read/write properties of a column, which there is no control over.

  • Loann McGee
    Loann McGee ✭✭✭✭✭✭

    This is the formula copied from my sheet:
    =IF(AND(ISBLANK(CIOProcessNotes1), CIOComplete1 = 1), 1, 0)
    It tells me it's unparseable. It is entered into a 3rd column, as recommended.

    I'm not noticing any difference in the formulas...what am I missing?

    The CIO Process Notes is a Text/Number column and the CIO Complete is a checkmark column.

    I even tried a different column - CIO Complete Date - in place of CIO Process Notes, to no avail.

    Blessings,

    Loann

  • Travis
    Travis Employee
    edited 07/20/15

    Loann, this is what our Help Center article on formula says about the #UNPARSEABLE error:

    Cause:阻止它的公式有问题being parsed and interpreted. This can happen for many reasons such as misspelling a column name or using single quotes instead of double quotes.
    Resolution: Check the formula carefully. Pay close attention to column names and quoted text.

    Are the names of your columns "CIO Process Notes" and "CIO Complete"? If so, in your formula they should be [CIO Process Notes]1 and [CIO Process Notes]1 and not CIOProcessNotes1 and CIOComplete1.

  • Stephen Uekert
    edited 08/05/15

    Just another thought.

    How about taking the ability to check the box out of their hands and force them to fill in contents to make the box check?

    I just tested a simple IF statement "=IF([Column3]1 > 0, 1, 0)". This statement is put into the checkbox cell. It's pointing to whatever column you want there to have to be text in. It's saying that if that column greater than zero, then place a check and if not, then don't. The great thing about this is that the greater than zero works for either text or numbers so as long as they put something in the cell, it will check the box.

    Then you could lock the checkbox column so they can't mark it complete at all unless they fill in the box.

    Just a thought, take care.

  • Tim Meeks
    Tim Meeks ✭✭✭✭✭✭

    Loann,

    Not sure if you ever got this solved.

    I did something similar to what John H suggested re: conditional formatting.

    Set up a rule that states If Checkbox = Checked and Text box is Blank, then change the row or column formatting to Bright Red or someother bright color.

    I just used this for 3 different cells that had to be synched up when the Task was Complete. It required 6 formulas to link the 3 fields together but works well!

    got this idea from another post..https://community.smartsheet.com/discussion/one-click-task-completion

  • Loann McGee
    Loann McGee ✭✭✭✭✭✭
    edited 08/17/15

    Thanks, Tim. I do have a simple formula that is working, but I come back to re-read other options as I'm often pondering more ways to auto populate particular cells.

    Blessings,

    Loann

  • Stephen, I just tried to use this IF statement: "=IF([Column3]1 > 0, 1, 0)". Are your sure of the format? I'm using:

    =IF([Completion Date]1116, 1 > 0, 1, 0)

    Is there some issue with the format. Thx in advance!

    Michael

This discussion has been closed.
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":109493,"type":"question","name":"I am having trouble using \"And\", \"OR\" & \"Countif(s)\" to build a formula.","excerpt":"Hello, I am attempting to come up with a sheet summary formula that counts cells if they meet at least one of 3 different statuses in the same column, AND also meet one of 5 different statuses in a separate column. So using the screenshot I've provided as an example (although it doesn't have 5 different statuses in the…","snippet":"Hello, I am attempting to come up with a sheet summary formula that counts cells if they meet at least one of 3 different statuses in the same column, AND also meet one of 5…","categoryID":322,"dateInserted":"2023-08-25T20:03:21+00:00","dateUpdated":null,"dateLastComment":"2023-08-26T00:34:49+00:00","insertUserID":165710,"insertUser":{"userID":165710,"name":"SmarsheetNewb","url":"https:\/\/community.smartsheet.com\/profile\/SmarsheetNewb","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-26T00:33:27+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":161714,"lastUser":{"userID":161714,"name":"Carson Penticuff","url":"https:\/\/community.smartsheet.com\/profile\/Carson%20Penticuff","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/B0Q390EZX8XK\/nBGT0U1689CN6.jpg","dateLastActive":"2023-08-27T02:16:35+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":26,"score":null,"hot":3386005690,"url":"https:\/\/community.smartsheet.com\/discussion\/109493\/i-am-having-trouble-using-and-or-countif-s-to-build-a-formula","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/109493\/i-am-having-trouble-using-and-or-countif-s-to-build-a-formula","format":"Rich","tagIDs":[254],"lastPost":{"discussionID":109493,"commentID":392692,"name":"Re: I am having trouble using \"And\", \"OR\" & \"Countif(s)\" to build a formula.","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/392692#Comment_392692","dateInserted":"2023-08-26T00:34:49+00:00","insertUserID":161714,"insertUser":{"userID":161714,"name":"Carson Penticuff","url":"https:\/\/community.smartsheet.com\/profile\/Carson%20Penticuff","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/B0Q390EZX8XK\/nBGT0U1689CN6.jpg","dateLastActive":"2023-08-27T02:16:35+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-26T00:33:25+00:00","dateAnswered":"2023-08-25T20:44:12+00:00","acceptedAnswers":[{"commentID":392662,"body":"

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":109500,"type":"question","name":"Auto-populate emails on a \"contact list\" column","excerpt":"I have a Form created for internal employees where they can submit request tickets to my department. We all have an account with Smartsheet. One of our columns (\"Requestor Name\") is in the Form where they type in their names. The \"Requestor Name\" column is a Contac List column. My issue here is, how can I have Smartsheet…","snippet":"I have a Form created for internal employees where they can submit request tickets to my department. We all have an account with Smartsheet. One of our columns (\"Requestor Name\")…","categoryID":321,"dateInserted":"2023-08-25T21:43:36+00:00","dateUpdated":"2023-08-25T21:44:14+00:00","dateLastComment":"2023-08-25T22:14:15+00:00","insertUserID":164850,"insertUser":{"userID":164850,"name":"ocanel","title":"Analyst","url":"https:\/\/community.smartsheet.com\/profile\/ocanel","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-27T06:55:05+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":164850,"lastUserID":165374,"lastUser":{"userID":165374,"name":"Shanky Paul","title":"Project Manager","url":"https:\/\/community.smartsheet.com\/profile\/Shanky%20Paul","photoUrl":"https:\/\/lh3.googleusercontent.com\/a\/AAcHTtcAdE60g-MBEj1rR28GVz9zn6RmbZsmEQm5EiEV=s96-c","dateLastActive":"2023-08-26T21:35:09+00:00","banned":0,"punished":0,"private":false,"label":"✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":1,"countViews":23,"score":null,"hot":3386002071,"url":"https:\/\/community.smartsheet.com\/discussion\/109500\/auto-populate-emails-on-a-contact-list-column","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/109500\/auto-populate-emails-on-a-contact-list-column","format":"Rich","tagIDs":[204,247,334,448,527],"lastPost":{"discussionID":109500,"commentID":392677,"name":"Re: Auto-populate emails on a \"contact list\" column","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/392677#Comment_392677","dateInserted":"2023-08-25T22:14:15+00:00","insertUserID":165374,"insertUser":{"userID":165374,"name":"Shanky Paul","title":"Project Manager","url":"https:\/\/community.smartsheet.com\/profile\/Shanky%20Paul","photoUrl":"https:\/\/lh3.googleusercontent.com\/a\/AAcHTtcAdE60g-MBEj1rR28GVz9zn6RmbZsmEQm5EiEV=s96-c","dateLastActive":"2023-08-26T21:35:09+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-27T06:55:03+00:00","dateAnswered":"2023-08-25T22:14:15+00:00","acceptedAnswers":[{"commentID":392677,"body":"

Hi, <\/p>

Add a \"Created By\" column in your sheet and turn on \"Required smartsheet login to access your form\" in your form setting. So that whoever fills out the form, their email id will be automatically captured in \"created by\" column. This will replace your \"Requestor Name\" column. <\/p>

Thank you!<\/p>


<\/p>

\n
\n \n \"Screen<\/img><\/a>\n <\/div>\n<\/div>\n
\n
\n \n \"Screen<\/img><\/a>\n <\/div>\n<\/div>\n


<\/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":[{"tagID":204,"urlcode":"forms","name":"Forms"},{"tagID":247,"urlcode":"contacts","name":"Contacts"},{"tagID":334,"urlcode":"automations","name":"Automations"},{"tagID":448,"urlcode":"workflows-in-smartsheet","name":"Workflows in Smartsheet"},{"tagID":527,"urlcode":"columns","name":"columns"}]}],"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