Vlookup formula

shonu1320

Board Regular
Joined
Mar 10, 2011
Messages
54
I want help in understanding and modifying this formula

=IF(ISERROR(IF(ISBLANK(A6),"",IFERROR(IFERROR(IFERROR(VLOOKUP(A6,ABC!A:I,2,0),VLOOKUP(A6,DEF!A:I,2,0)),VLOOKUP(A6,JKL!A:I,2,0)),VLOOKUP(A6,GHI!A:I,2,0)))),"NOT FOUND",IF(ISBLANK(A6),"",IFERROR(IFERROR(IFERROR(VLOOKUP(A6,ABC!A:I,2,0),VLOOKUP(A6,DEF!A:I,2,0)),VLOOKUP(A6,JKL!A:I,2,0)),VLOOKUP(A6,GHI!A:I,2,0))))

ABC, DEF, GHI, and JKL are the 4 different regions for which we are tracking the inventory. Instead of going to those 4 regions seprately, I want to combine it so that it will pull these records from one data dump. It will all come from column G of the data dump workbook.

Help and advice on this will be very well appreciated!
Thanks.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I would think that you could simplify your formula to =IFERROR(IF(ISBLANK(A6),"",IFERROR(IFERROR(IFERROR(VLOOKUP(A6,ABC!A:I,2,0),VLOOKUP(A6,DEF!A:I,2,0)),VLOOKUP(A6,JKL!A:I,2,0)),VLOOKUP(A6,GHI!A:I,2, 0))),"NOT FOUND")

Which is basically taking out the redundancy that you had by switching the ISERROR to an IFERROR. Now all it is doing is:

If cell A6 is blank than leave this cell blank otherwise
If there is an error doing the VLOOKUP(A6,ABC!A:I,2,0) then do VLOOKUP(A6,DEF!A:I,2,0)
If that doesn't work then do VLOOKUP(A6,JKL!A:I,2,0)
If that also doesn't work do VLOOKUP(A6,GHI!A:I,2, 0)
If all of the above options are creating an error then say "NOT FOUND"

Hope this will work for you.
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,834
Members
452,947
Latest member
Gerry_F

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