Number format for -1E-100

Nuz

Board Regular
Joined
Aug 16, 2010
Messages
88
I have a range of cells where some cells have values -1E-100.
I would like to display those values like they are zeros. But since they are actually negative values, my custom number format is not working correctly. I currenly have the number format as:
Code:
_-* # ##0_-;_-* (# ##0)_-;_-* -_-;_-@_-
The problem is that -1E-100 is displayed as (0) when I would like to have it displayed as - (like a zero value).

Can I modify the custom number formatting to fix this for -1E-100 values?
 
Thanks pgc01. That was a detailed look at the problem.
Of course it is theoretically possible the we want to include the leading zeros in some cases (positive and negative cash flows offset each other) as xenou mentioned but i suppose in practice 99,9% of the cases we want to exlude them (there is no data).
This has to be a bug in the XIRR since the ordinary IRR formula ignores always the leading zeros.
 
Upvote 0

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,224,586
Messages
6,179,710
Members
452,939
Latest member
WCrawford

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