Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, 2013, 2016, 2019, and 2021. 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: Setting Up an Array with Fields.

Setting Up an Array with Fields

Written by Allen Wyatt (last updated September 2, 2024)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, and 2021


6

There may be a time when you need to create an "array" in the middle of a sentence. For instance, you may need to have a 3 x 3 "mini table" within a sentence. Using an actual table can be unwieldy, particularly if you literally want the array in-line within your sentence.

If you have such a special need, try this out:

  1. Determine how many columns you want in your array.
  2. Determine the elements to appear in each cell of the array.
  3. Position the insertion pointer where you want the array to appear.
  4. Press Ctrl+F9 to insert a pair of field braces.
  5. Enter your field so that it appears as shown here:
  6. { EQ \a \ac \co3 (One,Two,Three,Four,Five,Six,Seven,Eight) }
    
  7. With the insertion point still within the field (between the braces), press F9. Word collapses the field.

When putting together your field, the \a switch indicates you are creating an array. The \ac switch indicates you want the information in each cell centered (you can also use \al for left alignment or \ar for right alignment). The \co3 switch indicates you want three columns in this array; you can (and should) change the number in the switch to reflect the number of actual columns you want in the array. Finally, the information within the parentheses represents the text to appear in each cell of the array, top to bottom and left to right. As shown in this example, the resulting array will be three columns by three rows.

You can also add some spacing switches to the field, if desired. For instance, if you wanted four points of space both vertically and horizontally between the array cells, you could add \vs4 \hs4 to the field.

It is hard to describe the effects of setting up an array. The best way to understand it is simply to try it. You may very well find many instances when you can use arrays in your own documents.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (13174) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, and 2021. You can find a version of this tip for the older menu interface of Word here: Setting Up an Array with Fields.

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

Inserting Fields

Fields are used for a variety of dynamic purposes in a document. There are a couple of ways you can easily insert fields, ...

Discover More

Unhiding Multiple Worksheets

You can hide a bunch of worksheets at the same time, but Excel makes it much more difficult (depending on your version of ...

Discover More

Calculating an ISBN Check Digit

ISBNs are used to uniquely identify books. You may need to know if an ISBN is valid or not, which involves calculating ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 365 applications with VBA programming. Written in clear terms and understandable language, the book includes systematic tutorials and contains both intermediate and advanced content for experienced VB developers. Designed to be comprehensive, the book addresses not just one Office application, but the entire Office suite. Check out Mastering VBA for Microsoft Office 365 today!

More WordTips (ribbon)

Monday's Date on Friday's Report

Automatically putting today's date at the top of a report is easy. Putting a different date, automatically, can be more ...

Discover More

Inserting the Total Number of Characters in Your Document

One of the things that Word keeps track of regarding your document is the number of characters it contains. Using the ...

Discover More

Inserting a Page Number Field

The PAGE field is used to indicate the current page number on which the field occurs. If you want to add this field to ...

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 seven more than 3?

2024-09-03 15:02:23

RM

Allen,
I always enjoy your tips, but sometimes for tips like this one, I wish you would show an example of the results it produces. I'm trying to imagine an inline 3x3 table and trying to understand the purpose for it.
Thanks!


2021-07-04 02:32:43

Roy

@bruin: Not up on much vis-a-vis Fields so I offer no "natural" solution.

But... you could always, effort involved obviously, copy a Field's textual content to another document (just a new file, for example, for this use only, then closed without saving... a scratchpad, if you will), and spellcheck it on its own. If any corrections are made, copy that material back over the original in the Field and you have accomplished spellchecking it.


2020-08-10 03:45:58

Richard Curtis

When inserting an EQ field from scratch, Word isn't at all helpful. In contrast this article is very helpful. Not sure when I might use this feature but I'm starting out on a test report so the opportunity might present itself.


2020-06-08 04:31:39

Andreas

If this tip does not work for you: in my case, I had to use ";" instead of "," , i.e. { EQ \a \ac \co3 (One;Two;Three;Four;Five;Six;Seven;Eight) }. I expect this depends on the regional settings.


2020-06-06 15:53:58

Brian

I love this tip! A field code I never knew about, and I'm sure I'll find it useful. Thanks for the info!

To respond to Bruin's question: I inserted a misspelled word into the array and tried checking spelling with the field codes toggled on & off -- no luck, it wasn't flagged as misspelled. I also checked the spelling & grammar options in Word -- there doesn't appear to be anything related to fields, so also no luck.


2020-06-06 10:28:01

bruin

How do you get Word to check the spelling of words in an array?


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.