Discussion Locked

Formulas in Word Tables

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am trying to create a formula where if a number is higher than 20 then it is substracted from 20 then the difference is multipled by 80. If the number is lower than 20, then I need a 0 to be displayed. I know I am no explaining this well, let megive you an example: If cell A1 = 21 then insert 1 into cell B1 and then multiple that number by 80 and insert that total in C1. But if cell A1 = 19 then insert 0 into cell B1 and C1.

Can someone please help me.
Thanks,
Adele

7 replies

by peyison

This should do it:

* click on cell B1
* select Table -> Formula...
* enter: =if(A1>20,A1-20,0) into the "Formula" box and press OK
* click on cell C1
* select Table -> Formula...
* enter: =B1*80 in the "Formula" box and press OK

You can go to Table -> Formula... to edit a formula. Or, you can highlight the formula, right click and choose Toggle Field Codes. This will show the formula in the cell. From the same right click menu you can select Update Field to recalculate the formula.
Hope this helps.

by emcs

If I you want 0 in boct B1 and C1, the answer is not complete.

Here is the way I would do:

B1 =IF(A1>20,A1-20,0)
C1 =IF(B1>0,0.8*B1,0)

This way a 0 is place in bot B1 abd C1 if the number in A1 is 20 or less.

Good luck.

dennie

by emcs

Sorry about the spelling, I will try this again:

If I you want 0 in both B1 and C1, the answer is not complete.

Here is the way I would do the formulas:

B1 =IF(A1>20,A1-20,0)
C1 =IF(B1>0,0.8*B1,0)

This way a 0 is place in both B1 and C1 if the number in A1 is 20 or less.

Later

d

This discussion is closed to new replies.