Returns TRUE if text ends with a certain value, otherwise FALSE
ENDSWITH(text, value)
ENDSWITH checks value against text looking at the end of text. It returns TRUE if text ends with value, otherwise returns FALSE.
Example:
ENDSWITH("Hello", "o")
returns TRUE
ENDSWITH("Hello", "b")
returns FALSE
Text:
Value:
Result:
Let's say you have a list of filenames in column A and you want to check which ones are PDF documents. You can use the ENDSWITH function in column B to determine this.
Table:
Filename | Is PDF? | ||
|---|---|---|---|
A | B | ||
1 | project_report.pdf | TRUE | |
2 | presentation.pptx | FALSE | |
3 | contract_agreement.pdf | TRUE | |
4 | final_data.xlsx | FALSE |
The syntax for the function is ENDSWITH(text, ending_text).
The function then returns a simple result: TRUE if the text ends with the ending_text, and FALSE if it does not.
Here is a breakdown of how it works for each row in the table:
PRODUCT & FEATURES
RESOURCES
Terms | Privacy | Spam Policy
© 2026 Zapof