Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.tables
Duncan Duncan is offline
external usenet poster
 
Posts: 21
Default Formatting a Text Form Field

Hi

I have a table (3 rows). rows 1 and 2 contain a Text form field, both of
which are Type = Number.

I then have, in row 3, a calculated field. (Formula = A1/A2).
I need to show the result a a percentage to 4 decimal places.

I am completely stuck. (
Can anyone help please?
  #2   Report Post  
Posted to microsoft.public.word.tables
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Formatting a Text Form Field

Hi Duncan,

You can do this easily with a formula field instead of a formfield. Simply press Ctrl-F9 to create a pair of field braces (ie '{ }')
and type: '=A1/A2*100 \# 0.0000%' between the field braces, so that you end up with '{=A1/A2*100 \# 0.0000%}'. Then protect your
document. If A1 has 5 and A2 has 7, you'll get 71.4286% as the result.

--
Cheers
macropod
[MVP - Microsoft Word]


"Duncan" wrote in message ...
Hi

I have a table (3 rows). rows 1 and 2 contain a Text form field, both of
which are Type = Number.

I then have, in row 3, a calculated field. (Formula = A1/A2).
I need to show the result a a percentage to 4 decimal places.

I am completely stuck. (
Can anyone help please?


  #3   Report Post  
Posted to microsoft.public.word.tables
Duncan Duncan is offline
external usenet poster
 
Posts: 21
Default Formatting a Text Form Field

Hi Macropod

That is great, thank you.........however (there is always a however isn't
there!!)

How do I get around deviding by zero? At present I get the following "!Zero
Divide"

"macropod" wrote:

Hi Duncan,

You can do this easily with a formula field instead of a formfield. Simply press Ctrl-F9 to create a pair of field braces (ie '{ }')
and type: '=A1/A2*100 \# 0.0000%' between the field braces, so that you end up with '{=A1/A2*100 \# 0.0000%}'. Then protect your
document. If A1 has 5 and A2 has 7, you'll get 71.4286% as the result.

--
Cheers
macropod
[MVP - Microsoft Word]


"Duncan" wrote in message ...
Hi

I have a table (3 rows). rows 1 and 2 contain a Text form field, both of
which are Type = Number.

I then have, in row 3, a calculated field. (Formula = A1/A2).
I need to show the result a a percentage to 4 decimal places.

I am completely stuck. (
Can anyone help please?



  #4   Report Post  
Posted to microsoft.public.word.tables
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Formatting a Text Form Field

You can error trap the warning message with a conditional field eg

{IF {=A1/A2} "!Z*" "{=A1/A2*100 \# 0.0000%}" "0.0000%"}

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Duncan wrote:
Hi Macropod

That is great, thank you.........however (there is always a however
isn't there!!)

How do I get around deviding by zero? At present I get the following
"!Zero Divide"

"macropod" wrote:

Hi Duncan,

You can do this easily with a formula field instead of a formfield.
Simply press Ctrl-F9 to create a pair of field braces (ie '{ }') and
type: '=A1/A2*100 \# 0.0000%' between the field braces, so that you
end up with '{=A1/A2*100 \# 0.0000%}'. Then protect your document.
If A1 has 5 and A2 has 7, you'll get 71.4286% as the result.

--
Cheers
macropod
[MVP - Microsoft Word]


"Duncan" wrote in message
...
Hi

I have a table (3 rows). rows 1 and 2 contain a Text form field,
both of which are Type = Number.

I then have, in row 3, a calculated field. (Formula = A1/A2).
I need to show the result a a percentage to 4 decimal places.

I am completely stuck. (
Can anyone help please?



  #5   Report Post  
Posted to microsoft.public.word.tables
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Formatting a Text Form Field

Hi Duncan.

Basically, the same as you would in Excel:
{=IF(A2=0,0,A1/A2*100) \# 0.0000%}

--
Cheers
macropod
[MVP - Microsoft Word]


"Duncan" wrote in message ...
Hi Macropod

That is great, thank you.........however (there is always a however isn't
there!!)

How do I get around deviding by zero? At present I get the following "!Zero
Divide"

"macropod" wrote:

Hi Duncan,

You can do this easily with a formula field instead of a formfield. Simply press Ctrl-F9 to create a pair of field braces (ie
'{ }')
and type: '=A1/A2*100 \# 0.0000%' between the field braces, so that you end up with '{=A1/A2*100 \# 0.0000%}'. Then protect your
document. If A1 has 5 and A2 has 7, you'll get 71.4286% as the result.

--
Cheers
macropod
[MVP - Microsoft Word]


"Duncan" wrote in message ...
Hi

I have a table (3 rows). rows 1 and 2 contain a Text form field, both of
which are Type = Number.

I then have, in row 3, a calculated field. (Formula = A1/A2).
I need to show the result a a percentage to 4 decimal places.

I am completely stuck. (
Can anyone help please?




Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Text Form Field Formatting Ashley Microsoft Word Help 1 March 29th 07 03:26 PM
Formatting Issue in Form Text Field dleepoff Microsoft Word Help 0 May 31st 06 09:39 PM
Formatting text form field - can I make the text wrap? [email protected] Microsoft Word Help 4 May 5th 06 02:31 AM
Date formatting in text form field, part II Ray_Johnson Microsoft Word Help 2 February 10th 05 10:01 PM
Date formatting in text form field Ray_Johnson Microsoft Word Help 3 January 10th 05 11:18 AM


All times are GMT +1. The time now is 01:00 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"