Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=RIGHT(A2,4)=".csv"Computed by a real spreadsheet engine on the sample data below.
| Filename | Is CSV? |
| report.csv | |
| data.xlsx | |
| log.csv | |
| notes.txt | |
| backup.csv |
=RIGHT(A2,4)=".csv"→TRUE
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Need it for your exact data?
Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.
Use SEARCH or FIND with a wildcard pattern via COUNTIF ("*suffix") which handles any prefix length without needing to specify a character count.
Use SUMPRODUCT: =SUMPRODUCT((RIGHT(A2,{4,5})={".csv",".xlsx"})*1)>0 — returns TRUE if the cell ends with any of the listed extensions.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: