Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 54
Default Row # of successful vlookup

Hi - Is there any way to know what the row # of a successful vlookup is?

Ex. From the following 2 column, 3 row lookup range:

col 1 col 2
row 1 John A
row 2 Tom B
row 3 Jim C

Vlookup(lookup range,"Tom",2,False) returns 'B'. Is there any way to know
that B is on row 2 of the lookup range?
--
TIA
Chuck M.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 897
Default Row # of successful vlookup

MATCH function returns the position of lookup_value in lookup_array.

If your example started in A1, this formula would return the row
number of "B" which is 2:

=MATCH(VLOOKUP("Tom",A1:B3,2,FALSE),B1:B3,0)


HTH,
JP

On Aug 19, 4:10*pm, Chuck M wrote:
Hi - Is there any way to know what the row # of a successful vlookup is? *

Ex. From the following 2 column, 3 row *lookup range:

* * * * * * * *col 1 * *col 2
row 1 * * * John * * A
row 2 * * * Tom * * B
row 3 * * * Jim * * * C

Vlookup(lookup range,"Tom",2,False) * returns 'B'. *Is there any way to know
that B is on row 2 of the lookup range?
--
TIA
Chuck M.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 622
Default Row # of successful vlookup

On Aug 19, 3:10 pm, Chuck M wrote:
Hi - Is there any way to know what the row # of a successful vlookup is?

Ex. From the following 2 column, 3 row lookup range:

col 1 col 2
row 1 John A
row 2 Tom B
row 3 Jim C

Vlookup(lookup range,"Tom",2,False) returns 'B'. Is there any way to know
that B is on row 2 of the lookup range?
--
TIA
Chuck M.


No. So use Match instead.
MATCH("Tom",lookup_range,0)
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 54
Default Row # of successful vlookup

Spiky & JP - Thanks to you both for your quick response. Will use MATCH
instead.
--
TIA
Chuck M.


"Spiky" wrote:

On Aug 19, 3:10 pm, Chuck M wrote:
Hi - Is there any way to know what the row # of a successful vlookup is?

Ex. From the following 2 column, 3 row lookup range:

col 1 col 2
row 1 John A
row 2 Tom B
row 3 Jim C

Vlookup(lookup range,"Tom",2,False) returns 'B'. Is there any way to know
that B is on row 2 of the lookup range?
--
TIA
Chuck M.


No. So use Match instead.
MATCH("Tom",lookup_range,0)

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
Formula apparently successful but #VALUE displayed Matthew Leingang Excel Worksheet Functions 2 January 22nd 08 03:32 PM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM
Calculating time between successful data transmissions Donnie Excel Discussion (Misc queries) 2 December 10th 04 12:45 PM


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