Substitute Function?

Allison_S
Allison_S
edited 12/09/19 inSmartsheet Basics

Hello,

I have a reporting sheet that I have created for individuals within our company. The original formulas need to be adjusted with different initials for each person. This means each individual needs their own sheet to track their numbers/orders. The formula is this,

=COUNTIFS({WH2 - ARCHIVED Orders (2019 Bend) Range 28}, "12", {WH2 - ARCHIVED Orders (2019 Bend) Range 15}, "BM") + COUNTIFS({WH2 - ARCHIVED Orders (2019 Bend) Range 29}, "12", {WH2 - ARCHIVED Orders (2019 Bend) Range 18}, "BM") + COUNTIFS({WH2 - ARCHIVED Orders (2019 Bend) Range 30}, "12", {WH2 - ARCHIVED Orders (2019 Bend) Range 21}, "BM")

The initials in this example are "BM" and I need to replace "BM" with "SM" or "CT". Is there a way to mass replace the initials within the formula, in different equations, within cells? I've been attempting to use the Substitute function, but it doesn't seem to be working. Any assistance would be greatly appreciated!

Thanks again.

Comments

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭

    Hi Allison,

    If possible, I would have a specific cell or column with the initials and then point the formula to that cell or column when you want to reference the initials.

    Would that work?

    Best,

    Andrée Starå

    Workflow Consultant @ Get Done Consulting

    SMARTSHEET EXPERT CONSULTANT & PARTNER

    Andrée Starå| Workflow Consultant / CEO @WORK BOLD

    W:www.workbold.com| E:[email protected]| P: +46 (0) - 72 - 510 99 35

    Feel free to contact me about help with Smartsheet, integrations, general workflow advice, or something else entirely.

  • Hi Andree,

    谢谢你的建议。首字母列is separate, I have a column for initials and a column for the date the job is completed. Being fed from the date column is the month/day/week columns which I use in this formula to see who completed what and when. The problem is that we have 15 employees and I need to adjust the initials for each person's reporting sheet and I was wondering if there was a way to substitute on initial for another faster than doing it manually 52 times for each work week of the month?

    Any additional ideas would be greatly appreciated!

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭

    Happy to help!

    What I meant was that you should replace the initials in the formula with the cell reference where the initials would be and then it will be much easier to maintain.

    Or am I not understanding what you want to do?

    Best,

    Andrée

    SMARTSHEET EXPERT CONSULTANT & PARTNER

    Andrée Starå| Workflow Consultant / CEO @WORK BOLD

    W:www.workbold.com| E:[email protected]| P: +46 (0) - 72 - 510 99 35

    Feel free to contact me about help with Smartsheet, integrations, general workflow advice, or something else entirely.

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    I agree with Andree. Somewhere on each of the sheets you could put the employee's initials. For this example I am just going to say you added a new column named "Initials" for this and have put the initials in the cell of that new column in row 1 (just for example on how to do what Andree is suggesting).

    Wherever you have the initials, simply use@cell= Initials$1.

    If you replicate that column on all sheets and put the corresponding initials in row one of that column, the formula will automatically update itself to look for whatever initials are there instead of having to manually change them in multiple formulas across multiple sheets.

    thinkspi.com

  • Yes, I fully understand what you are both suggesting and that it a brilliant idea! Why did't I think of that!?! :-)

    Thank you both for all your help - this will simplify our reporting sheets for each person dramatically! I appreciate your help!

    Allison

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    Sometimes the simple answers are the hardest to find. Haha

    Happy to help!yes

    thinkspi.com

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭

    I'm always happy to help!

    Have a fantastic weekend!

    Best,

    Andrée

    SMARTSHEET EXPERT CONSULTANT & PARTNER

    Andrée Starå| Workflow Consultant / CEO @WORK BOLD

    W:www.workbold.com| E:[email protected]| P: +46 (0) - 72 - 510 99 35

    Feel free to contact me about help with Smartsheet, integrations, general workflow advice, or something else entirely.

