I have an Excel file that contains some values. I need to check if a cell value contains spaces. For example, sometimes a user will write some values in the cell but mistakenly press Enter or Space in the cell. I want to see if the cell value has spaces inside…
Please tell me how to do this.
Thanks
Let’s say I type “ABC ” in cell A1 (ABC followed by a space). Either of these formulas should help:
For a VBA version:
Sample usage: