RIGHTB(text, [num_bytes])
=RIGHTB("OpenAI GPT-3`, 4)
This formula extracts the last 4 bytes from the text string "OpenAI GPT-3" and returns the result "PT-3". Note that in this case, each character is a single-byte character, so the result includes the last 4 characters.
=RIGHTB("こんにちは`, 4)
This formula extracts the last 4 bytes from the Japanese text string "こんにちは" (meaning "Hello") and returns the result "んち". In this case, each Japanese character is a double-byte character, so the result includes the last 2 characters.
The RIGHTB function extracts a specified number of bytes from the right end of a text string, and is especially useful for handling double-byte character sets (DBCS).