Go Premium for a chance to win a PS4. Enter to Win

x
Solved

# Number format excel 2003

Posted on 2012-04-13
Medium Priority
263 Views
Hi Experts

How would you show the 0.00 values as "-" and stil leave the positive numbers as 45.00 and the negative numbers as -69.50.

thanks
0
Question by:route217
• 3
• 3
• 2
• +1

LVL 6

Accepted Solution

stavros41 earned 668 total points
ID: 37842891
The Format should be Accounting with 2 decimal places.
0

LVL 24

Assisted Solution

Eirman earned 668 total points
ID: 37842892
I'm not quite sure how, but this custom number format seems to work

_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-
0

LVL 8

Assisted Solution

JT92677 earned 664 total points
ID: 37842925
Try "Conditional Formatting" - here's an example showing what you want to do, with the - in place of 0.00

http://office.microsoft.com/en-us/excel-help/creating-conditional-formatting-formulas-HA001111661.aspx

There are other sources explaining conditional formatting. But it looks like the easiest solution.

Jeff

Just noticed the "accounting format" approach, if that works, it might even be easier. I use open office on a Linux computer and conditional formatting is supported, but I haven't found the "accounting" format. Maybe conditional formatting is more universal ?

Whatever works best.
0

Author Comment

ID: 37842965
Thanks for the feedback
0

LVL 8

Expert Comment

ID: 37842976
If you want to get clever, with alternate row shaded (like line printer paper) or highlight values based on some criteria, look at these examples:  http://www.contextures.com/xlcondformat03.html
0

Author Comment

ID: 37843002
Ok expers tried the lot and still not working.
0

Author Comment

ID: 37843010
Gives the negative values as -           69.50 as opposed to -69.50

Thanks
0

LVL 6

Expert Comment

ID: 37843117
Try this: _- #,##0.00_-;- #,##0.00_-;_- "-"_-;_-_-
0

LVL 8

Expert Comment

ID: 37843627
This may require an excel VB macro. I thought the conditional formatting was more useful. All it can do is change the shading, which might be useful for 0 but not what  you want.

Microsoft calls it "conditional formatting" but it is apparently just "conditional coloring" or some such nonsense. No control over the actual number formatting to do what you want to do. It did seem promising.

Sorry 'bout that.
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
###### Suggested Courses
Course of the Month8 days, 20 hours left to enroll

#### 876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.