Excel @Text() Functionality in Smartsheet?

Is there a way in Smartsheet to use a formula that gives the same result as using@text()in Excel?

I have a spreadsheet that I need to concatenate several fields together and have the field then display as text. Most of what I see now for formulas is to covert from text into formula. But I need to go the other way?

Use case: I work at a hospital and most hospitals use pagers. The spreadsheet is an issues log and I need to take several fields and place them together in a cell that the notification then is used to send an email notification to[email protected]

I realize that you can set the column heading as text, but that doesn't actually set the cell values to text.

This is an example of what the text page currently looks like:

Comments

  • Shaine Greenwood
    Shaine Greenwood Employee
    edited 07/26/18

    Hello,

    I had to remove your example as the formatting didn't quite translate legibly into the context of your community post.

    Currently, Smartsheet automatically treats values as text or numbers based on the characters in them. You can convert a number into text by adding an apostrophe to the beginning of it. You can either do this manually or by concatenating from other cell values with a formula. For example:

    ="'" + [Issue ID]1

    There currently isn't a TEXT() or similar function to force the conversion of something into text.

    More on building formulas can be found in the help center:https://help.smartsheet.com/articles/2476606-formulas-reference-data-from-other-sheets

  • The TEXT() function is LOOOONG overdue! Please Smartsheet, an update to some additional handy intrinsic functions should be in the 'Coming Soon' Roadmap - they can't be that difficult to code.

  • John C Murray
    John C Murray ✭✭✭
    edited 09/15/23

    You can simulate Excel's TEXT function using a combination of LEFT(), a static string, and the LEN() of the data you want to work with.

    Say you have a column "Serial" which contains integers ranging from 1 to 999999. To left pad with zeroes use something like this:

    = LEFT( "000000", 6 - LEN( [Serial]@row ) ) + [Serial]@row

    so a value of 3231 would look like 003231. The 6 in the formula is the length of the static string "000000"

    If you wanted to right pad you would use something like:

    = [Serial]@row + RIGHT( "000000", 6 - LEN( [Serial]@row ) )

    A value of 3231 would look like 323100 in this case

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the公式手册模板!
Hi @mpajuelo<\/a> <\/p>

You are missing 2 closed parens. Try the below.<\/p>

