Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default VLOOKUP Question

Hi,

I'm using VLOOKUP function to get some values from a range. The problem is
if source range has more than one record for the condition, VLOOKUP always
gets first occurance. Is there anyway to get second or third occurance of
lookup value.


Thanks in advance


Haldun


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 171
Default VLOOKUP Question

If the functions in the freely downloadable file at
http://home.pacbell.net/beban are available to your workbook

=INDEX(VLookups(lookup_value,lookup_table,return_v alue_column),n,1)

will return the return value corresponding to the nth occurrence of the
lookup value.

Alan Beban

Haldun Alay wrote:
Hi,

I'm using VLOOKUP function to get some values from a range. The problem is
if source range has more than one record for the condition, VLOOKUP always
gets first occurance. Is there anyway to get second or third occurance of
lookup value.


Thanks in advance


Haldun



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 96
Default VLOOKUP Question

Chip Pearson has a section on this Webpage on 'Arbitrary Lookups'
that details how to do this with formulas.

http://www.cpearson.com/excel/lookups.htm

HTH
Paul
--------------------------------------------------------------------------------------------------------------
Be advised to back up your WorkBook before attempting to make changes.
--------------------------------------------------------------------------------------------------------------
I'm using VLOOKUP function to get some values from a range. The problem is
if source range has more than one record for the condition, VLOOKUP always
gets first occurance. Is there anyway to get second or third occurance of
lookup value.


Thanks in advance


Haldun


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
vlookup question aimlessmn Excel Discussion (Misc queries) 2 April 10th 09 09:49 PM
Vlookup question *zot* Excel Worksheet Functions 2 March 17th 09 09:08 PM
VLOOKUP question duration Excel Worksheet Functions 9 July 11th 06 03:25 PM
VLOOKUP question Watercolor artist Excel Worksheet Functions 1 June 13th 05 08:15 PM
VLOOKUP question Pierre Fichaud Excel Worksheet Functions 5 March 18th 05 10:53 PM


All times are GMT +1. The time now is 05:16 AM.

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"