Nested IFERROR multiple Vlookup

Kmitchell

Active Member
Joined
Feb 27, 2007
Messages
365
Office Version
  1. 365
Platform
  1. Windows
Hi - below is my formula that I can not get to work without receiving an error message. Am I missing a parethesis or do I have too many?

Formula should sequencially look up three columns, and if return value is greater than K2 then return K2.


IF(IFERROR(IFERROR(IFERROR(VLOOKUP($U2,'MAX RATE'!$D:$R,15,FALSE)),VLOOKUP($V2,'MAX RATE'!$D:$R,15,FALSE),VLOOKUP($W2,'MAX RATE'!$D:$R,15,FALSE))>$k2,$k2,IFERROR(IFERROR(IFERROR(VLOOKUP($U2,'MAX RATE'!$D:$R,15,FALSE)),VLOOKUP($V2,'MAX RATE'!$D:$R,15,FALSE)
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
There's often a better way to create a formula than repeating a large section twice, if only by using helper cells. In your formula above, the first part has VLOOKUP 3 times, and the second time VLOOKUP appears 2 times only, so I'd suspect that might be the issue.

However, this array formula might work for you:

=IFERROR(MIN(VLOOKUP(OFFSET($U2,0,SMALL(IF(ISNUMBER(MATCH($U2:$W2,'MAX RATE'!$D:$D,0)-1),COLUMN($U2:$W2)-COLUMN($U2)),1)),
'MAX RATE'!$D:$R,15,FALSE),$K2),"No match")

Confirm with Control+Shift+Enter.
 
Upvote 0
Thank you! Very sophisticated. I would have never figured it out without your help.
 
Upvote 0

Forum statistics

Threads
1,225,375
Messages
6,184,612
Members
453,247
Latest member
scouterjames

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