B
Bruce
I am trying to perform a calculation in a table. All of
the calculations use numbers the user has entered into
form fields. First I tried to perform the calculation
where I subtracted cell e2 in Table2 from cell b2 in
Table1. I bookmarked Table1, used the Table cell helper
macro to identify the cell, and attempted =Table1 b2-e2.
Syntax error. Then I tried =sum(Table1 b2,-e2. Syntax
error. I also tried both of the above with cell ranges:
=Table1 b2:b2-e2, =sum(Table 1 b2:b2,-e2, etc. Syntax
error. I tried adding a space in front of the minus sign,
and anything else I could think of. No luck. Finally I
merged the tables together, and was able at last to
perform the calculation. I would be interested in knowing
what I did wrong (Help is no help), or if it is even
possible to do what I was trying to do.
Second part: After performing the calculation above in
cell g2, I want the user to be able to go to the next row
and enter a number into e3, and have the calculation in g3
be the result of the previously calculated g2 minus e3.
It works OK, but I would like g3 to remain blank until
there is a value in e3. I see from Help that it is
possible to generate text in the THEN and ELSE components
of an IF statement, but is it possible to generate a
calculation?
I know that I should use Excel, but the formatting
limitations are a pretty big problem in this case.
However, the calculations are the most important, so I
will sacrifice formatting if necessary to obtain the
necessary math results.
the calculations use numbers the user has entered into
form fields. First I tried to perform the calculation
where I subtracted cell e2 in Table2 from cell b2 in
Table1. I bookmarked Table1, used the Table cell helper
macro to identify the cell, and attempted =Table1 b2-e2.
Syntax error. Then I tried =sum(Table1 b2,-e2. Syntax
error. I also tried both of the above with cell ranges:
=Table1 b2:b2-e2, =sum(Table 1 b2:b2,-e2, etc. Syntax
error. I tried adding a space in front of the minus sign,
and anything else I could think of. No luck. Finally I
merged the tables together, and was able at last to
perform the calculation. I would be interested in knowing
what I did wrong (Help is no help), or if it is even
possible to do what I was trying to do.
Second part: After performing the calculation above in
cell g2, I want the user to be able to go to the next row
and enter a number into e3, and have the calculation in g3
be the result of the previously calculated g2 minus e3.
It works OK, but I would like g3 to remain blank until
there is a value in e3. I see from Help that it is
possible to generate text in the THEN and ELSE components
of an IF statement, but is it possible to generate a
calculation?
I know that I should use Excel, but the formatting
limitations are a pretty big problem in this case.
However, the calculations are the most important, so I
will sacrifice formatting if necessary to obtain the
necessary math results.