Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default VLOOKUP and its properties

I'm trying to test if vlookup could behave in a way that I would not expect.

I have two tables, let's say table A holds unique individuals and their i.e.
social sec. numbers.

I have a table B, which lists individual coffee preferences. Generally, each
individual likes a unique coffee. However, a few like similar types. I.e. 2
individuals like mocha and 2 individuals like java, etc.

Basically, a one-to-many relationship exists between table A and table B.

If I use the SS# from table A, using vlookup, and map it to table B:

1) will vlookup always pull the first match from the table array?
2) it seems to me that option 1) is always the outcome - can that be not true?
3) if vlookup does not find a match, it usually gives me #N/A
4) can #N/A result using vlookup, in the example described above?

(my vlookups are always set to find the exact match)

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default VLOOKUP and its properties

Hi!

1. Yes
2. Not using a basic lookup formula. You'd have to write a formula to
specifically look for the nth instance.
3. True
4. If your lookup_value is a SS# and ALL SS#'s are unique you should find a
match (if it exists).

Biff

"pepenacho" wrote in message
...
I'm trying to test if vlookup could behave in a way that I would not
expect.

I have two tables, let's say table A holds unique individuals and their
i.e.
social sec. numbers.

I have a table B, which lists individual coffee preferences. Generally,
each
individual likes a unique coffee. However, a few like similar types. I.e.
2
individuals like mocha and 2 individuals like java, etc.

Basically, a one-to-many relationship exists between table A and table B.

If I use the SS# from table A, using vlookup, and map it to table B:

1) will vlookup always pull the first match from the table array?
2) it seems to me that option 1) is always the outcome - can that be not
true?
3) if vlookup does not find a match, it usually gives me #N/A
4) can #N/A result using vlookup, in the example described above?

(my vlookups are always set to find the exact match)

Thanks



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



All times are GMT +1. The time now is 06:17 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"