TRANSLATE() performs character-by-character translation of a string by replacing each character in the search list with its corresponding character in the replace list. If a character in the search list has no corresponding character in the replace list, it is removed from the string. This function is case sensitive, making it useful for precise character manipulation and string transformation.
TRANSLATE(string, search list, replace list)
TRANSLATE() returns a character string
// Case conversion with partial replacement
TRANSLATE("APPLES", "PLES", "ples") = "Apples"
// Character removal
TRANSLATE("APPLES AND ORANGES", "S", "") = "APPLE AND ORANGE"
// Complex character mapping
TRANSLATE("APPLES AND ORANGES", "DLGORAPESN ", "RFTUI") = "FRUIT"
// Additional examples
TRANSLATE("HELLO", "LO", "lo") = "HEllo" // Partial case conversion
TRANSLATE("12345", "123", "ABC") = "ABC45" // Number to letter conversion
TRANSLATE("ABC", "ABC", "XYZ") = "XYZ" // Complete replacement