**andolphoneto**- JotForm Support
**BDAVID**We have a widget called

**Spreadsheet,**in which can setup formulas similar to Excel: https://widgets.jotform.com/widget/spreadsheethttps://www.jotform.com/help/252-How-to-Add-a-Widget-to-your-Form

Let us know if you need more help.

**andolphoneto**Thank you David, is working very well, except this formula below:

=IF(E12<=0,0,IF(E12<=L6,0,IF(E12<=L7,-E12*J7/100+M7,IF(E12<=L8,-E12*J8/100+M8,IF(E12<=L9,-E12*J9/100+M9,IF(E12>L9,-E12*J10/100+M10,"Erro")))))

Could you help me to find what parameter is not working in form? I've tested this in excel and works very well there.

Thank you

- JotForm Support
**BDAVID**Unfortunately, the

**If**function is not supported in the Spreadsheet widget. Let us know if you have more questions. **andolphoneto**I've took of the "IF" from formula, and know this message came "Invalid left-hand side in assignment"

Do you know what is this?

the formula is now this: e10 =e9<=0,0, e9=h1,0, e9=h2,-e9*f2/100+i2, e9=h3,-e9*f3/100+i3, e9=h4,-e9*f4/100+i4, e9>h4,-e9*f5/100+i5

- JotForm Support
**jonathan**I was able to see the error on the form https://www.jotformz.com/form/61734744553662 as well.

it look like the formula you used

**e10 =e9<=0,0, e9=h1,0, e9=h2,-e9*f2/100+i2, e9=h3,-e9*f3/100+i3, e9=h4,-e9*f4/100+i4, e9>h4,-e9*f5/100+i5**is not a valid formula in the Spreadsheet widget.

As already mentioned by

**BDAVID**,**complex nested formula**is not supported by the Spreadsheet widget.I removed that formula in my test form, and it become fine after.

I am afraid you will have to redo the formula you want to add on the widget and use only very basic calculation formula.

Hope this help. Let us know if you need further assistance.

**andolphoneto**Hi Jonathan, now I've made a very simple formula: e10 -e9*7.5+1713.60

but still doesnt work , do you know what I've made wrong?

**Error at A1:**Field E10 contains invalid value: "-e9*7.5+1713.60"**Boris**In order to have your calculations in the spreadsheet performed correctly, please make sure to separate all mathematical symbols with a space before and after the mathematical symbol, so that this:

e10 =-e9*7.5+1713.60

becomes this:

e10

**=**-e9 * 7.5 + 1713.60Otherwise, the spreadsheet will have a hard time understanding where one value ends and another begins. Please also do note that for a value to be calculated, there must be an equals sign after the cell at the start pf the line. For example, this is a calculation:

e10 = -e9

This is not a calculation, but rather regular text instead:

e10 -e9

Please let us know should you run into any other issues along the way, and we will be happy to help.