Title: Operated calculated
Last modified: November 27, 2019

---

# Operated calculated

 *  Resolved [Francis](https://wordpress.org/support/users/emolotel/)
 * (@emolotel)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/operated-calculated/)
 * Can a calculated datum perform two operations on the same form?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/operated-calculated/#post-12182786)
 * Hello [@emolotel](https://wordpress.org/support/users/emolotel/)
 * I’m sorry, I don’t understand your question. If you are referring to the number
   of calculated fields in the form, the answer is yes, you can insert multiple 
   calculated fields in a same form.
 * Best regards.
 *  Thread Starter [Francis](https://wordpress.org/support/users/emolotel/)
 * (@emolotel)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/operated-calculated/#post-12182794)
 * I said that badly. And I apologize. I wanted to have two mathematical expressions
   from a calculated field.
    Example:
 * (fieldname1 / fieldname2) Text
    (fieldname4 * fieldname5) All this within a calculated
   field
    -  This reply was modified 6 years, 4 months ago by [Francis](https://wordpress.org/support/users/emolotel/).
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/operated-calculated/#post-12182838)
 * Hello [@emolotel](https://wordpress.org/support/users/emolotel/)
 * The equation should return one result, you can decide the operation to apply 
   based on a condition, using the `IF` operation, or the `if` conditional statement
   of javascript (please, do not confuse them)
 * I’ll try to describe the process with a hypothetical example:
 * – assuming your form include a radio button field (fieldname3) with two choices
   whose values are: 1 and 2 respectively,
    – and you want evaluate the operation:`(
   fieldname1 / fieldname2)` if the value of the fieldname3 field is 1 – and the
   operation: `(fieldname4 * fieldname5)` if the value of the fieldname3 field is
   2
 * In this hypothetical case the equation would be:
 *     ```
       IF(fieldname3==1, fieldname1 / fieldname2, fieldname4 * fieldname5)
       ```
   
 * and that’s all.
    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Operated calculated’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/operated-calculated/#post-12182838)
 * Status: resolved