Number format hide errors

opislak

Board Regular
Joined
Feb 28, 2017
Messages
68
Hello intelligent people,

I'm trying out formulas in the custom number format section to prevent numbers to be shown if they are = 0, to show them in black when > 0, in red when < 0. This one almost works fine for me:
  • if I want to show a result in euros (€-sign): [Black]#.##0 €;[Red]#.##0- €;;@
  • if I want to show a result in mandays (MD): [Black]#.##0_- [$MD];[Red]#.##0-_-[$MD];;@
The fine thing here is that the table doesn't look overcrowded with zeroes and only shows relevant numbers in plus or minus.
However, what should I do to prevent showing errors like #DIV/0! (then the same should happen like if the result would be zero: show a blank cell).

Problem: conditional formatting is no option. We work in a multilingual company (Dutch, French, English) and Excel seems to have problems with translating formulas. Excel only translates the "regular" formulas in cells, but conditional formatting formulas are not being translated when a user of another language opens the file.

Thanks in advance for any valuable input.
Greetings, Patrick.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
To handle #DIV/0 errors, ISERROR functions would be better than formatting, to stop the error from causing further errors from subsequent calculation.
 
Upvote 0
That's right, also did that temporarily in my formula. I just wondered if it would be possible in the number format. (I like to learn :) )
But thanks!
 
Upvote 0
Hi
 

Attachments

  • Format.jpg
    Format.jpg
    81.4 KB · Views: 17
Upvote 0
@ISY
The OP has already said that conditional formatting is not an option. ;)
 
Upvote 0
To handle #DIV/0 errors, ISERROR functions would be better than formatting, to stop the error from causing further errors from subsequent calculation.
I did use the errorhandling first in the formula and this works fine. Thus the rest follows.
Thanks all for the assistance!
Grts , Patrick.
 
Upvote 0
Out of interest, can you give an example of a CF formula that doesn't work between languages? They should translate unless you are using something that wouldn't translate in a cell either (eg date formatting in a TEXT formula), or you're using code to assign the CF.
 
Upvote 0
Out of interest, can you give an example of a CF formula that doesn't work between languages? They should translate unless you are using something that wouldn't translate in a cell either (eg date formatting in a TEXT formula), or you're using code to assign the CF.
I have to apologize for not being correct. I just tested it and now it does work fine. I remember that it didn't in the past.
At work, we have users (and Office-versions) in 3 languages (English, Dutch, French) and I remember me distributing (English) Excelfiles with a "ReadMe"-tab explaining cell colors that I used. I got responses from colleagues of another linguistic system looking for cells in certain colors. Not one cell had changed color! I then went to see these people and in the sheet, every formula was automatically translated, but not the conditional ones. Things like "Round" were not translated into the Dutch version "Afronden" or the French "Arrondi", 'Sum" should have become "Som" or "Somme", "If" into "Als" or "Si", etc. but it didn't. But just now, I tested it and now it works excellent.
So again: sorry...
 
Upvote 0

Forum statistics

Threads
1,214,957
Messages
6,122,472
Members
449,087
Latest member
RExcelSearch

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