WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

If formula

 
   Home -> Office -> Tables RSS
Next:  Word adds a space character when printing  
Author Message
Duncan

External


Since: Aug 31, 2004
Posts: 57



(Msg. 1) Posted: Thu Jan 10, 2008 2:55 am
Post subject: If formula
Archived from groups: microsoft>public>word>tables (more info?)

Hi

I hope someone out there can help me?

I am using the TextForm field button within my doc.
Under the "Properties" of each field, the "Bookmark" is Text32, Text37,
Text42 and Text47

I am trying (and failing) to add a new field that will perform a calculation
based on the fields named above.

What I want the calculation to do is as follows:

If (Text32 + Text37) = (Text42 + Text47) then "Ok" else ((Text32 +
Text37)-(Text42 + Text 47))

Can anyone please point me in the right direction?

Thanks in advance.
Back to top
Login to vote
Stefan Blom

External


Since: Jul 01, 2004
Posts: 7338



(Msg. 2) Posted: Thu Jan 10, 2008 1:38 pm
Post subject: Re: If formula [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In the field properties, choose the "Calculate on exit" option. Then create
fields as follows:

{ SET test1 { = { Text32 } + { Text37 } } }

{ SET test2 { = { Text 42 } + { Text 47 } } }

{ IF { test1 } = { test2 } "Ok" "{ = { test1 } - { test2 } }" }

To insert each pair of field delimiters, { }, press Ctrl+F9. When you are
done, press F9 to update. Finally, protect the document again and try the
code.

In an unprotected document, you can show/hide field codes by pressing
Alt+F9.

--
Stefan Blom
Microsoft Word MVP


"Duncan" wrote in message
news:0C5B857B-FEE1-4D81-B7B0-CEC29B9527BA@microsoft.com...
> Hi
>
> I hope someone out there can help me?
>
> I am using the TextForm field button within my doc.
> Under the "Properties" of each field, the "Bookmark" is Text32, Text37,
> Text42 and Text47
>
> I am trying (and failing) to add a new field that will perform a
> calculation
> based on the fields named above.
>
> What I want the calculation to do is as follows:
>
> If (Text32 + Text37) = (Text42 + Text47) then "Ok" else ((Text32 +
> Text37)-(Text42 + Text 47))
>
> Can anyone please point me in the right direction?
>
> Thanks in advance.
Back to top
Login to vote
Duncan

External


Since: Aug 31, 2004
Posts: 57



(Msg. 3) Posted: Thu Jan 10, 2008 1:38 pm
Post subject: Re: If formula [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You are a legend.

Thank you for this.
Back to top
Login to vote
Stefan Blom

External


Since: Jul 01, 2004
Posts: 7338



(Msg. 4) Posted: Thu Jan 10, 2008 4:22 pm
Post subject: Re: If formula [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You are welcome.

--
Stefan Blom
Microsoft Word MVP


"Duncan" wrote in message
news:A561B878-16FC-42F6-953F-AA4FE4B4BEBC@microsoft.com...
> You are a legend.
>
> Thank you for this.
Back to top
Login to vote
Microsmith

External


Since: Aug 14, 2008
Posts: 8



(Msg. 5) Posted: Thu Aug 14, 2008 9:47 am
Post subject: Re: If formula [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Duncan,

One tool that works great for creating formulas in Word is "Formula Builder
for MS Word". You can find it at most major download sites.

"Duncan" wrote:

> You are a legend.
>
> Thank you for this.
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Tables All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET