Arguments
text- The text value to extract from.num_chars- How many characters to return.start_num(optional) - For MID, the position of the first character to return.
Extract a fixed number of characters from the start, end, or middle of a text value.
Syntax
=LEFT(text, num_chars) =RIGHT(text, num_chars) =MID(text, start_num, num_chars)text - The text value to extract from.num_chars - How many characters to return.start_num (optional) - For MID, the position of the first character to return.=LEFT(A2, 3)Returns: First 3 characters of A2
Useful for codes and prefixes.
=MID(A2, 4, 2)Returns: 2 characters starting at position 4
Pull a slice out of the middle.
Yes. LEFT, RIGHT & MID uses the same syntax in Google Sheets and LibreOffice Calc, so you can paste these formulas straight across.