Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2007

Tip: Looking for answers? Try searching our database.

Calculation needing to show negative figures

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
OTWarrior - 30 Apr 2007 10:50 GMT
I have (complicated) series of calculation boxes which draw their data from
text form fields and drop down form fields, and the final resulting
calculation is the overall cost.
eg:

(text1 * dropdown1) = calc1

calc2 = (calc1 * text2)

calc1 is the hours result, calc2 is the cost result.
calc2 is actually made using the autosun button, and changing the formula
(otherwise it gets confused with calculating using another calculation)

I have a situation where the figure can be a negative (hours off for
example) which shows this figure fine. (-5 hours). the problem lies with the
cost which shows the figure in a different format [exact example below].

(£50.00)

whereas it should show
£-50.00
or
-£50.00

How do I change this (if possible)?
Stefan Blom - 30 Apr 2007 11:34 GMT
To the field code, add a numeric picture switch to specify the format of
positive, negative, and zero results, respectively. For example:

\# "£#;£-#;0"

The code means: for positive results, display currency symbol and then
the number (or a space); for negative, display currency symbol, minus
sign, and number; for zero results, display only a zero.

Signature

Stefan Blom
Microsoft Word MVP

> I have (complicated) series of calculation boxes which draw their data from
> text form fields and drop down form fields, and the final resulting
[quoted text clipped - 21 lines]
>
> How do I change this (if possible)?

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.