problem with parenthesis with multiple ifs - too many arguements for this funciton

Pumpk1n

Board Regular
Joined
Jan 31, 2017
Messages
86
Office Version
  1. 365
Platform
  1. Windows
[TABLE="width: 661"]
<tbody>[TR]
[TD="colspan: 2"]=if(BL4=.46,0),[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 3"]if(cu4=1,(vlookup(bl4,Grids!$D$70:$E$80,2)),[/TD]
[/TR]
[TR]
[TD="colspan: 3"]if(cu4=50,(vlookup(bl4,Grids!$D$70:$e$80,2),[/TD]
[/TR]
[TR]
[TD="colspan: 3"]if(ai4=10,(vlookup(bl4,Grids!D$$101:$E$113,2)),[/TD]
[/TR]
[TR]
[TD="colspan: 3"]if(ai4<6,(vlookup(bl4,Grids!$D$70:$E$80,2)),[/TD]
[/TR]
[TR]
[TD="colspan: 3"]if(ai6<=9,(vlookup(bl4,Grids!$D$85:$E$96,2)))))) Help! [/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody><colgroup><col span="2"><col></colgroup>[/TABLE]
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hi,

Can you please try this?

=IF(BL4=0.46,0,
IF(CU4=1,(VLOOKUP(BL4,Grids!$D$70:$E$80,2)),
IF(CU4=50,(VLOOKUP(BL4,Grids!$D$70:$E$80,2)),
IF(AI4=10,(VLOOKUP(BL4,Grids!D$101:$E$113,2)),
IF(AI4<6,(VLOOKUP(BL4,Grids!$D$70:$E$80,2)),
IF(AI6<=9,(VLOOKUP(BL4,Grids!$D$85:$E$96,2))))))))

On another note, i believe this can be optimised. Any context around the formula?

Regards.
 
Upvote 0
Thanks- this worked. There's a bunch of different scenarios we need to check for rates, so each of the "if" conditions is a condition to look up the value. I know that is vague, but it's the reason we have the various scenarios.

Hi,

Can you please try this?

=IF(BL4=0.46,0,
IF(CU4=1,(VLOOKUP(BL4,Grids!$D$70:$E$80,2)),
IF(CU4=50,(VLOOKUP(BL4,Grids!$D$70:$E$80,2)),
IF(AI4=10,(VLOOKUP(BL4,Grids!D$101:$E$113,2)),
IF(AI4<6,(VLOOKUP(BL4,Grids!$D$70:$E$80,2)),
IF(AI6<=9,(VLOOKUP(BL4,Grids!$D$85:$E$96,2))))))))

On another note, i believe this can be optimised. Any context around the formula?

Regards.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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