Returns text that occurs before a given character or string. It is the opposite of the TEXTAFTER function .