Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Oggie Ben Doggie
 
Posts: n/a
Default Multiple Arrays, Vlookup

Hi all,

I have 3 arrays on 3 worksheets in an Excel file.

On the 4th worksheet, I have a list of values in column A.

I'm looking to compare the values in column A to the arrays defined on
the other 3 sheets, to pull the 2nd column value and other subsequent
columns.

I thought I could vlookup it, combining with an if and iserror like so:

=if(iserror(vlookup(a2,list1,2,false),iserror(vloo kup(a2,list2,2,false),vlookup(a2,list3,2,false))))

It errors on me though. Tells me the expression is too complex.

The important thing is that I check across all three sheets, as below:
if (vlookup(a2,list1,2,false) errors then
if (vlookup(a2,list2,2,false) errors then (vlookup(a2,list3,2,false)
else "no match"

Is it possible to nest things to accomplish the above?

O.Ben.D

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Multiple Arrays, Vlookup

Hi!

Try this:

=IF(NOT(ISNA(VLOOKUP(A2,list1,2,0))),VLOOKUP(A2,li st1,2,0),IF(NOT(ISNA(VLOOKUP(A2,list2,2,0))),VLOOK UP(A2,list2,2,0),IF(NOT(ISNA(VLOOKUP(A2,list3,2,0) )),VLOOKUP(A2,list3,2,0),"")))

Biff

"Oggie Ben Doggie" wrote in message
oups.com...
Hi all,

I have 3 arrays on 3 worksheets in an Excel file.

On the 4th worksheet, I have a list of values in column A.

I'm looking to compare the values in column A to the arrays defined on
the other 3 sheets, to pull the 2nd column value and other subsequent
columns.

I thought I could vlookup it, combining with an if and iserror like so:

=if(iserror(vlookup(a2,list1,2,false),iserror(vloo kup(a2,list2,2,false),vlookup(a2,list3,2,false))))

It errors on me though. Tells me the expression is too complex.

The important thing is that I check across all three sheets, as below:
if (vlookup(a2,list1,2,false) errors then
if (vlookup(a2,list2,2,false) errors then (vlookup(a2,list3,2,false)
else "no match"

Is it possible to nest things to accomplish the above?

O.Ben.D



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Elkar
 
Posts: n/a
Default Multiple Arrays, Vlookup

You were on the right track. Your formula just needs a little tweaking.

=IF(ISERROR(VLOOKUP(A2,List1,2,FALSE))=FALSE,VLOOK UP(A2,List1,2,FALSE),IF(ISERROR(VLOOKUP(A2,List2,2 ,FALSE))=FALSE,VLOOKUP(A2,List2,2,FALSE),IF(ISERRO R(VLOOKUP(A2,List3,2,FALSE))=FALSE,VLOOKUP(A2,List 3,2,FALSE),"No Match")

HTH,
Elkar


"Oggie Ben Doggie" wrote:

Hi all,

I have 3 arrays on 3 worksheets in an Excel file.

On the 4th worksheet, I have a list of values in column A.

I'm looking to compare the values in column A to the arrays defined on
the other 3 sheets, to pull the 2nd column value and other subsequent
columns.

I thought I could vlookup it, combining with an if and iserror like so:

=if(iserror(vlookup(a2,list1,2,false),iserror(vloo kup(a2,list2,2,false),vlookup(a2,list3,2,false))))

It errors on me though. Tells me the expression is too complex.

The important thing is that I check across all three sheets, as below:
if (vlookup(a2,list1,2,false) errors then
if (vlookup(a2,list2,2,false) errors then (vlookup(a2,list3,2,false)
else "no match"

Is it possible to nest things to accomplish the above?

O.Ben.D


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple if or multiple vlookup Robo Excel Worksheet Functions 4 November 14th 05 01:48 PM
VLOOKUP loop multiple times Lenny Excel Worksheet Functions 3 September 28th 05 10:31 AM
vlookup multiple text rows Tanya Excel Discussion (Misc queries) 4 August 15th 05 04:50 PM
Using VLOOKUP with multiple first column matches John Simons Excel Worksheet Functions 2 February 20th 05 01:27 AM
Multiple Vlookup? changeable Excel Worksheet Functions 0 November 9th 04 11:52 AM


All times are GMT +1. The time now is 11:15 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"