MID(text,start_num,num_chars)
=MID("apple",2,3) // returns "ppl"
=MID("The cat in the hat",5,3) // returns "cat"
In this example, MID returns "cat" because "cat" is the set of 3 characters starting from the 5th character in the string provided.
=MID("The cat in the hat",16,3) // returns "hat"
MID returns "hat" in this example because "hat" is the set of 3 characters starting from the 16th character.
=MID("apple",3,100) // returns "ple"
Here's an example where the number of characters to extract is greater than the length of the substring. For this example, "ple" is returned because 100 is greater than the length of "apple".
=MID(12348,3,4) / returns "348" as text
In this example, "348" is returned instead of 348 because MID returns text.
MID is a Sourcetable function that returns characters from a text string, starting from a specified position.