Replace Text Automatically in Google Sheets with Apps Script

Learn how to automatically replace the word 'BOSS' with 'BO$$' in Google Sheets using a simple script, adding a fun twist to your text manipulation skills.

this is she fools we're going to turn boss into boss with dollar signs we're doing a little text manipulation to turn your Google Sheets into absolute chaos or do some really cool stuff we're going to go to extensions appscript we've done flip header we've done an onopen now we're going to do function on edit with an E that has all kinds of information inside of our edits and editing is going to be whenever we enter text into a cell we're going to actually create another function here called Turn boss into boss and we're going to have an e at that as well and we're going to put this inside of our onedit turn boss into boss e but our function is going to be written here we need variable range equals e. range variable value

whatever the actual value in the cell is range doget value if value do to lowercase includes boss we're going to do something here so basically if we're writing anything and that word or text or any cell includes the word boss we're going to do something we're going to have a new value value. replace boss and we're going to replace it with boss we need to escape these range . set value new value there we go that's all we need to turn boss into boss with dollar signs so anytime we're on a new sheet we say hey boss automatically we turn those s's

into dollar signs going on boss what's new even inside the cell or inside the sentence we get those dollar signs anytime we edit so this could really wreak havoc on someone's perception of what they're doing if all of their text is being changed in a little subtle fun way if you're looking for all these automations go to better sheets. co/ sheet fools you can download for free all of the automations and all of these videos that we're putting out today on April Fool's Day all of them are here for you enjoy

Big Year 2027 calendar: the whole year on one Google Sheet

Free 2027 calendar.

Copy it to your Google Drive.

Free. No password, no card. The sheet link shows up right here.