Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.word.tables
macropod
 
Posts: n/a
Default MS Word table - problem with conditional formula

Hi Peterkins,

A formula in Column C like:
{IF B2=X {=2*2.9} \# £,0.00}
should give the result you're after. However, this requires hard-coding both
the entry fee and the number of entrants. If you set your table up so that
Column C has the number of entries, and Column D has the fee per entry, you
could use:
{IF B2=X {=C2*D2} \# £,0.00}
in Column E.

For more on Word field maths, check out my Word Field Maths 'tutorial', at:
http://www.wopr.com/cgi-bin/w3t/show...?Number=365442

Cheers


"Peterkins via OfficeKB.com" u20492@uwe wrote in message
news:5e648d56f3b52@uwe...
Hi Suzanne

Thanks for your response. If one tries to construct the formula from the
Word menu bar - Table Formula, the Formula dialogue appears and any

formula
constructed appears in the cell with a pair of braces around it. However

if
one pastes the IF function into the formula line it then appears as

"=IF( )"
(without the quotes of course). I have been unable to find any way to

insert
a pair of braces in the formula line. So I have constructed the formula
directly in the table cell using Ctrl + F9 to insert the braces then

keying
in your suggested syntax. The formula was accepted into the cell without

any
error message, but when I selected the cell and updated it with F9 the

cell
remained blank even though there was an X in B3. Your alternative also
performed similarly.

It seems the inclusion of spaces does make a difference. In the following

I
have put asterisks where spaces occur: -

{*IF*B2*=*"X"*{*=*PRODUCT(2.9,2),*}""*} This gives a "no result" i.e. the
cell is blank when updated.

{*IF*B2="X"*{*=*PRODUCT(2.9,2),*}""*} Removing the spaces either side of

the
first "=" causes a X to appear in the cell when it is updated.

Unfortunately I am no further forward in finding what is wrong with the
syntax of my version. Please may I ask you if you have actually tried to

get
this working on your system; I would be very interested to know.



Suzanne S. Barnhill wrote:
I think you're trying to use Excel syntax in Word. Word's syntax would

be:

{ IF B3 = "X" { = PRODUCT (2.9,2) } "" }

or just

{ IF B3 = "X" { = 2.9 * 2 } "" }


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...ables/200604/1



 
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
WP merge file to Word sstires Tables 4 February 14th 06 06:26 PM
How can Word display full path of a file in the title bar? SAsif Microsoft Word Help 1 January 26th 06 04:32 PM
Formula to Sum values in word table Craig Mailmerge 1 August 29th 05 06:19 PM
Underscore (_) will not always display in RTF files (Word 2002). David A Edge Microsoft Word Help 6 June 14th 05 10:39 AM
Envelope Address GR New Users 5 April 24th 05 09:48 PM


All times are GMT +1. The time now is 08:33 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"