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

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
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)))
 
Upvote 0
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...
 
Upvote 0

Forum statistics

Threads
1,214,431
Messages
6,119,457
Members
448,898
Latest member
drewmorgan128

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
Back
Top