Take the tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

If I want 10 spaces between characters "a" and "b" I press the space bar 10 times, but when I hit "Enter the cell defaults to only displaying 2 spaces. When I click back to edit that cell the display shows the 10 spaces, but only when I am in the "edit" mode for that cell. How can I get the spacing to stay at 10?

share|improve this question
add comment

1 Answer

Use this formula.

Formula

="a" & REPT(CHAR(160),10) & "b"

Explained

The CHAR(160) will give a non-breaking space, that's being repeated 10 times by the REPT formula. The text (between quotes) is concatenated with the ampersand (&) to form a string.

Screenshot

enter image description here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.