Forum Discussion

Petachu454's avatar
Petachu454
Copper Contributor
Aug 16, 2023

Leading spaces in cells

Hi!

 

Very recently my workplace decided to start a shared Excel document (accessed via OneDrive). I am reasonably competent with regards to the basics of Excel but can't seem to resolve this issue. Essentially certain in certain cells a leading space is added to whatever text is entered regardless if typed in or pasted from another source. It is a small gripe but frustrating as some of the columns have a VLOOKUP formula and the extra space means it does not recognise the entered text as a valid account or product code. I have never had this issue with the desktop version of Excel. I have tried =TRIM but for some reason this just ended up creating a duplicate of the selected range eg 

    • Petachu454's avatar
      Petachu454
      Copper Contributor
      Thanks, I was not aware of this. If I can't fix the issue with the spaces then I may recommend changing the formula.

Resources