How do I format text as the width of a number?

MikeMcCollister

Board Regular
Joined
May 6, 2020
Messages
71
Office Version
  1. 365
Platform
  1. Windows
I have just switched a spreadsheet from Calibri as the font to Aptos Narrow. Now that I have switched, I am having some minor alignment issues. I have some cells stacked to have Week 1 through Week 5 and then a speical case where a week has not been defined yet. When it is not defined, I use an em dash, with Calibri would be the same width of a number. Now with Aptos Narrow, it is not the same width. See image to see that "Week –" does not perfectly align with "Week 5".

1709137341853.png

Is there any way to format the cell so that the em dash, or even a period will fill the width of a number?

The custom formatting that I have for the the cells is as follows:

_("Week" 0_);_("ERROR" -0_);_("ERROR" 0_);_("Week" @_)

Thanks,

Mike
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
You could use a unicode figure dash?
=UNICHAR(8210)
 
Upvote 0
I just have to ask, what is so important about the perfect alignment? If is just a visual preference type of thing, or is there a more important reason why it is needed?

If lining them is really important, why not just continue to use the Calibri font (if that was working for you), or left-justify the text instead of centering?
Note: When I try the Calibri font, it seems to have the same issue too.

1709149085230.png
 
Upvote 0
I just have to ask, what is so important about the perfect alignment? If is just a visual preference type of thing, or is there a more important reason why it is needed?

If lining them is really important, why not just continue to use the Calibri font (if that was working for you), or left-justify the text instead of centering?
Note: When I try the Calibri font, it seems to have the same issue too.

View attachment 107653
No real reason to have it perfectly aligned. More of an OCD thing for me and a learning experience.
 
Upvote 0
No real reason to have it perfectly aligned. More of an OCD thing for me and a learning experience.
LOL! That would be a little OCD for 1 pixel!

Have you considered left justifying though?
 
Upvote 0

Forum statistics

Threads
1,223,943
Messages
6,175,546
Members
452,652
Latest member
eduedu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top