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
=if(BL4=.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)))))) Help!

<tbody>
</tbody><colgroup><col span="2"><col></colgroup>
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
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,216,114
Messages
6,128,913
Members
449,478
Latest member
Davenil

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