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.

Using "Contains" for Numbers

Chris Ikei
edited 12/09/19 inArchived 2016 Posts

I'm attempting to filter a column with the following type of data:

10007789001

10007796003

10007789001

10007789002

10007801001

I tried to filter this column using "Contains" 7789. I expected every row with 10007789001 and 10007789002 would be shown. However, Smartsheet indicated that 0 rows met filter criteria. This doesn't sound like proper functionality. Can anyone assist?

Thanks

Tags:

Comments

  • Dave B
    Dave B ✭✭✭✭✭
    edited 03/13/16

    Chris,

    I've seen some odd behavior like this as well. It doesn't seem to fail in all cases. I have several sheets where it works and some that don't. I can't figure out what makes it work or fail. Perhaps Travis will chime in and let us know.

    Things I've tested:

    手-typed numbers vs. linked vs. pasted vs. formula result.

    Complete number strings vs. partial strings (as in your example)

    Partial strings that start the string, are in the middle, or at the end

    Alpha-numeric combinations

    Again, in some sheets all of the above either work or fail and I cannot determine what causes it.

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

    Chris,

    If the system thinks that the information is a number, then you can't filter (I believe) on the digits in a number.

    Without knowing your column structure, I would suggest adding a column and forcing the system to recognize the value as text and try the filter there.

    =[Current Column]23 + ""

    Craig

  • If you prefer to format a number as text - just place an apostrophe in front of the number to preserve it in its entirety.

    Reference:http://help.smartsheet.com/customer/portal/articles/504619#text

  • Have you tried adding an asterisk before and after the number for your Contain field?

    Ex: *7789*

  • Tried the asterisk. Doesn't work. Looks like I'll need to use the apostrophe prefix method. Bla.

    Thanks everyone.

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

    Travis,

    Feature request to solve this:

    Allow formatting of all numbers as text (in a column)

    Allowing In a cell would lead to too many bug reports, I would imagine.

    Only for Text/Number columns.

    How would that prevent incrementing or other math formulas in the cell?

    Hmm.

    Craig

  • Travis
    Travis Employee

    Try changing your column type to a Contact List column (which will format the contents as text) then filter using Contains.

  • Travis
    Travis Employee

    Added your vote, Craig!

    My suggestion above would be a workaround to your suggestion of a text only column. The Contact list will format its content as text but because this is text, the values will not work in a numeric formula unless you convert the value to a number using the VALUE() function.

  • Dave B
    Dave B ✭✭✭✭✭

    +1 for filtering partial strings of anything, even forumla results.

This discussion has been closed.
Ok. SO the 7th of the month after submission would look something like this (in a Date type column):<\/p>

=DATE(YEAR([Submission Date]@row) + IF(MONTH([Submission Date]@row) = 12, 1, 0), IF(MONTH([Submission Date]@row) = 12, 1, MONTH([Submission Date]@row) + 1), 7)<\/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":106193,"type":"question","name":"Multiple Forms, One Smartsheet","excerpt":"I created two identical forms (except for the name) and both of them populated into the same smartsheet. Is there a way to only see one form's submissions?","categoryID":321,"dateInserted":"2023-06-08T13:28:04+00:00","dateUpdated":null,"dateLastComment":"2023-06-08T13:47:26+00:00","insertUserID":152102,"insertUser":{"userID":152102,"name":"AllieB","url":"https:\/\/community.smartsheet.com\/profile\/AllieB","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-08T13:49:35+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":66106,"lastUser":{"userID":66106,"name":"Peggy Parchert","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Peggy%20Parchert","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/YYRDMWWFX83G\/nC7HLGW82ACPT.jpg","dateLastActive":"2023-06-08T16:12:58+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":8,"countViews":41,"score":null,"hot":3372467730,"url":"https:\/\/community.smartsheet.com\/discussion\/106193\/multiple-forms-one-smartsheet","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106193\/multiple-forms-one-smartsheet","format":"Rich","lastPost":{"discussionID":106193,"commentID":379551,"name":"Re: Multiple Forms, One Smartsheet","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/379551#Comment_379551","dateInserted":"2023-06-08T13:47:26+00:00","insertUserID":66106,"insertUser":{"userID":66106,"name":"Peggy Parchert","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Peggy%20Parchert","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/YYRDMWWFX83G\/nC7HLGW82ACPT.jpg","dateLastActive":"2023-06-08T16:12:58+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Using Smartsheet","url":"https:\/\/community.smartsheet.com\/categories\/using-smartsheet"},{"name":"Smartsheet Basics","url":"https:\/\/community.smartsheet.com\/categories\/smartsheet-basics%2B"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-08T13:46:06+00:00","dateAnswered":"2023-06-08T13:44:25+00:00","acceptedAnswers":[{"commentID":379548,"body":"

@AllieB<\/a> <\/p>

Yes - in your sheet, add a Created date column.<\/p>

-Peggy<\/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":[]},{"discussionID":106191,"type":"question","name":"Can't find how to enable % Complete column","excerpt":"I am new to the app working in a Trial window. I have searched the Help but cannot seem to resolve how to enable the % Complete column. Dependencies are enabled. System Settings only gives me options for \"None\" or \"Notes\" for a % Complete column. Only thing I seem to get is the ability to add custom columns. Any direction…","categoryID":321,"dateInserted":"2023-06-08T13:26:39+00:00","dateUpdated":"2023-06-08T13:35:37+00:00","dateLastComment":"2023-06-08T13:40:28+00:00","insertUserID":162189,"insertUser":{"userID":162189,"name":"BillB","url":"https:\/\/community.smartsheet.com\/profile\/BillB","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-08T15:50:43+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":162189,"lastUserID":122388,"lastUser":{"userID":122388,"name":"Matt Johnson","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Matt%20Johnson","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/ZX2A39HRG0VO\/nLJJDDQXUVD4H.JPG","dateLastActive":"2023-06-08T14:31:31+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":18,"score":null,"hot":3372463627,"url":"https:\/\/community.smartsheet.com\/discussion\/106191\/cant-find-how-to-enable-complete-column","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106191\/cant-find-how-to-enable-complete-column","format":"Rich","lastPost":{"discussionID":106191,"commentID":379545,"name":"Re: Can't find how to enable % Complete column","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/379545#Comment_379545","dateInserted":"2023-06-08T13:40:28+00:00","insertUserID":122388,"insertUser":{"userID":122388,"name":"Matt Johnson","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Matt%20Johnson","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/ZX2A39HRG0VO\/nLJJDDQXUVD4H.JPG","dateLastActive":"2023-06-08T14:31:31+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Using Smartsheet","url":"https:\/\/community.smartsheet.com\/categories\/using-smartsheet"},{"name":"Smartsheet Basics","url":"https:\/\/community.smartsheet.com\/categories\/smartsheet-basics%2B"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-08T13:42:55+00:00","dateAnswered":"2023-06-08T13:40:06+00:00","acceptedAnswers":[{"commentID":379543,"body":"

After hours of searching, I seemed to have figured this out as soon as I posted the question. Issue resolved.<\/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":[]}],"title":"Trending Posts","subtitle":null,"description":null,"noCheckboxes":true,"containerOptions":[],"discussionOptions":[]}">

Trending Posts