Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 90
Default Vlookup Question - Reffering to a column other than the leftmost?

Hi there,

I have a table full of stats for a basketball team. It's laid out something
like so:
Player Name - Posistion - Pts/Game - Rebounds/Game - Asst/Game - High Score

Lower down on the same page I have a spot for the High games of the year.
I've used the LARGE function to find out the top 3 scores. Now I'm trying to
use VLOOKUP to match the score given by LARGE,1 and give the name of the
player who scored it.

I've used VLOOKUPS before but is it possible to lookup a number in the table
that isn't the leftmost column?

Thanks,
Matt
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Vlookup Question - Reffering to a column other than the leftmost?

To return the player name that corresponds to the high sco

=INDEX(name_range,MATCH(MAX(score_range),score_ran ge,0))

If you want the top n:

=INDEX(name_range,MATCH(LARGE(score_range,ROWS(A$1 :A1)),score_range,0))

Copy down as needed.

However, (seems there's always a however !!!) this will not work properly if
there are duplicate high scores that fall within the top n.

--
Biff
Microsoft Excel MVP


"mpenkala" wrote in message
...
Hi there,

I have a table full of stats for a basketball team. It's laid out
something
like so:
Player Name - Posistion - Pts/Game - Rebounds/Game - Asst/Game - High
Score

Lower down on the same page I have a spot for the High games of the year.
I've used the LARGE function to find out the top 3 scores. Now I'm trying
to
use VLOOKUP to match the score given by LARGE,1 and give the name of the
player who scored it.

I've used VLOOKUPS before but is it possible to lookup a number in the
table
that isn't the leftmost column?

Thanks,
Matt



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,047
Default Vlookup Question - Reffering to a column other than the leftmost?

=OFFSET(C29;MATCH(D29;$C$29:$C$35;0)-1;-1;1;1)

adjust the ranges as your needs

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"mpenkala" escreveu:

Hi there,

I have a table full of stats for a basketball team. It's laid out something
like so:
Player Name - Posistion - Pts/Game - Rebounds/Game - Asst/Game - High Score

Lower down on the same page I have a spot for the High games of the year.
I've used the LARGE function to find out the top 3 scores. Now I'm trying to
use VLOOKUP to match the score given by LARGE,1 and give the name of the
player who scored it.

I've used VLOOKUPS before but is it possible to lookup a number in the table
that isn't the leftmost column?

Thanks,
Matt

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Vlookup Question - Reffering to a column other than the leftmost?

Use INDEX and MATCH

=INDEX(B2:B50,MATCH(MAX(A2:A50),A2:A50,0))


=INDEX(B2:B50,MATCH(LARGE(A2:A50,2),A2:A50,0))


and so on



--


Regards,


Peo Sjoblom


"mpenkala" wrote in message
...
Hi there,

I have a table full of stats for a basketball team. It's laid out
something
like so:
Player Name - Posistion - Pts/Game - Rebounds/Game - Asst/Game - High
Score

Lower down on the same page I have a spot for the High games of the year.
I've used the LARGE function to find out the top 3 scores. Now I'm trying
to
use VLOOKUP to match the score given by LARGE,1 and give the name of the
player who scored it.

I've used VLOOKUPS before but is it possible to lookup a number in the
table
that isn't the leftmost column?

Thanks,
Matt



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 90
Default Vlookup Question - Reffering to a column other than the leftmo

Hey T. Valko,

thanks, this seems to work good. I think I'll just add a decimal place to
fix the "same score" problem. (Change a score to 10.1 and the other to 10.0,
then format to show no decimals)


Cheers,
Matt


"T. Valko" wrote:

To return the player name that corresponds to the high sco

=INDEX(name_range,MATCH(MAX(score_range),score_ran ge,0))

If you want the top n:

=INDEX(name_range,MATCH(LARGE(score_range,ROWS(A$1 :A1)),score_range,0))

Copy down as needed.

However, (seems there's always a however !!!) this will not work properly if
there are duplicate high scores that fall within the top n.

--
Biff
Microsoft Excel MVP


"mpenkala" wrote in message
...
Hi there,

I have a table full of stats for a basketball team. It's laid out
something
like so:
Player Name - Posistion - Pts/Game - Rebounds/Game - Asst/Game - High
Score

Lower down on the same page I have a spot for the High games of the year.
I've used the LARGE function to find out the top 3 scores. Now I'm trying
to
use VLOOKUP to match the score given by LARGE,1 and give the name of the
player who scored it.

I've used VLOOKUPS before but is it possible to lookup a number in the
table
that isn't the leftmost column?

Thanks,
Matt






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Vlookup Question - Reffering to a column other than the leftmo

I think I'll just add a decimal place to fix
the "same score" problem


That's the "trick" we use, only we do it within the formula. That way your
numbers stay the same if you use them in other calculations. It does make
the formula more complicated and now it becomes an array formula** :

=INDEX(name_range,MATCH(LARGE(score_range-ROW(score_range)/10^10,ROWS(A$1:A1)),score_range-ROW(score_range)/10^10,0))

We're essentially subtracting a very small decimal value from each score to
"break" any ties.

50
50

Those (could) become:

49.9999999998
49.9999999997

So, now there is no tie.


--
Biff
Microsoft Excel MVP


"mpenkala" wrote in message
...
Hey T. Valko,

thanks, this seems to work good. I think I'll just add a decimal place to
fix the "same score" problem. (Change a score to 10.1 and the other to
10.0,
then format to show no decimals)


Cheers,
Matt


"T. Valko" wrote:

To return the player name that corresponds to the high sco

=INDEX(name_range,MATCH(MAX(score_range),score_ran ge,0))

If you want the top n:

=INDEX(name_range,MATCH(LARGE(score_range,ROWS(A$1 :A1)),score_range,0))

Copy down as needed.

However, (seems there's always a however !!!) this will not work properly
if
there are duplicate high scores that fall within the top n.

--
Biff
Microsoft Excel MVP


"mpenkala" wrote in message
...
Hi there,

I have a table full of stats for a basketball team. It's laid out
something
like so:
Player Name - Posistion - Pts/Game - Rebounds/Game - Asst/Game - High
Score

Lower down on the same page I have a spot for the High games of the
year.
I've used the LARGE function to find out the top 3 scores. Now I'm
trying
to
use VLOOKUP to match the score given by LARGE,1 and give the name of
the
player who scored it.

I've used VLOOKUPS before but is it possible to lookup a number in the
table
that isn't the leftmost column?

Thanks,
Matt






  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Vlookup Question - Reffering to a column other than the leftmo

50
50
Those (could) become:
49.9999999998
49.9999999997


A more accurate description would be:

Those will be evaluated as.....


--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
I think I'll just add a decimal place to fix
the "same score" problem


That's the "trick" we use, only we do it within the formula. That way your
numbers stay the same if you use them in other calculations. It does make
the formula more complicated and now it becomes an array formula** :

=INDEX(name_range,MATCH(LARGE(score_range-ROW(score_range)/10^10,ROWS(A$1:A1)),score_range-ROW(score_range)/10^10,0))

We're essentially subtracting a very small decimal value from each score
to "break" any ties.

50
50

Those (could) become:

49.9999999998
49.9999999997

So, now there is no tie.


--
Biff
Microsoft Excel MVP


"mpenkala" wrote in message
...
Hey T. Valko,

thanks, this seems to work good. I think I'll just add a decimal place
to
fix the "same score" problem. (Change a score to 10.1 and the other to
10.0,
then format to show no decimals)


Cheers,
Matt


"T. Valko" wrote:

To return the player name that corresponds to the high sco

=INDEX(name_range,MATCH(MAX(score_range),score_ran ge,0))

If you want the top n:

=INDEX(name_range,MATCH(LARGE(score_range,ROWS(A$1 :A1)),score_range,0))

Copy down as needed.

However, (seems there's always a however !!!) this will not work
properly if
there are duplicate high scores that fall within the top n.

--
Biff
Microsoft Excel MVP


"mpenkala" wrote in message
...
Hi there,

I have a table full of stats for a basketball team. It's laid out
something
like so:
Player Name - Posistion - Pts/Game - Rebounds/Game - Asst/Game - High
Score

Lower down on the same page I have a spot for the High games of the
year.
I've used the LARGE function to find out the top 3 scores. Now I'm
trying
to
use VLOOKUP to match the score given by LARGE,1 and give the name of
the
player who scored it.

I've used VLOOKUPS before but is it possible to lookup a number in the
table
that isn't the leftmost column?

Thanks,
Matt







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 1st column time 2nd column text Kathl Excel Worksheet Functions 12 August 12th 08 05:30 AM
VLOOKUP question utilizing the right and left of a given column ineed the mid too dont know how to incorporate. TIA for help EP Excel Worksheet Functions 1 May 31st 07 04:11 AM
vlookup- is a must that lookup value should be the leftmost colum? hettie Excel Discussion (Misc queries) 3 September 20th 06 04:30 AM
VLOOKUP question...it probably can't... roger_home Excel Discussion (Misc queries) 2 February 15th 06 11:57 PM
VLOOKUP question Tom Weston Excel Discussion (Misc queries) 2 February 10th 06 06:44 PM


All times are GMT +1. The time now is 08:22 PM.

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

About Us

"It's about Microsoft Excel"