User Login

Help Community Login:

Align Decimals In Numbers With Variable Decimal Places In MS Excel

4 replies [Last post]

If you have a spreadsheet that has variable decimal places and need to align them in a column on the decimal point regardless of the number of digits before and after the decimal, here's how:

Decimals not aligned:

Select your rows that you want to be aligned, right click and choose "Format Cells", go to the "Number" tab and choose "Custom", in the "Type" put in a ? to the right of the decimal point for the maximum number of decimal places you'll need. In my example it's three (.123, .888), hit OK, all your decimals will be aligned Smile

Decimals aligned

This should work for both Excel 2003 & 2007
I Averaged: 4 | 1 vote


Read More ...





Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Autumn's picture
Autumn
Premium Member (Gold)I'm a Code Monkey!I use Google ChromeWindows UserI donated more than $20+ to GeekDrop!I donated to GeekDrop simply because I love it!I spend all day Photobucketing!I took a bite of the AppleIs a FIERCE Competetor! 2nd place contest winner!The Dr. left the stem off the apple!Someone thinks you're udderly delightful!
Joined: 09/12/2009
Posts: 253
Drops: 338
Mood: Content
Groups: Geekdrop Cafe
Re: Align Decimals In Numbers With Variable Decimal Places ...

great stuff missb, i have spent so much time messing around with this and could never figure it out

Smartmom's picture
From:
Wellington Florida
Smartmom
Banned Member (Way To Go!)
Relationship Status:
Married
Joined: 01/15/2009
Posts: 6395
Drops: -20
Mood: Giggly
Re: Align Decimals In Numbers With Variable Decimal Places ...

Oh very nice, I hate spending hours trying to figure things like this out. Love the tips, keep them coming!!!

Scott's picture
Scott
Re: Align Decimals In Numbers With Variable Decimal Places ...

Thanks, useful tip.

Is there any way to do this without losing the leading 0 of, say, 0.123?

mikc's picture
mikc
Re: Align Decimals In Numbers With Variable Decimal Places ...

This trick does not function in windows office 2010

a's picture
a
Re: Align Decimals In Numbers With Variable Decimal Places ...

0.0??     Will give you a leading and a trailing number (so will give you 0.75, but also 37.0).

Who's New

dody de ana's picture
madsexycool's picture
عادل الذند's picture
progocean's picture
Ernest dollar's picture
celle rosales's picture
young_fame's picture
genanaw's picture
francabo's picture
boyboy2's picture
SoulKidPattyBlackstarandCrona's picture
rogerssaaron's picture
rogeraaron's picture
TheJanitor's picture
keandra36's picture
facebook codes exploits tips tricks Phrozen Crew
All contents ©Copyright GeekDrop 2009-2013
TOS | Privacy Policy