formula field: don't display anything when value is zero (using ;"

J

JOHABE

hello, I read this under the topic "How to get a formula field to total an
entire table column, even if some cells in the column contain text or are
blank" on the MVP-site and can't get it to work. I'm interested in the final
bit, using ;""
Does anyone know how to do this?

<start quotation>...

Then in the total cell, press Ctrl+F9, and within the field braces {},
insert the following formula:

{ SUM(Table1 F:F) \# "#,##0.00;- #,##0.00;''" }

“Table1†in the formula refers to the name of the bookmark you've marked the
main table with. The formula, being in a different table from the column it's
totalling, wouldn't know which table you were referencing otherwise. The F:F
bit means the 6th column from the left.

The bit at the end of the formula:

;''"

.... means that if there are no values in column F, don't display anything
(otherwise it would display 0.00). I learnt that trick from Word MVP Cindy
Meister.

....<end quotation>
 
S

Stefan Blom

You probably confused ;''" at the end (semi-colon, two single quotation
marks, double quotation mark) with ;"" (semi-colon, two double quotation
marks).
 
G

Graham Mayor

If you are *working in the table*, the following will work

{ =SUM(F:F) \# ",0.00;-,0.00;"}

If you are *working outside the table*, display the formatting by clicking
the ¶ button
At the end of each row of the table (outside the table) there is a cell end
character. Put the cursor between one of these characters and the table (it
doesn't matter which) and insert a bookmark - Table1

The following will then work

{ =SUM(Table1 F:F) \# ",0.00;-,0.00;"}


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
J

JOHABE

Thanks!
I got it working now, you were right about my confusion...
is this a hidden option of the \# option?
Do u know of a site/article that discusses in-depth word-formulas?
Would be interested in that.
 
M

macropod

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