# Formula Problem

#### Will_D

##### Board Regular
Can anyone tell me why the following formuls won't work?
=IF(C3>0,IF(B3=\$I\$1,(\$J\$1-C3)*\$I\$1),IF(B3=\$I\$2,(\$J\$2-C3)*\$I\$2),IF(B3=\$I\$3,(\$J\$3-C3)*\$I\$3),IF(B3=\$I\$4,(\$J\$4-C3)*\$J\$4),IF(B3=\$I\$5,(\$J\$5-C3)*\$J\$5),IF(B3=\$I\$6,(\$J\$6-C3)*\$J\$6),"")

I get an error saying i hve entered too many arguments

Many Thanks!

### Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Last edited:

#### Michael M

##### Well-known Member
=IF(C3>0,IF(B3=\$I\$1,(\$J\$1-C3)*\$I\$1,IF(B3=\$I\$2,(\$J\$2-C3)*\$I\$2,IF(B3=\$I\$3,(\$J\$3-C3)*\$I\$3,IF(B3=\$I\$4,(\$J\$4-C3)*\$J\$4,IF(B3=\$I\$5,(\$J\$5-C3)*\$J\$5,IF(B3=\$I\$6,(\$J\$6-C3)*\$J\$6,"")))))))

Regards
Michael M

#### Will_D

##### Board Regular
Thanks Michael that works!

#### Michael M

##### Well-known Member
Glad to hear, thanks for the feedback.

Michael M

Replies
7
Views
290
Replies
1
Views
179
Replies
4
Views
113
Replies
7
Views
278
Replies
1
Views
67

1,190,855
Messages
5,983,238
Members
439,833
Latest member
CDaviess

### 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