display negative numbers in a table in brackets

  • Thread starter Liliana Hartwig
  • Start date
L

Liliana Hartwig

I have a table in word which displays negative number with the "-" symbol,
I'd like to use brackets instead.
 
M

macropod

Hi Liliana,

If the -ve value is the result of a formula field calculation, you can add a numeric picture switch to it to control the dsiplay
format. To do this:
.. select the field (not the whole cell) and press Shift-F9 to display the field code. It should look something like {=SUM(ABOVE)} or
{=SUM(A1:A5} or {=A1+A2}, depending on the kind of formula it's using. If you see {FORMTEXT}, it's a formfield, for which you can
change the display format by right-clicking and choosing 'Properties'.
.. for anything other than a formfield, edit the field by adding '\# $,0.00;($,0.00)', so that you get something like {=SUM(ABOVE) \#
$,0.00;($,0.00)} (or whatever other numeric format you prefer - see below);
.. position the cursor anywhere in this field and press F9 to update it;

Other formula field formatting possibilities include:
.. \# 0 for rounded whole numbers
.. \# ,0 for rounded whole numbers with a thousands separator
.. \# ,0.00 for numbers accurate to two decimal places, with a thousands separator
.. \# $,0 for rounded whole dollars with a thousands separator
.. \# $,0.00;($,0.00);'-' for currency, with brackets around negative numbers and a hyphen for 0 values

The precision of the displayed value is controilled by the '0.00'. You can use anything from '0' to '0.000000000000000'.

If you use a final ';' in the formatting switch with nothing following, (eg \# $,0.00;($,0.00);) zero values will be suppressed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top