Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Simon Thorn
 
Posts: n/a
Default What does this number format do?

If I format a cell as a currency with symbol '$ French (Canada) the
custom format string generated is "#,##0.00 [$$-C0C]_-".. what does
the trailing minus sign do? It seems to have no effect when switching
between positive/negative/zero values..

Cheers,

Simon Thorn
XLCubed Ltd
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

Try this on a new worksheet.

Format A1 with this:
#,##0.00 [$$-C0C]_-

Format A2 with
#,##0.00 [$$-C0C]

Type 123.45 in A1 and B1

You'll see part of the difference.

The underscore tells excel to reserve the next character's width even if
(especially if) it's not used.

You can see it more in a format like:
_(#,##0_);(#,##0);_(0_);_(@_)

PositiveFormat;NegativeFormat;ZeroFormat;TextForma t

If the number is positive, then excel will reserve room for where the ()'s would
go. It makes things line up nicer.

(and same with zero and text values)


Simon Thorn wrote:

If I format a cell as a currency with symbol '$ French (Canada) the
custom format string generated is "#,##0.00 [$$-C0C]_-".. what does
the trailing minus sign do? It seems to have no effect when switching
between positive/negative/zero values..

Cheers,

Simon Thorn
XLCubed Ltd


--

Dave Peterson
  #3   Report Post  
Simon Thorn
 
Posts: n/a
Default

Thanks for your reply Dave.. I already know that the underscore is
used for spacing but I'm still unclear as to what the purpose of the
trailing minus sign is - it doesn't seem to do anything..?

Cheers

Si.
  #4   Report Post  
JE McGimpsey
 
Posts: n/a
Default

You don't understand *how* "the underscore is used for spacing".


The underscore indicates that enough space for the character that
follows it is to be inserted. So the width of the - sign *is* the amount
of space to be inserted.

If you wanted the width of the underscore inserted, you' use two of them.




In article ,
(Simon Thorn) wrote:

Thanks for your reply Dave.. I already know that the underscore is
used for spacing but I'm still unclear as to what the purpose of the
trailing minus sign is - it doesn't seem to do anything..?

  #5   Report Post  
Simon Thorn
 
Posts: n/a
Default

Cheers! NOW I get it!

Please speak slowly and clearly! ;-p

JE McGimpsey wrote in message ...
You don't understand *how* "the underscore is used for spacing".


The underscore indicates that enough space for the character that
follows it is to be inserted. So the width of the - sign *is* the amount
of space to be inserted.

If you wanted the width of the underscore inserted, you' use two of them.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Customer Number Format Edgar Thoemmes Excel Worksheet Functions 1 January 24th 05 12:39 PM
Telephone number format MarkT Excel Discussion (Misc queries) 6 January 18th 05 10:39 PM
How to format a number in Indian style in Excel? Victor_alb Excel Discussion (Misc queries) 2 December 21st 04 04:21 AM
How do i change numbers in text format to number format? Greg New Users to Excel 1 December 14th 04 05:22 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 01:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"