Tip of the Week: Decimal Align Numbers in Table Cells

This tip was sent to Tip of the Week email subscribers on October 9, 2014.

InDesignSecrets Tip of the Week

Sign up now and every week you’ll get a new InDesign Tip of the Week and Keyboard Shortcut of the Week, along with roundups of new articles at InDesignSecrets and CreativePro, plus exclusive deals sent right to your Inbox!

Just scroll all the way down to the bottom of this page, enter your email address, and click Go! We’ll take care of the rest. Now, on with the tip!


Ever need to align numbers in a table based on their decimal points? You might wonder if such a thing is even possible, since you usually don’t have any tabs in your table. But, you can still align text based on a specific character, like a decimal point in a number. Here’s how.

First, make sure the text is left-aligned in the Paragraph Options. Now select the table cells or columns that hold the numbers.
20141014-tip2
Then, even though you haven’t typed any tabs, choose Type > Tabs to open up the tab options.
20141014-tip3
Finally, choose the “align on decimal”-tab and click on the ruler to set the position.
20141014-tip4
You’ll notice your numbers start aligning automatically.
20141014-tip5

Bookmark
Please login to bookmark Close

This article was last modified on July 25, 2019

Comments (13)

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. j chang
    November 15, 2022

    It worked great, except for lines with superscript. Those only right aligned and did not decimal align. Any tips?

  2. Stephescope
    July 26, 2017

    I tried it with numbers in separate cells, and it doesn’t align them to decimal. If I put the numbers all in the same cell, then it will align to decimal. Is there a way to do it when they’re each in separate cells?

  3. Lorenzo Marini
    November 15, 2016

    Hi Bart, thank you for the tip.
    I’d like to know how to add red bullets (aligned left) on the left of the decimal aligned text.
    I treid adding a new paragraph style but if i apply the bullets then the tabulation does not work! I have no idea how ti fix this.

    Thank you,
    Lorenzo

  4. Stephanie
    February 18, 2015

    I have a pretty specific requirement (picture attached). I need to align a $ on the left and decimal align a range of numbers on the right. I need to align two “,” and just to throw it in there I have some numbers within a parenthesis. I really do not want to have to manually align these. Anyone have a solution?

    https://www.dropbox.com/s/e2y2vebqil5iedu/Decimal-Align.png?dl=0

  5. Muttaqin Margo Nirwono
    October 15, 2014

    Hi Bart,

    Indonesian decimal system is using “,” rather than “.”.
    How arrange this alignment for this system?

    Thanks & regards,

    MMN

    1. Tread
      October 16, 2014

      You can change the aligning character when using the “Align to” tab.

      That setting is found in the Tabs palette:

      https://dl.dropboxusercontent.com/s/e2uhiffxgq3ohjd/align-to-tab_aligning-character.png

  6. Eugene Tyson
    October 15, 2014

    I’m surprised people didn’t know about this before, it’s been in Word, Quark, Corel and other software for a long time.

    Maybe it’s a bit obscure being hidden in the Tab Ruler – but even still, you can find the information in the Paragraph Style under Tabs.

  7. TheSlapster
    October 14, 2014

    Here’s a tricky one I dealt with a while ago – any suggestions on how to get those numbers nicely aligned to the right, without adjusting tracking?

    https://dl.dropboxusercontent.com/u/430620/DotLeader_AlignRight_Blurred.jpg

    1. October 22, 2014

      Hi ThesSlapster,

      In Try changing your Kerning Optical to metric or vice versa.

    2. Robin Janasek
      October 16, 2014

      Not sure what font do you have, but opentype fonts often have a “tabular lining” option, which would help in this case.

  8. Lindsey Thomas Martin
    October 14, 2014

    Bart,
    What typeface are you using in the screenshots?

    Thanks,
    LTM

    1. October 15, 2014

      Hi Lindsey- It’s Source Code Pro. If you don’t have it, you can get it here: https://sourceforge.net/projects/sourcecodepro.adobe/files/

  9. Dwayne
    October 14, 2014

    That’s a good feature. I discovered it about three or four years ago (by accident). It had gotten tiresome putting tabs in there with the shift tab (or option tab–I forget which).