IF Vlookup error problem

sjuhl99

New Member
Joined
Jul 28, 2017
Messages
29
I am trying to finish this IF vlookup statement and keep getting a to many arguments error, can someone please help me? Its basically just saying if F3=1,2,3 or 4 then lookup from another workbook, seems simple enough but I cant seem to get it. thanks



=IFERROR(AND(f3=1,VLOOKUP('Locked Forecasts-DNT'!A2:AH11240,35,0),IF(f3=2,VLOOKUP('Locked Forecasts-DNT'!W2:AI11240,37,0),IF(f3=3,VLOOKUP('Locked Forecasts-DNT'!A2:AJ11240,38,0),IF(f3=4,'Locked Forecasts-DNT'!A2:AK11240,39,0),"0"))
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
=INDEX('Locked Forecasts-DNT'!AH2:AK11240,MATCH(lookupvalue,'Locked Forecasts-DNT'!A2:A11240,0),F3)

Note that the nonworking formula you posted does not show what the lookupvalue is...
 
Upvote 0

Forum statistics

Threads
1,216,102
Messages
6,128,853
Members
449,471
Latest member
lachbee

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