A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

parenthesis for negative numbers



 
 
Thread Tools Display Modes
  #1  
Old August 31st, 2009, 07:53 PM posted to microsoft.public.word.tables
JR
external usenet poster
 
Posts: 234
Default parenthesis for negative numbers

how do I get the negative numbers to appear in parens instead of the negative
sign in front of it?
  #2  
Old August 31st, 2009, 09:04 PM posted to microsoft.public.word.tables
Jay Freedman
external usenet poster
 
Posts: 9,488
Default parenthesis for negative numbers

jr wrote:
how do I get the negative numbers to appear in parens instead of the
negative sign in front of it?


Use a numeric picture switch in the formula or sum field, as shown in
http://www.gmayor.com/formatting_wor...m#basic_switch.

For example, if the numbers in the table column are decimals with two
digits, the field would look like

{ =SUM(ABOVE) \#"0.00; (0.00)" }


--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.


  #3  
Old August 31st, 2009, 10:41 PM posted to microsoft.public.word.tables
Herb Tyson [MVP]
external usenet poster
 
Posts: 3,614
Default parenthesis for negative numbers

Delete the minus sign and press Shift+9 before the number and Shift+0 after
the number.

Or... did you mean automatically? If you mean automatically, Word does not
have the ability to format numbers in that way--for that, you could use
Excel. One way would be to embed an Excel worksheet inside Word to use as
the basis for your table. That way you would have all of Excel's
capabilities when editing and formatting the table.

--

Herb Tyson MS MVP
Author of the Word 2007 Bible
Blog: http://word2007bible.herbtyson.com
Web: http://www.herbtyson.com


"jr" wrote in message
...
how do I get the negative numbers to appear in parens instead of the
negative
sign in front of it?


  #4  
Old August 31st, 2009, 11:40 PM posted to microsoft.public.word.tables
Herb Tyson [MVP]
external usenet poster
 
Posts: 3,614
Default parenthesis for negative numbers

I said:

Or... did you mean automatically? If you mean automatically, Word does not
have the ability to format numbers in that way...


Except using field codes, as Jay points out. However, unless you're already
using a field, enshrining your numbers in a { = } field seems like a lot
more work than just adding your own parentheses. It could also be done using
Find/Replace--with or without difficulty depending on whether the numbers
contains commas. Assuming they don't and numbers don't have more than 10
digits, select the table, row, or column of interest, and use:

Find what:-([0-9]{1,10}) (and enable Use wildcards)
Replace with\1)

Add the desired currency symbol as needed if you're dealing with money.

You could commit the Find/Replace to a macro and assign it to a
key/button/etc. so that you could simply apply it to a table that's
populated with numbers that need to be ()'ed.

If the numbers contain commas, a more complex specification might be able to
find them, but it's probably not worth the brain strain unless they do.

All in all... I'd use an Excel table if I needed (9) instead of -9 and had a
lot of instances.

--

Herb Tyson MS MVP
Author of the Word 2007 Bible
Blog: http://word2007bible.herbtyson.com
Web: http://www.herbtyson.com


"Herb Tyson [MVP]" wrote in message
...
Delete the minus sign and press Shift+9 before the number and Shift+0
after the number.

Or... did you mean automatically? If you mean automatically, Word does not
have the ability to format numbers in that way--for that, you could use
Excel. One way would be to embed an Excel worksheet inside Word to use as
the basis for your table. That way you would have all of Excel's
capabilities when editing and formatting the table.

--

Herb Tyson MS MVP
Author of the Word 2007 Bible
Blog: http://word2007bible.herbtyson.com
Web: http://www.herbtyson.com


"jr" wrote in message
...
how do I get the negative numbers to appear in parens instead of the
negative
sign in front of it?


 




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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:18 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.