Google Sheets: Extract Last Characters from String
Return the last number of characters of a string function LAST_VALS(str,num){ if(num >= str.length){ return str; } return str.slice(str.length – num); } The provided code defines a function called LAST_VALS that takes two parameters: str and num. The function returns the last num characters from the str string. Here is a detailed explanation of how … Read more