Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Displaying Blanks when Summing to Zero.

Displaying Blanks when Summing to Zero

Written by Allen Wyatt (last updated June 20, 2020)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365


When you are working with tables in Word, you can use a field to sum the values in a range of cells or in an entire column. Normally, if the sum of the range is zero, the field displays a 0—this seems reasonable. You may, however, want the field to display a blank when the sum is zero, instead of the actual number 0.

To do this, simply modify your sum formula as follows:

{ =SUM(ABOVE) \# #;-#; }

Notice the addition of several parameters after the SUM formula. The first (\#) is known as a numeric picture field switch. It tells Word that the following codes represent a picture of how you want numeric information displayed. The second switch (just before the first semicolon) indicates how you want positive numbers to display. The second (just before the second semicolon) indicates how you want negative numbers to display. The final one (in this case blank, just after the second semicolon) indicates how you want zero values to display. Since this is blank, zero values are displayed as blanks.

You can apply the same logic if you want to display dollar values. Simply change the formatting codes used in the field to match how you want the data displayed:

{ =SUM(ABOVE) \# $#,##0.00;($#,##0.00); }

Here positive numbers are displayed with a dollar sign, commas (if necessary) and two decimal places. Negative values are displayed the same, except there are parentheses around the number. Again, zero values are left blank.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (13241) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365. You can find a version of this tip for the older menu interface of Word here: Displaying Blanks when Summing to Zero.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Turning Off Background Repagination

When you use Word, it normally performs several tasks in the background, while you are typing. One of those tasks is to ...

Discover More

Vertical Alignment of an Inline Graphic

Word allows you to insert graphics in two ways: either inline or floating. If you use inline graphics, you may want to ...

Discover More

Putting a File Name and Path in a Default Footer

Want to add a filename and path to the footer of a template? You might be confused by what you see in documents created ...

Discover More

The First and Last Word on Word! Bestselling For Dummies author Dan Gookin puts his usual fun and friendly candor back to work to show you how to navigate Word 2013. Spend more time working and less time trying to figure it all out! Check out Word 2013 For Dummies today!

More WordTips (ribbon)

Field in Footer Won't Update

Word provides a handy shortcut that allows you to update the fields in any text you've selected. When you select your ...

Discover More

Word and Character Count Information

Using fields you can easily insert both the word and character counts for a document into the document itself. Here's how ...

Discover More

Fields Won't Update when Printing

When you print a document, Word normally performs several steps, one of which is to update any fields contained in the ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 5 - 3?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.

Videos
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.