=IF(AND(Talent@row = \"Agency\", Time@row = \"Half\", [Date of Shoot]@row < DATE(2023, 9, 16)), 250)<\/p>

Hope this helps,<\/p>

Dave<\/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":110422,"type":"question","name":"Calculating Dynamicly Average","excerpt":"Hi there , İ need a formula for a dynamic calculation , i added a sample as below , lets explain what i need ; At below table yellow field area contains August 2023 datas, white field area contains September 2023 datas , imagine that every each month , i amm adding new lines to this table also , So i have a dynamic tabe…","snippet":"Hi there , İ need a formula for a dynamic calculation , i added a sample as below , lets explain what i need ; At below table yellow field area contains August 2023 datas, white…","categoryID":322,"dateInserted":"2023-09-19T06:47:30+00:00","dateUpdated":"2023-09-19T06:48:00+00:00","dateLastComment":"2023-09-19T11:29:11+00:00","insertUserID":124542,"insertUser":{"userID":124542,"name":"Automatic Mail","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Automatic%20Mail","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/9Y6QI9Q1XHYE\/nX1892FCZLO4A.JPG","dateLastActive":"2023-09-19T11:29:53+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭"},"updateUserID":124542,"lastUserID":151203,"lastUser":{"userID":151203,"name":"Nick Korna","url":"https:\/\/community.smartsheet.com\/profile\/Nick%20Korna","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-09-19T16:22:55+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":5,"countViews":28,"score":null,"hot":3390232001,"url":"https:\/\/community.smartsheet.com\/discussion\/110422\/calculating-dynamicly-average","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/110422\/calculating-dynamicly-average","format":"Rich","tagIDs":[254,595],"lastPost":{"discussionID":110422,"commentID":395851,"name":"Re: Calculating Dynamicly Average","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/395851#Comment_395851","dateInserted":"2023-09-19T11:29:11+00:00","insertUserID":151203,"insertUser":{"userID":151203,"name":"Nick Korna","url":"https:\/\/community.smartsheet.com\/profile\/Nick%20Korna","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-09-19T16:22:55+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\/2CPL8OIIQPCE\/sample-jpg.jpg","urlSrcSet":{"10":"","300":"","800":"","1200":"","1600":""},"alt":"sample.JPG"},"attributes":{"question":{"status":"accepted","dateAccepted":"2023-09-19T11:24:28+00:00","dateAnswered":"2023-09-19T11:18:16+00:00","acceptedAnswers":[{"commentID":395849,"body":"

No problem, it's a fairly simple adjustment:<\/p>

=Price@row \/ SUMIF(Date:Date, AND(YEAR(@cell) = YEAR(Date@row), MONTH(@cell) = MONTH(Date@row)), Price:Price)<\/p>

Example with some data for August last year added on:<\/p>

\n
\n \n \"image.png\"<\/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":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"},{"tagID":595,"urlcode":"help","name":"help"}]},{"discussionID":110384,"type":"question","name":"Trying to target entire column in a different sheet with a formula","excerpt":"Hi, so what I'm working on is trying to automate status updates between different sheets. The first formula is looking at a status within the same sheet that the formula is written. This formula is working correctly and has no issues. However when including a nested formula to look at a different sheet, that is where that…","snippet":"Hi, so what I'm working on is trying to automate status updates between different sheets. The first formula is looking at a status within the same sheet that the formula is…","categoryID":322,"dateInserted":"2023-09-18T14:34:33+00:00","dateUpdated":null,"dateLastComment":"2023-09-19T08:18:02+00:00","insertUserID":166672,"insertUser":{"userID":166672,"name":"Andrew Skaggs","url":"https:\/\/community.smartsheet.com\/profile\/Andrew%20Skaggs","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-09-19T15:28:38+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":151203,"lastUser":{"userID":151203,"name":"Nick Korna","url":"https:\/\/community.smartsheet.com\/profile\/Nick%20Korna","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-09-19T16:22:55+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":38,"score":null,"hot":3390160955,"url":"https:\/\/community.smartsheet.com\/discussion\/110384\/trying-to-target-entire-column-in-a-different-sheet-with-a-formula","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/110384\/trying-to-target-entire-column-in-a-different-sheet-with-a-formula","format":"Rich","lastPost":{"discussionID":110384,"commentID":395820,"name":"Re: Trying to target entire column in a different sheet with a formula","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/395820#Comment_395820","dateInserted":"2023-09-19T08:18:02+00:00","insertUserID":151203,"insertUser":{"userID":151203,"name":"Nick Korna","url":"https:\/\/community.smartsheet.com\/profile\/Nick%20Korna","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-09-19T16:22:55+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-09-19T15:11:57+00:00","dateAnswered":"2023-09-18T15:29:43+00:00","acceptedAnswers":[{"commentID":395705,"body":"

Hi @Andrew Skaggs<\/a>,<\/p>

For the cross sheet reference you can use COUNTIF combined with AND in your IF statement:<\/p>

=IF(AND([Assigned To]63 = \"Yes\", COUNTIF({Status}, \"Approved\") = 0), \"Not Started\", \"Complete\")<\/p>

If Assigned To row 63 is \"No\" and no rows in the status column are \"Approved\", you'll get a \"Not Started\" result, otherwise it will show as complete. <\/p>

You can easily change the AND to OR if only one condition needs to be true (you'll also need to change =0 to >0.<\/p>

Hope this helps somewhat, but if you've any problems\/questions then just ask! 🙂<\/span><\/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