#### Sergio_Montenegro

##### Board Regular
I currently have this formula which works very well;

=IF(\$S\$15=0,\$S\$2+\$S\$9-\$S\$14,\$S\$2+\$S\$9-\$S\$14+\$S\$11)-(2*(\$S\$16=1))

I also have this formula wich also works well;
=('RM 1400 Tariff April 2010'!H5-('RM 1400 Tariff April 2010'!H5*('RM 1400 Tariff April 2010'!H24+'RM 1400 Tariff April 2010'!J33)))*MAX((Q5=A22),(Q5=A23)*98.6%,(Q5=A24)*MAX((Q6=A26),(Q6=A27)*98%,(Q6=A28)*95.3%))

However I wish to add -(2*(\$S\$16=1)) from the first formula to the second formula, as below..

=('RM 1400 Tariff April 2010'!H5-('RM 1400 Tariff April 2010'!H5*('RM 1400 Tariff April 2010'!H24+'RM 1400 Tariff April 2010'!J33)))*MAX((Q5=A22),(Q5=A23)*98.6%,(Q5=A24)*MAX((Q6=A26),(Q6=A27)*98%,(Q6=A28)*95.3%))-(2*(\$S\$16=1)))

Just adding it in this way is not working (nothing changes when S16 =1)..

Can anyone help out with this?

Serge

### Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

#### jasonb75

##### Well-known Member
It should work if you remove the invalid closing paranthesis

=('RM 1400 Tariff April 2010'!H5-('RM 1400 Tariff April 2010'!H5*('RM 1400 Tariff April 2010'!H24+'RM 1400 Tariff April 2010'!J33)))*MAX((Q5=A22),(Q5=A23)*98.6%,(Q5=A24)*MAX((Q6=A26),(Q6=A27)*98%,(Q6=A28)*95.3%))-(2*(\$S\$16=1)))

#### Sergio_Montenegro

##### Board Regular
It should work if you remove the invalid closing paranthesis

=('RM 1400 Tariff April 2010'!H5-('RM 1400 Tariff April 2010'!H5*('RM 1400 Tariff April 2010'!H24+'RM 1400 Tariff April 2010'!J33)))*MAX((Q5=A22),(Q5=A23)*98.6%,(Q5=A24)*MAX((Q6=A26),(Q6=A27)*98%,(Q6=A28)*95.3%))-(2*(\$S\$16=1)))

Thanks very much Jason, seems so simple when someone else looks at it...

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,164,145
Messages
5,835,661
Members
430,373
Latest member
swartzfeger

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back