@jens48: Thanks. It works, but the very last letter in the sentence is missing/has been cut off. I've tried to adjust the number values (-1 and +1) in the formula but it doesn't change anything. I'll add a right formula to your formula so I keep the last letter. If you have time for an updated formula, it would be great but else I keep it as is.
@ebea: Thanks for your suggestion. However, the number of blanks do not change after implementing your formula. I'm not that strong in "reading" formulas so I can't see what might be wrong.
I have checked it again here, and it works OK. But don't you mean "the last number" instead of "the last letter"? If the last character is a number you will have to modify the formula to:
Excel has a trim function. But the blank might not be an actual blank, it might be a wierd character, så try copying it and search replace with blank if it is not seen as a blank.
Notive the 'R' at the end of the formula. That is what's removing all spaces to the Right. Change it to 'L' if you want to remove all spaces to the Left. Change it to 'B' if you want to remove from Both left and right.
Change 'A1' to your own cell. Spaces inbetween the text is not affected.
Synes godt om
1 synes godt om dette
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.