Cell formatting inconsistency

moonfish

Board Regular
Joined
Jun 22, 2011
Messages
221
Hey all,

I've been getting some weird missing indentations with the notation I'm using:
Code:
_(€* #,##0,k_);_(€* (#,##0,k);_(€* "-"??_);_(@_)

It's supposed to display numbers in thousands of euros, a minor adjustment to the default accounting format. However, it seems to randomly omit the space behind the k for the positive number, causing the numbers to be misaligned.

All of these values are numbers (eg 1237628.23762), none are the result of calculations.

It has to be part of the formatting condition because if I change the format to standard accounting all the numbers are properly aligned.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
_(€* #,##0,k_);_(€* (#,##0,k));_(€* "-"??_);_(@_)
 
Upvote 0
@Sektor
That seems to only add an extra bracket at the end of all the negative numbers.
I'm trying to consistently add an indentation the size of a bracket ')' at the end of the positive numbers.
 
Upvote 0
Instead of ")" write " " (empty space with parenthesis).
 
Upvote 0
Thank you for your time and your suggestions, I seem to have found a solution for the problem. Apparently there was some lingering secondary formatting in the cells somewhere.

I copied the values (values only) to a blank spreadsheet, applied the desired formatting and then copied the numbers back into the original sheet. Surprisingly, this worked.
 
Upvote 0

Forum statistics

Threads
1,224,568
Messages
6,179,595
Members
452,927
Latest member
whitfieldcraig

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