How to modify the Word formula number field code: SEQ label
Explain why the number behind the Word formula cannot be changed, how to display and edit the SEQ field code, change the number to Roman numerals, chapter numbers, or count from the beginning, and check the results item by item after modification.
Key points of this article
- The formula number is usually a SEQ field. Directly changing the number will be restored when updating. The field code itself should be modified.
- Use Alt+F9 to display the field code, confirm the SEQ field enclosed in curly braces, and then modify the format switch, such as \ ARABIC or \ ROMAN.
- When chapter numbers are needed, use the STYLEREF field to display chapters, and add the \s switch to SEQ to re-count the numbers after each first-level title.
- After modification, select all documents and press F9 to update all fields and check cross-references to avoid that the old numbers are still referenced in the text.
When writing papers, reports or technical documents, many people will put a number on the right side of the formula, such as (1), (2). This number is usually inserted using a caption. After inserting it, I want to change it to a format with chapter numbers (3.1), or I want to change it to Roman numerals and remove the brackets, but I find that after changing the number directly, it changes back again. The reason is that the number is a field code, and Word recalculates the code when the field is updated.
This article is written for people who need to adjust formula numbering at the code level. After reading, you will know how to find the SEQ field behind the formula number, how to modify the format switch and chapter count, and how to update the numbering and cross-references synchronously throughout the text.
The following operations are based on the desktop version of Word. The menu positions and shortcut keys of different versions and systems are slightly different. In case of inconsistency, the actual interface shall prevail.
How to change the number field code behind the formula? One sentence conclusion
Directly changing the displayed number is usually invalid. You need to modify the SEQ field code. After modification, press F9 to update the field, and the number will be generated according to the new rules. When you only need to change the brackets or surrounding text, you can change the ordinary text without changing the field code.
| your situation | Recommended practices | reason |
|---|---|---|
| Just ordinary consecutive numbers (1), (2) | Keep the default SEQ field and do not change the code | The default writing method is stable and has fewer errors. |
| I want chapters like (3.1) to be numbered | Use the STYLEREF field to display the chapter number, and add the \s switch to SEQ | Numbering will be automatically re-counted in each chapter |
| Just want to change the brackets or prefix text | Modify ordinary text outside the domain | The domain itself is not affected and is not lost when updating |
| Want to change to Roman numerals or letters? | Modify the \* format switch after SEQ | The format switch determines the display style of numbers |
| The formula number should be quoted in the text | Generate REF fields using cross-references | After the number changes, the reference can be synchronized with the update |
Before you start: Confirm these points first
Before making changes, confirm the nature of the number and the status of the file, which can save a lot of rework.
- Confirm whether the number is a domain. If the number is a hand-typed number, modifying the field code has no effect. You need to delete it first and then reinsert it through the caption. The way to judge is to display the field code and see if there is any content wrapped in curly braces.
- Save a copy first. After the field code is corrected, all the numbers in the document may be displayed with wrong words. Save a copy before making changes so you can roll back if something goes wrong.
- Confirm chapter style. If you want to count by chapter, the heading must use Word's built-in heading style (such as "Heading 1"), rather than just a normal paragraph with the font size increased. Otherwise the \s switch cannot find the beginning of the chapter.
- Confirm usage scenario. If the document is eventually handed over to others to open with other software, the compatibility of the field code may be different. After the change is completed, it must be checked again in the target environment.
- Remember domain boundaries. Curly braces are the start and end marks of the field. They should be inserted using shortcut keys or menus, rather than typing manually. Manually entered curly braces are not recognized as fields by Word.
Steps to modify formula number SEQ field code in Word
- Display field code. Press Alt+F9 on Windows to switch the display of all field codes; on Mac, you can find the shortcut key for "Switch Field Codes" in the keyboard settings. Some machines also need to press the Fn key at the same time.
- Find the SEQ field of the formula number. The common writing method is similar to { SEQ formula \* ARABIC }, where "formula" is the caption label and ARABIC represents Arabic numerals.
- Select the part you want to modify. For example, if you want to change the numbers to Roman numerals, just change \ ARABIC to \ ROMAN; if you want to count from the beginning, you can add \r 1 to the field so that the number starts from 1. Keep the curly braces and spaces unchanged when modifying.
- Update the current domain. Press F9 with the field selected and check that the numbers change as expected. If the word "error" appears, it's probably because the switch is spelled incorrectly. Check it against the previous step.
- Set the chapter number. Insert the STYLEREF field before the formula number. The code is similar to { STYLEREF 1 \s } to display the chapter number of the current first-level title. Add \s 1 to the SEQ field to re-count the number after each first-level title. Use "-" to connect the two fields to get the format (2-3).
- Select all and update the full text. Press Ctrl+A to select the full text, then press F9. If a prompt appears as to whether to update the entire directory, you should make your choice based on the actual situation of the document.
- Turn off field code display. Press Alt+F9 again to switch back to normal view, browse the formula numbers page by page, and confirm that there are no abnormalities in the layout.
- Updated cross-references. Wherever "Formula (2-3)" is quoted in the text, the corresponding REF field needs to be updated, or re-inserted through cross-reference to ensure that the reference number is consistent with the formula.
Check each item after completion
After the field code is modified, it is recommended to check it item by item according to the following checklist, especially before delivery.
| Check items | How to see | What to do if there is a problem |
|---|---|---|
| Are the numbers consecutive? | Start with the first formula and go through it one by one | Find hand-typed numbers, delete and reinsert captions |
| Is the field code switch correct? | Show field codes, check the spelling of \* and \s switches one by one | If you spell it incorrectly, the wrong word will appear. Please change it back according to the standard writing method. |
| Whether to re-count at chapter switches | Turn to the new chapter and look at the first formula number | Check whether the title uses the built-in title style and whether the \s switch is written correctly |
| Are cross-references synchronized? | After selecting all, press F9 and look at the number cited in the text. | Re-insert the cross-reference when the reference still has the old number |
| Is it consistent after exporting? | After exporting the PDF, compare numbering with in-text citations | Update all fields again before exporting and review in the target software |
📊 Core comparison
When adjusting formula numbers, the three common modification methods have their own applicable scenarios.
| method | Applicable scenarios | Main risks |
|---|---|---|
| Directly change the displayed numbers | Temporary preview, or documents whose numbers are plain text | The domain will be restored after updating, and it is easy to be inconsistent when multiple people collaborate. |
| Modify the format or label of a caption | I just want to unify the adaptation number styles, such as brackets and prefixes | Existing formulas need to be updated one by one, which may affect old cross-references |
| Modify SEQ field code | Requires detailed control of Roman numerals, chapter counting, numbering from the beginning, etc. | Wrong writing of the switch will result in error display and needs to be checked item by item. |
If you just unify brackets or add prefixes, use the caption function first; when counting rules are involved, go to the field code level to modify.
❓ Frequently Asked Questions (FAQ)
1. Why did I change the number directly and then change it back again after a while?
Because this is a field, Word will recalculate it based on the field code when it updates. To permanently change the numbering, you need to modify the SEQ field code or caption settings.
2. There is no response after pressing Alt+F9, what should I do?
First make sure the cursor is in the document and not in another pane. If there's still no change, check the options for field code display in Word's Options settings, or use the corresponding shortcut keys on Mac instead.
3. The number is displayed differently in other office software. Why?
Different software has different levels of support for some domains and switches, and the displayed results may vary. Before delivery, the inspection should be opened in the target software and the PDF should be exported to check the layout if possible.
4. If Word is not installed, can I use a web editor to modify it?
You can try the UniDoc web page editor (app.unidoc.top) first, which supports Word-like editing, formulas, and round-trip conversion to Word. But whether it supports the domain switches mentioned in this article requires you to test and confirm with the documentation.
📝 Summary
The Word formula number cannot be changed, in most cases it is because it is a SEQ field. Display field codes, change formatting switches or chapter counts, then select Update All to synchronize numbering and cross-references. Save a copy before modification and check item by item after modification to avoid numbering confusion during delivery.