Perfect. Thank you so much!<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":343,"name":"Add Ons and Integrations","url":"https:\/\/community.smartsheet.com\/categories\/apps-and-integrations","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":106958,"type":"question","name":"Datamesh very slow to update","excerpt":"Hi, we have datamesh set to immediate but it still takes up to a minute for the data to be pulled into the sheet. Is this the normal amount of time it's supposed to take? Or have I missed a trick?","snippet":"Hi, we have datamesh set to immediate but it still takes up to a minute for the data to be pulled into the sheet. Is this the normal amount of time it's supposed to take? Or have…","categoryID":321,"dateInserted":"2023-06-27T15:05:03+00:00","dateUpdated":null,"dateLastComment":"2023-06-27T21:04:27+00:00","insertUserID":161700,"insertUser":{"userID":161700,"name":"Jagdeep","url":"https:\/\/community.smartsheet.com\/profile\/Jagdeep","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-27T21:01:40+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":161700,"lastUser":{"userID":161700,"name":"Jagdeep","url":"https:\/\/community.smartsheet.com\/profile\/Jagdeep","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-27T21:01:40+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":25,"score":null,"hot":3375779370,"url":"https:\/\/community.smartsheet.com\/discussion\/106958\/datamesh-very-slow-to-update","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106958\/datamesh-very-slow-to-update","format":"Rich","tagIDs":[219,334,381],"lastPost":{"discussionID":106958,"commentID":382702,"name":"Re: Datamesh very slow to update","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/382702#Comment_382702","dateInserted":"2023-06-27T21:04:27+00:00","insertUserID":161700,"insertUser":{"userID":161700,"name":"Jagdeep","url":"https:\/\/community.smartsheet.com\/profile\/Jagdeep","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-27T21:01:40+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-27T21:04:31+00:00","dateAnswered":"2023-06-27T19:57:59+00:00","acceptedAnswers":[{"commentID":382687,"body":"

Hi @Jagdeep<\/a> - Unfortunately, my experience has been that Datamesh \"Immediate\" can take up to 5 minutes (perhaps more).<\/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":219,"urlcode":"Sheets","name":"Sheets"},{"tagID":334,"urlcode":"automations","name":"Automations"},{"tagID":381,"urlcode":"DataMesh","name":"DataMesh"}]},{"discussionID":106941,"type":"question","name":"How to show data of previous working day?","excerpt":"For a stacked column chart on a dashboard, I count the number of applicable cases daily. The current formula shows NO DATA on Monday because TODAY(-1) is Sunday. =COUNTIFS({Customer Escalation Region}, $Region@row, {Customer Escalation Request Reason}, \"Close Gap\", {Customer Escalation Request Date}, TODAY(-1)) I'm…","snippet":"For a stacked column chart on a dashboard, I count the number of applicable cases daily. The current formula shows NO DATA on Monday because TODAY(-1) is Sunday.…","categoryID":321,"dateInserted":"2023-06-27T10:29:20+00:00","dateUpdated":null,"dateLastComment":"2023-06-27T12:02:55+00:00","insertUserID":162184,"insertUser":{"userID":162184,"name":"Sachiko Kagami","title":"Customer Service Manager","url":"https:\/\/community.smartsheet.com\/profile\/Sachiko%20Kagami","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-27T12:25:47+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-06-27T12:11:22+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":23,"score":null,"hot":3375730935,"url":"https:\/\/community.smartsheet.com\/discussion\/106941\/how-to-show-data-of-previous-working-day","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106941\/how-to-show-data-of-previous-working-day","format":"Rich","lastPost":{"discussionID":106941,"commentID":382502,"name":"Re: How to show data of previous working day?","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/382502#Comment_382502","dateInserted":"2023-06-27T12:02:55+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-06-27T12:11:22+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-27T11:47:48+00:00","dateAnswered":"2023-06-27T11:40:22+00:00","acceptedAnswers":[{"commentID":382497,"body":"

Hi @Sachiko Kagami<\/a>,<\/p>

The WORKDAY function is what you're after here.<\/p>

\n \n https:\/\/help.smartsheet.com\/function\/workday\n <\/a>\n<\/div>

In your case, I think the following should work:<\/p>

=COUNTIFS({Customer Escalation Region}, $Region@row, {Customer Escalation Request Reason}, \"Close Gap\", {Customer Escalation Request Date}, WORKDAY(TODAY(),-1)<\/p>

This will do the check for yesterday, skipping weekends. Public holidays aren't automatically in there, but you can add these as per the link.<\/p>

Hope this helps - if there are any issues then just post! 😊<\/span><\/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":[]}],"initialPaging":{"nextURL":"https:\/\/community.smartsheet.com\/api\/v2\/discussions?page=2&categoryID=341&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":5415,"limit":3},"title":"Trending in Using Smartsheet","subtitle":null,"description":null,"noCheckboxes":true,"containerOptions":[],"discussionOptions":[]}">

Trending in Using Smartsheet