A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

VLOOKUP on multiple columns



 
 
Thread Tools Display Modes
  #1  
Old August 12th, 2004, 05:51 PM
JTR
external usenet poster
 
Posts: n/a
Default VLOOKUP on multiple columns

Hi all,

I have 2 sets of columns that I am trying to use VLOOKUP to give me one of
the values. Basically, if the value is not in the first set of columns, I
want to check the second set of columns...

Example:
Find this in this column (result) OR this column (result) and
give (result)
1 5 B 1
C
2 2 Z 7
Q
3 6 M 3
X

Thanks for your help in advance!
  #2  
Old August 12th, 2004, 06:02 PM
Frank Kabel
external usenet poster
 
Posts: n/a
Default VLOOKUP on multiple columns

Hi
try
=IF(ISNA(VLOOKUP(value,A1:B20,2,0)),VLOOKUP(value, C120,2,0),VLOOKUP(v
alue,A1:B20,2,0))

--
Regards
Frank Kabel
Frankfurt, Germany


JTR wrote:
Hi all,

I have 2 sets of columns that I am trying to use VLOOKUP to give me
one of the values. Basically, if the value is not in the first set
of columns, I want to check the second set of columns...

Example:
Find this in this column (result) OR this column
(result) and give (result)
1 5 B 1
C
2 2 Z 7
Q
3 6 M 3
X

Thanks for your help in advance!


  #3  
Old August 12th, 2004, 06:37 PM
JTR
external usenet poster
 
Posts: n/a
Default VLOOKUP on multiple columns

Absolutely perfect. Thanks! I was missing the ISNA statement...

"Frank Kabel" wrote:

Hi
try
=IF(ISNA(VLOOKUP(value,A1:B20,2,0)),VLOOKUP(value, C120,2,0),VLOOKUP(v
alue,A1:B20,2,0))

--
Regards
Frank Kabel
Frankfurt, Germany


JTR wrote:
Hi all,

I have 2 sets of columns that I am trying to use VLOOKUP to give me
one of the values. Basically, if the value is not in the first set
of columns, I want to check the second set of columns...

Example:
Find this in this column (result) OR this column
(result) and give (result)
1 5 B 1
C
2 2 Z 7
Q
3 6 M 3
X

Thanks for your help in advance!



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
extracting unique #'s from multiple columns matmich General Discussion 2 August 10th, 2004 11:51 PM
Vlookup with two reference columns Prashanth Worksheet Functions 5 August 4th, 2004 04:11 PM
vlookup using 2 reference columns DanS Worksheet Functions 7 July 22nd, 2004 04:58 PM


All times are GMT +1. The time now is 04:05 PM.


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