VLOOKUP Worksheet limit?

SteveWebb

Board Regular
Joined
Feb 20, 2002
Messages
73
Hi and thank you in advance for looking at my problem,

Is there a limit to the number of worksheets the VLookup function can access?

I have 'Data Table', A1 - AA6000
Headings include Ref number - Date/Time - Address etc (These contain some personal data so have not been able to post an example).

Worksheets range from LI 1 through to LI 23 all with selected headings taken from the DataTable.
The Vlookup function will look for the LI match:-
Using =IF(ISNA(VLOOKUP(A2,'LI 1'!A1:J3,16,FALSE)),VLOOKUP(A2,'LI 2'!A1:K40,16,FALSE),VLOOKUP(A2,'LI 3'!A1:P196,16,FALSE)) with CSE.
Column 16 contains the data for comparison, I get to LI 4 and get an error message.

Any help much appreciated

Kind Regards
Steve
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

SteveWebb

Board Regular
Joined
Feb 20, 2002
Messages
73
Hi Peter,
Used :-
=IFERROR(VLOOKUP(A2,'LI 8'!$A$1:$P$191,16,FALSE),IFERROR(VLOOKUP(A2,'LI 14'!$A$1:$N$120,14,FALSE),IFERROR(VLOOKUP(A2,'LI 15'!$A$1:$N$135,14,FALSE),IFERROR(VLOOKUP(A2,'LI 16'!$A$1:$L$1183,12,FALSE),IFERROR(VLOOKUP(A2,'LI 22'!$A$1:$L$1386,12,FALSE),IFERROR(VLOOKUP(A2,'LI 23'!$A$1:$N$936,14,FALSE),IFERROR(VLOOKUP(A2,'LI 50'!$A$1:$O$72,15,FALSE),"Not Found")))))))

Only draw back is the max 7 nested functions. Is this excels limit without VBA/UDF?

Cheers
Steve
 

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650

ADVERTISEMENT

Yes, in Excel versions before 2007.
 

GlennUK

Well-known Member
Joined
Jul 8, 2002
Messages
11,685
Surely that can't be Excel 2003 or earlier as the IFERROR function is being used?!?!
 

SteveWebb

Board Regular
Joined
Feb 20, 2002
Messages
73

ADVERTISEMENT

HI Glenn,
Have gone all modern with 2010 !!, still confuses me though
 

GlennUK

Well-known Member
Joined
Jul 8, 2002
Messages
11,685
Ah, good. Well you should be able to go deeper than 7 levels then. :)
 

SteveWebb

Board Regular
Joined
Feb 20, 2002
Messages
73
Go to level 8 and warning message flagged maximum number of nested had been reached?
 

GlennUK

Well-known Member
Joined
Jul 8, 2002
Messages
11,685
Are you in compatibility mode by any chance? Or in an older version workbook?
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,699
Messages
5,833,204
Members
430,196
Latest member
rez5656

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
Top