Does anyone know how to adjust the cell margins in Excel? By this I mean the distance that the text is set off from the edge of the cell.
In Word, one accomplishes this in a table by Table -> Table Properties -> Options… (see attached GIF).
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Adjusting Cell Margins (W2K / Excel 2K, SR1)
Al
Excel has no generic equivalent. However, it does set spacing as follows:
a) in a general format, the spacing is effectively 0
in a numeric format, the character “_” reserves a space to hold a character
e.g _-$* #,##0_-;-$* #,##0_-;_-$* “-“_-;_-@_-
specifies that this number format reserve a space big enough to hold a minus sign in front of the dollar and at the end of the number
In full, the whole string says
* reserve such spaces if the number is positive
* use a real minus in front of the number if negative
* reserve spaces and print a hyphen if zero
* reserve spaces around text
Accordingly, you can specify spacing in a limited way by specifying a custom cell format.
Format | Cells | Alignment | Indent
is the easiest, but probably too large an indent for you, and only for left alignment. More options in XL2002.
You should be able to use a custom format to get smaller indents:
_-#_X;-#_X
where the width of X is the width of the indent, ie, you can use I for a much smaller indent, but this dosn’t work for me in XL97. HTH –Sam
Andrew and Sam,
Many thanks for your information and suggestions. I didn’t know about the special space character in Custom format. It looks, however, like it’ll only function as a first_line_indent or a single forced space. Sam, you’re correct even “1” is a pretty large indent.
Now, of course, the way to solve this is a huge kludge. Create extra rows and columns without borders and use them as margins.
Oh well, it a shame that the Office development groups don’t use a or a larger shared code library of “features.”
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.
Notifications