In 2007, and earlier, you could do your calculations in a Word table in hidden cells and then present the answer in another cell. This made the presentation tidy. Now it appears that 2010 ignores any data in a hidden cell so everything has fallen apart! Is there any way to turn off this unwanted “feature”?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Calculating with hidden cell in Word 2010
Home » Forums » AskWoody support » Productivity software by function » MS Word and word processing help » Calculating with hidden cell in Word 2010
- This topic has 10 replies, 2 voices, and was last updated 13 years, 1 month ago.
AuthorTopicWSJudithKiwi
AskWoody LoungerJanuary 27, 2012 at 6:33 pm #481248Viewing 5 reply threadsAuthorReplies-
macropod
AskWoody_MVPJanuary 28, 2012 at 5:05 am #1316443Hi Judith,
You can also do the calculation in-situ, without the need for a hidden cell (which could never be hidden reliably anyway). Simply create a field via Ctrl_F9, and input the formula for your calculation (eg {=MOD(513*37,28)}). When you’re done, press F9 to display the result. A bonus is that this can be done anywhere in the document. To edit the formula, simply select the displayed result & press Shift-F9 to expose the field code (alternatively, Alt-F9 without even needing to select anything exposes all field codes).
Cheers,
Paul Edstein
[Fmr MS MVP - Word] -
WSJudithKiwi
AskWoody LoungerJanuary 28, 2012 at 10:23 pm #1316530Hi Judith,
You can also do the calculation in-situ, without the need for a hidden cell (which could never be hidden reliably anyway). Simply create a field via Ctrl_F9, and input the formula for your calculation (eg {=MOD(513*37,28)}). When you’re done, press F9 to display the result. A bonus is that this can be done anywhere in the document. To edit the formula, simply select the displayed result & press Shift-F9 to expose the field code (alternatively, Alt-F9 without even needing to select anything exposes all field codes).
Problem is the whole thing is being automated for naive users – who have had this working beautifully for over 9 years! They know nothing about fields. They fill in a userform and some quite complex calculations are done on their behalf. It needs to be on the page so they can alter them if need be – for instance partially paid land taxes where the dates may change or the council proportion may alter. Layout too is vital.
-
macropod
AskWoody_MVPJanuary 29, 2012 at 2:22 am #1316536Hi Judith,
I wouldn’t have thought creating a field in the way I suggested was beyond even a novice user. Still, if your userform were to have a textbox into which the user could enter a formula, and a command button to process it, you could use code like the following to put the result into the document:
Code:Private Sub CommandButton1_Click() Dim myRange As Range If Left(TextBox1.Text, 1) = "=" Then Set myRange = ActiveDocument.Range(0, 0) With myRange .Text = TextBox1.Text .Text = .Calculate End With End If End Sub
Cheers,
Paul Edstein
[Fmr MS MVP - Word]-
WSJudithKiwi
AskWoody LoungerJanuary 29, 2012 at 1:24 pm #1316604I wouldn’t have thought creating a field in the way I suggested was beyond even a novice user.
Actually it is. But what you are saying is there is no way to turn off this extremely irritating change in behaviour so we’ll have to go through all the forms/documents that have used this for years and recode.
macropod
AskWoody_MVPJanuary 29, 2012 at 3:48 pm #1316632Hi Judith,
No, I’m not saying that, though that may well be required. What I’m saying is that trying to hide a cell’s contents is unreliable, since the display and printing of hidden text is controlled by the user at the application level and can’t be controlled at the document level.
If any recoding is required, it may be nothing more than turning on the hidden text display for the duration of the calculation, then turning it off again. Without seeing a sample document, I can’t give a definitive answer, though.
Cheers,
Paul Edstein
[Fmr MS MVP - Word]WSJudithKiwi
AskWoody LoungerJanuary 30, 2012 at 2:14 pm #1316746At application level everyone has update codes on print and do not print hidden text – and I am talking about users who don’t even know such options exist let alone likely to change them. I’ve started on the first document that I noticed this on – but I know there there more out there (an unknown number as some completed documents are stored as precedents and there are thousands – although most do not include calculations) – and existing one off documents that were right when saved but if they are re-printed will give garbage (update codes on).
macropod
AskWoody_MVPJanuary 30, 2012 at 4:51 pm #1316761Hi Judith,
I’m not sure what the issue is with your document, but the attached one (which I created in Word 2010) has two tables, both with the same formula in A1. These calculate correctly via a field in A3 and via the macro in the document. Note that the text in the hidden cell is not itself hidden. I’ve tested the document in both Word 2003 and Word 2010 and the results are the same (including with a doc version). If the contents of A1 are formatted as hidden text, no result is obtained from either the field code or the macro in either version of Word.
Cheers,
Paul Edstein
[Fmr MS MVP - Word]-
WSJudithKiwi
AskWoody LoungerJanuary 31, 2012 at 1:42 pm #1316976There are lots of different scenarios. The simplest I have already coded around – but I’ve attached the orginal. There is a list of disbursements – narration, amount and the total appears in the bottom right column (C). Only if there is only one disbursement what was the subtotal in column B is hidden. This meant the secretary could add another line in the table and just update fields (and unhide the text) – the new amount would be added in. To get around this I have now hard coded the total for a single disbursement which means if they want to add a line they need to do it via a macro which will replace the hardcoded total with a formula.
macropod
AskWoody_MVPJanuary 31, 2012 at 3:33 pm #1317006Hi Judith,
In your previous posts, you referred to the cell being hidden. In your attached document, the cell isn’t hidden – the text is. The formula you have in cell C1 of the ‘Tolls/Phones/Faxes’ table only works in Word 2003 – and 2010 – if that hidden text is visible. Consequently, I can’t see what the issue of changed behaviour in Word 2010 is supposed to be as the behaviour is the same.
Cheers,
Paul Edstein
[Fmr MS MVP - Word]-
WSJudithKiwi
AskWoody LoungerFebruary 2, 2012 at 2:00 pm #1317479Hi Judith,
In your previous posts, you referred to the cell being hidden. In your attached document, the cell isn’t hidden – the text is. The formula you have in cell C1 of the ‘Tolls/Phones/Faxes’ table only works in Word 2003 – and 2010 – if that hidden text is visible. Consequently, I can’t see what the issue of changed behaviour in Word 2010 is supposed to be as the behaviour is the same.
Just checked it – and you are right. But it does work in 2007. So hopefully it is not as widespread as I feared. Just stuff created in 2007.
Viewing 5 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Finding Microsoft Office 2021 product key
by
Kathy Stevens
1 hour, 54 minutes ago -
Over-the-Top solves it!
by
RetiredGeek
2 hours, 37 minutes ago -
To Susan – Woody Leonhard, the “Lionhearted”
by
Myst
9 hours, 38 minutes ago -
Extracting Data From All Sheets
by
WSJon5
11 hours, 13 minutes ago -
Use wushowhide in Windows 11 24H2?
by
Tex265
11 hours, 21 minutes ago -
Hacktool:Win32/Winring0
by
Marvel Wars
11 hours, 8 minutes ago -
Microsoft Defender as Primary Security Question
by
blueboy714
11 hours, 49 minutes ago -
USB printers might print random text with the January 2025 preview update
by
Alex5723
13 hours, 51 minutes ago -
Google’s 10-year-old Chromecast is busted, but a fix is coming
by
Alex5723
23 hours, 28 minutes ago -
Expand the taskbar?
by
CWBillow
23 hours, 18 minutes ago -
Gregory Forrest “Woody” Leonhard (1951-2025)
by
Susan Bradley
2 hours, 4 minutes ago -
March 2025 updates are out
by
Susan Bradley
30 minutes ago -
Windows 11 Insider Preview build 26120.3380 released to DEV and BETA
by
joep517
1 day, 17 hours ago -
Update Firefox to prevent add-ons issues from root certificate expiration
by
Alex5723
2 days ago -
Latest Firefox requires Password on start up
by
Gordski
1 day, 18 hours ago -
Resolved : AutoCAD 2022 might not open after updating to 24H2
by
Alex5723
2 days, 13 hours ago -
Missing api-ms-win-core-libraryloader-11-2-1.dll
by
IreneLinda
1 day, 11 hours ago -
How Much Daylight have YOU Saved?
by
Nibbled To Death By Ducks
1 day, 14 hours ago -
A brief history of Windows Settings
by
Simon Bisson
1 day, 8 hours ago -
Thunderbolt is not just for monitors
by
Ben Myers
1 day, 7 hours ago -
Password Generators — Your first line of defense
by
Deanna McElveen
1 day, 12 hours ago -
AskWoody at the computer museum
by
Will Fastie
12 hours, 18 minutes ago -
Planning for the unexpected
by
Susan Bradley
1 day, 13 hours ago -
Which printer type is the better one to buy?
by
Bob99
2 days, 14 hours ago -
Upgrading the web server
by
Susan Bradley
2 days, 13 hours ago -
New Windows 11 24H2 Setup – Initial Win Update prevention settings?
by
Tex265
3 days, 8 hours ago -
Creating a Google account
by
DavidofIN
3 days, 7 hours ago -
Undocumented “backdoor” found in Bluetooth chip used by a billion devices
by
Alex5723
3 days, 13 hours ago -
Microsoft Considering AI Models to Replace OpenAI’s in Copilot
by
Alex5723
4 days ago -
AI *emergent misalignment*
by
Alex5723
4 days, 1 hour ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.