11 replies
by chainsawz
by cthapp
by mslizny
by cthapp
by peyison
The formula you want looks like:
=if(a1-a2<0,0,a1-a2)
If you have a table one column wide, with three rows, this would go in the third row. In Word, you have column letters and row numbers like Excel, you just have to count for yourself to figure out what they are.
To put a formula in a table:
Choose Table -> Formula
Type in the formula, including the = sign.
You can right click on the field and select "Toggle Field Codes" to switch back and forth from the formula and the result. Also, if you change the numbers in cells A1 or A2, you have to right click on the field and select Update Field to recalc.
Hope this helps.
by cthapp
by donq
Peyison's suggestion is correct however if you build your recordset in a query you can enter an immediate if statement in the "Field:" area as well.
Field: =Iif(a1-a2<0,0,a1-a2) As a3
This way you just let the query do all the data management.
by cthapp
by mike buzz
When I need to do calculations in Word, I use Excel, either:
Use Excel then paste the Excel table into Word, using Edit, Paste Special, Link
Or
Use the Word toolbar button to insert a blank Excel worksheet into Word and do your calculations in it.
In both cases, you get the same result, but in the first case you have a saved Excel spreadsheet that you can open independently.
I would recommend giving it a go and see how it works.
I hope this is useful.
Mike Buzzard
by cthapp
by cthapp
This discussion is closed to new replies.
Trending Software posts
Sort by Trending