Microsoft Office Forums Order of Operations in Word
 Register FAQ Search Today's Posts Mark Forums Read

#1
08-21-2018, 03:50 PM
 tg2018_ Windows 10 Office 2016 Novice Join Date: Aug 2018 Posts: 2
Order of Operations in Word

I am attempting to do the following formula in a mail merge field in Word:

FORMULA IN WORD { = (1 - ((1+(2/100))*(0.995))^19)}

When I enter this formula in a Word mail merge field, I get 2.324

However, when I do the formula in excel, I get -0.3244 (the correct answer)

FORMULA IN EXCEL =(1 - ((1+2/100)*(0.995))^19)

I am driving myself CRAZY! I do not understand what in the world is going on. I believe the Excel value is correct. I have tried everything. I know Word has its peculiarities in Mail Merge and maybe this is something. I have consulted the usual sources (Graham Mayor, etc) and the forums and Google with nooooo luck. Please help!
#2
08-21-2018, 08:29 PM
 macropod Windows 7 64bit Office 2010 32bit Administrator Join Date: Dec 2010 Location: Canberra, Australia Posts: 19,199

Your Word and Excel formulae can both be reduced to:
=1-((1+2/100)*0.995)^19
and, with the appropriate formatting switch applied to the field in Word:
{=1-((1+2/100)*0.995)^19 \# 0.00000}
will both return -0.32447. That said, there does seem to be a bug in the Word calculation when you unnecessarily use (0.995) in the calculation; that seems to cause Word to treat the 0.995 as a -ve value.

I don't see what this has to do with a mailmerge, however, as no mergefields are involved.
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
#3
08-23-2018, 09:59 AM
 tg2018_ Windows 10 Office 2016 Novice Join Date: Aug 2018 Posts: 2

That worked! Thank you!
Yes definitely some error on Word's part with the parenthesis issue.
This is indeed a mail-merge field, but I took it out and replaced it with 0.995 because the mail merge field itself was not an issue with the equation. Next time I post I will categorize it better. Thanks

 Tags mail merge, math, order of operations

 Thread Tools Display Modes Linear Mode

 Similar Threads Thread Thread Starter Forum Replies Last Post manish500 Word 6 07-25-2018 12:07 AM paik1002 Word 1 02-21-2016 11:48 PM eNGiNe Mail Merge 3 12-19-2014 04:24 AM romelsms123 Excel 0 06-23-2014 09:59 AM SimonCramer Word 0 02-23-2012 03:02 PM

All times are GMT -7. The time now is 07:12 AM.

 -- Default Style -- Mobile Style Contact Us - Privacy Statement - Top