Formula Help Please

Sergio_Montenegro

Board Regular
Joined
Feb 23, 2008
Messages
108
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?

Thanks in advance

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
Joined
Dec 30, 2008
Messages
14,761
Office Version
  1. 365
Platform
  1. Windows
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
Joined
Feb 23, 2008
Messages
108
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...
 
Master Excel Bundle

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.

Forum statistics

Threads
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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Top