How can I shorten this VLookup formula?

kellyfirth

New Member
Joined
Nov 26, 2014
Messages
15
HTML:
=IFERROR(VLOOKUP(A2,DAILYBBPT!A:B,2,0),IFERROR(VLOOKUP(A2,DAILYRSKIPPT!A:B,2,0),IFERROR(VLOOKUP(A2,DAILYWEBPT!A:B,2,0),"NA"),IFERROR(VLOOKUP(A2,WEEKLYRSKIPPT!A:B,2,0),"NA"),IFERROR(VLOOKUP(A2,WEEKLYWEBPT!A:B,2,0),"NA"),IFERROR(VLOOKUP(A2,BBDAILY!A:B,2,0),"NA"),IFERROR(VLOOKUP(A2,DAILYWIOF!A:B,2,0),"NA"),IFERROR(VLOOKUP(A2,DAILYBBCOPUSD!A:B,2,0),"NA"),IFERROR(VLOOKUP(A2,DAILYBBSINKINGPRICES!A:B,2,0),"NA"),IFERROR(VLOOKUP(A2,DAILYBBINDEXRATIO!A:B,2,0),"NA"),IFERROR(VLOOKUP(A2,DAILYRSKIPQUESADA!A:B,2,0),"NA"),IFERROR(VLOOKUP(A2,WEEKLYARMAJARO!A:B,2,0),"NA"),IFERROR(VLOOKUP(A2,DAILYALIQUOTGB!A:B,2,0),"NA"),IFERROR(VLOOKUP(A2,WEEKLYALIQUOTCF!A:B,2,0),"NA"),IFERROR(VLOOKUP(A2,WEEKLYALIQUOTPM!A:B,2,0),"NA"),IFERROR(VLOOKUP(A2,MONTHLYEMAILREQPT!A:B,2,0),"NA"),IFERROR(VLOOKUP(A2,QUARTERLYPT!A:B,2,0),"NA"),IFERROR(VLOOKUP(A2,MONTHLYRECSPT!A:B,2,0),"NA"),IFERROR(VLOOKUP(A2,MONTHLYRSKIPPT!A:B,2,0),"NA"),IFERROR(VLOOKUP(A2,MONTHLYTELPT!A:B,2,0),"NA"),IFERROR(VLOOKUP(A2,MONTHLYWEBPT!A:B,2,0),"NA"),IFERROR(VLOOKUP(A2,DAILYBBALLQ!A:B,2,0),"NA"),IFERROR(VLOOKUP(A2,BBALLQ0MIDPRICES!A:B,2,0),"NA")))

I'm trying to use this formula to perform a Vlookup and it technically works but obviously Excel doesn't allow this much text. Does anyone know how I could shorten it? I need to search all of the named sheets
 

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.
If you are returning text...

Create a range housing the names of all of the relevant sheets. Select this range and the selection SheetList and invoke the following formula:

Control+shift+enter, not just enter:
Rich (BB code):
=IFERROR(VLOOKUP(A5,INDIRECT("'"&LOOKUP(REPT("z",255),
  IF(COUNTIF(INDIRECT("'"&SheetList&"'!A:A"),A2),SheetList))&"'!A:B"),2,0),
  "N/A")
 
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