If Formula syntax error

B

BigPig

={IF{bkmrk2}="E7""SFC""None"}
Everytime I try this or a variation of it, I get a syntax error.

The form is in a table, and what I want it to do, is autimatically fill in
other cells in the same table (on different pages) with the same data (text)
or replace certain text phrases with others.

The specifc action requested for the above formula is this: In a different
cell of the same table, I want to replace (the grade) "E7" with (the rank)
"SFC" for the purposes of creating a signature block.

Please Help! Thanks!
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?QmlnUGln?=,
={IF{bkmrk2}="E7""SFC""None"}
Everytime I try this or a variation of it, I get a syntax error.
Try this. Note the SPACES (sometimes, Word gets finicky in formulas). Also make
sure you've pressed Ctrl+F9 to create the field brackets { }

{ IF { REF bkmrk2 } = "E7" "SFC" "None" }

Note that = (if you're using this in a field calculation) only works with
numbers, not text. Since the result of the IF field will be text, you shouldn't
be using an equals sign or a calculation field, just the IF field.
The form is in a table, and what I want it to do, is autimatically fill in
other cells in the same table (on different pages) with the same data (text)
or replace certain text phrases with others.

The specifc action requested for the above formula is this: In a different
cell of the same table, I want to replace (the grade) "E7" with (the rank)
"SFC" for the purposes of creating a signature block.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 
B

BigPig

Hi Cindy,

Thanks for the help! However what I got after toggling was "REF" (minus the
quotations). Then I tried it without the "REF" and I got "bkmrk2".
Do you have any suggestions?

Thankyou in advance!
 
B

BigPig

That was it! Thanks.

Now my question is how can it be made to update automatically? As opposed to
right clicking and selecting update. I think that I should make this form in
excel instead. But if you have any suggestions that would be great!

Thanks!
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?QmlnUGln?=,
Now my question is how can it be made to update automatically? As opposed to
right clicking and selecting update. I think that I should make this form in
excel instead.
There's really no way to get Word to automatically update formulas (or other
fields), except by activating the option for printing.

Ctrl+A, F9 is usually pretty good. Or you could use a macro (to only update
fields in a certain range, for example). Even more "sophisticated" would be a
macro based on EVENTS, such as when the selection changes; this can get a bit
complicated, however.

So, yes, if you need dynamic calculations, Excel is definitely the better
application :)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top