Actuarial Outpost
 
Go Back   Actuarial Outpost > Actuarial Discussion Forum > Software & Technology
FlashChat Actuarial Discussion Preliminary Exams CAS/SOA Exams Cyberchat Around the World Suggestions

Life Actuarial Jobs
& Annuities,

& Investments
Worldwide

Salary Surveys
Life & Health

Pension
Property & Casualty

DW Simpson & Co.
Actuarial
Recruitment
Worldwide

Casualty Jobs
& Property -- Worldwide
Reinsurance,

Insurance, Bureaus & Consulting


Reply
 
Thread Tools Display Modes
  #1  
Old 08-14-2002, 10:32 AM
Not Mike Not Mike is offline
Member
 
Join Date: Oct 2001
Posts: 8,824
Default Number formatting in Excel

I hate trying to format numbers in Excel.... I tried following the "custom format" but some of those are nearly possible to understand...

Here's what I'm trying to do:

I want to have a number format that is a "-" when it's zero, but also allows me to center my number in a cell... for some idiotic reason, the "-" is already centered, but the "number" gets right justified (and won't allow you to change the position of either!)....

Anyone know how to work around this??
Reply With Quote
  #2  
Old 08-14-2002, 10:33 AM
Cho Da's Avatar
Cho Da Cho Da is offline
Site Supporter
Site Supporter
CAS
 
Join Date: Sep 2001
Posts: 3,054
Default

If you want the number centered, set the alignment to center.
__________________
Don't listen to a word I say. The screams all sound the same.
Reply With Quote
  #3  
Old 08-14-2002, 10:53 AM
Not Mike Not Mike is offline
Member
 
Join Date: Oct 2001
Posts: 8,824
Default

Quote:
Originally Posted by Puck
If you want the number centered, set the alignment to center.
This doesn't work in certain formats (for instance the "," format).... at least it doesn't in Excel 97....
Reply With Quote
  #4  
Old 08-14-2002, 10:59 AM
Pseudolus's Avatar
Pseudolus Pseudolus is online now
Member
 
Join Date: Nov 2001
Location: galumphing towards Bethlehem
Favorite beer: Four Loko
Posts: 52,595
Default

NM - Try
Code:
_( #,##0.00_)
. I don't know why, but it seems to work. (I started with one of the existing "Custom" codes and deleted the asterisk.)
Reply With Quote
  #5  
Old 08-14-2002, 11:03 AM
Pseudolus's Avatar
Pseudolus Pseudolus is online now
Member
 
Join Date: Nov 2001
Location: galumphing towards Bethlehem
Favorite beer: Four Loko
Posts: 52,595
Default

That one seems to get rid of the "-" for zero. Here's the extended dance remix to put that feature back:
Code:
_( #,##0_);_( (#,##0);_( "-"_);_(@_)
I have no idea what the last segment means, but it seems to work.
Reply With Quote
  #6  
Old 08-14-2002, 11:08 AM
Not Mike Not Mike is offline
Member
 
Join Date: Oct 2001
Posts: 8,824
Default

Pseudolus, thanks! I tried fiddling a bit, but didn't think to just remove the "*"....
Reply With Quote
  #7  
Old 08-14-2002, 11:13 AM
Cho Da's Avatar
Cho Da Cho Da is offline
Site Supporter
Site Supporter
CAS
 
Join Date: Sep 2001
Posts: 3,054
Default

Quote:
Originally Posted by Not Mike
Quote:
Originally Posted by Puck
If you want the number centered, set the alignment to center.
This doesn't work in certain formats (for instance the "," format).... at least it doesn't in Excel 97....
If you just want comma centered use:
Code:
0,000;(0,000);"-"
The * pads stuff out. You don't need the _) if you are centering anyway.
__________________
Don't listen to a word I say. The screams all sound the same.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -4. The time now is 07:52 AM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
*PLEASE NOTE: Posts are not checked for accuracy, and do not
represent the views of the Actuarial Outpost or its sponsors.
Page generated in 0.23418 seconds with 7 queries