Excel TRIM() Function not working in text column on pivot table

Anonymous
2018-03-08T10:15:21+00:00

I am trying to use the TRIM() Function to remove white space from a column on my excel sheet.

The following image shows what my trouble is. Both columns, Status and Column2 are text columns. The function I used for the first value in Column2 was "=TRIM(A3)"

The pivot table has originally come from a MySQL database, I imported the data (permanent import) using the MySQL for Excel add-in, could this be causing me problems?Any help would be greatly appreciated.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2018-03-08T20:50:00+00:00

    Column2 shouldn't be a text column. As a text column, Excel won't recognize the formula as a formula, but will treat it as text. You'll need to change the column's cell format to General and probably will need to insert a new column and enter the formula in there to make it work properly.

    7 people found this answer helpful.
    0 comments No comments