I tried the following formula in Excel 2003 but the last cell reference is highlight with a parameters error. Could anyone help me with this. If you need more info, let me know. Thanks!

=IF(J12=40,J12,(X12/J12)*2080,IF(X12<1,000,X12*J12,(40/J12)*X12))