Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default Simple VLOOKUP with NON ascending order

Morning folks: I am trying to do something very simple but I just can't seem
to get it to work the way I want! I have been searching for an answer for 2
days now!!!

On my STATS page I have a list of basketball players down a column (taken
from TEAM LIST page) and the next columns have their POINTS, REBOUNDS,
ASSISTS, etc. (taken from GAMES DATA page)
At the bottom, I want to see who has the most points: '=MAX(B3:B30)' and I
would like to show that players name next to the number returned from MAX.
The same for '=MIN(B3:B30)'
I think my problem is that player #1 may have a higher number than Player#23
and my calculation returns 'N/A', am I right thinking this? Am I getting
caught on some restrictions I don't know about?

Thanks for all your help!
Regards;
Duane in Nova Scotia

John 4 6 2
Sean 12 2 1
Todd 0 2 1
Andy 6 1 0
Brad 23 4 8
Vern 2 0 0
Mark 8 4 2
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Simple VLOOKUP with NON ascending order

Hi,

Is this what you want

=INDEX(A3:A30,MATCH(MAX(B3:B30),B3:B30,FALSE),1)

change MAX to MIN for the minumum assists etc
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Duane" wrote:

Morning folks: I am trying to do something very simple but I just can't seem
to get it to work the way I want! I have been searching for an answer for 2
days now!!!

On my STATS page I have a list of basketball players down a column (taken
from TEAM LIST page) and the next columns have their POINTS, REBOUNDS,
ASSISTS, etc. (taken from GAMES DATA page)
At the bottom, I want to see who has the most points: '=MAX(B3:B30)' and I
would like to show that players name next to the number returned from MAX.
The same for '=MIN(B3:B30)'
I think my problem is that player #1 may have a higher number than Player#23
and my calculation returns 'N/A', am I right thinking this? Am I getting
caught on some restrictions I don't know about?

Thanks for all your help!
Regards;
Duane in Nova Scotia

John 4 6 2
Sean 12 2 1
Todd 0 2 1
Andy 6 1 0
Brad 23 4 8
Vern 2 0 0
Mark 8 4 2

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Simple VLOOKUP with NON ascending order

With your data in A1 thru D7:
=INDEX(A:A,MATCH(MAX(B:B),B:B))
returns Brad
--
Gary''s Student - gsnu201001


"Duane" wrote:

Morning folks: I am trying to do something very simple but I just can't seem
to get it to work the way I want! I have been searching for an answer for 2
days now!!!

On my STATS page I have a list of basketball players down a column (taken
from TEAM LIST page) and the next columns have their POINTS, REBOUNDS,
ASSISTS, etc. (taken from GAMES DATA page)
At the bottom, I want to see who has the most points: '=MAX(B3:B30)' and I
would like to show that players name next to the number returned from MAX.
The same for '=MIN(B3:B30)'
I think my problem is that player #1 may have a higher number than Player#23
and my calculation returns 'N/A', am I right thinking this? Am I getting
caught on some restrictions I don't know about?

Thanks for all your help!
Regards;
Duane in Nova Scotia

John 4 6 2
Sean 12 2 1
Todd 0 2 1
Andy 6 1 0
Brad 23 4 8
Vern 2 0 0
Mark 8 4 2

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default Simple VLOOKUP with NON ascending order

Thank you so much! I was caught up on making a VLOOKUP work that I didn't
think of other possibilities!

Greatly appreciated!

"Mike H" wrote:

Hi,

Is this what you want

=INDEX(A3:A30,MATCH(MAX(B3:B30),B3:B30,FALSE),1)

change MAX to MIN for the minumum assists etc
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Duane" wrote:

Morning folks: I am trying to do something very simple but I just can't seem
to get it to work the way I want! I have been searching for an answer for 2
days now!!!

On my STATS page I have a list of basketball players down a column (taken
from TEAM LIST page) and the next columns have their POINTS, REBOUNDS,
ASSISTS, etc. (taken from GAMES DATA page)
At the bottom, I want to see who has the most points: '=MAX(B3:B30)' and I
would like to show that players name next to the number returned from MAX.
The same for '=MIN(B3:B30)'
I think my problem is that player #1 may have a higher number than Player#23
and my calculation returns 'N/A', am I right thinking this? Am I getting
caught on some restrictions I don't know about?

Thanks for all your help!
Regards;
Duane in Nova Scotia

John 4 6 2
Sean 12 2 1
Todd 0 2 1
Andy 6 1 0
Brad 23 4 8
Vern 2 0 0
Mark 8 4 2



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Simple VLOOKUP with NON ascending order

Glad I could help.

Vlookup looks in the first column of data and returns a column to the right
so couldn't have worked on this data layout
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Duane" wrote:

Thank you so much! I was caught up on making a VLOOKUP work that I didn't
think of other possibilities!

Greatly appreciated!

"Mike H" wrote:

Hi,

Is this what you want

=INDEX(A3:A30,MATCH(MAX(B3:B30),B3:B30,FALSE),1)

change MAX to MIN for the minumum assists etc
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Duane" wrote:

Morning folks: I am trying to do something very simple but I just can't seem
to get it to work the way I want! I have been searching for an answer for 2
days now!!!

On my STATS page I have a list of basketball players down a column (taken
from TEAM LIST page) and the next columns have their POINTS, REBOUNDS,
ASSISTS, etc. (taken from GAMES DATA page)
At the bottom, I want to see who has the most points: '=MAX(B3:B30)' and I
would like to show that players name next to the number returned from MAX.
The same for '=MIN(B3:B30)'
I think my problem is that player #1 may have a higher number than Player#23
and my calculation returns 'N/A', am I right thinking this? Am I getting
caught on some restrictions I don't know about?

Thanks for all your help!
Regards;
Duane in Nova Scotia

John 4 6 2
Sean 12 2 1
Todd 0 2 1
Andy 6 1 0
Brad 23 4 8
Vern 2 0 0
Mark 8 4 2

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default Simple VLOOKUP with NON ascending order

HA!! Now I have another little glitch in my calculations!!!
I have the ability to have 15 boys on the team but we currently have only 12
so when I want to find the player with the 'MIN assists' it shows me the
entry where I don't have a boy because 'HE' (not listed) is '0'

I need some way to have my calculation IGNORE the entries if the Player name
is a NUL non entry.
Sorry if I am wasting your time but I am not that fluent with Excel yet!

Thanks again!
Duane

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default Simple VLOOKUP with NON ascending order

Well, I think I got it! Players names in col 'C' from D6 to D20, POINTS in
col'D', and so on-

First I needed to 'see' which player had the Lowest and put this value in a
cell(ie:d37):
=small(d6:d20,((countif(c6:c20,"")+1))
Then, I use this number to find my player who this number matches to in next
cell (ie: d38):
=index(c6:i20,match(d37,d6:d20,FALSE),1)

Thanks for everyone's help!
Greatly appreciated!
Duane


"Duane" wrote:

HA!! Now I have another little glitch in my calculations!!!
I have the ability to have 15 boys on the team but we currently have only 12
so when I want to find the player with the 'MIN assists' it shows me the
entry where I don't have a boy because 'HE' (not listed) is '0'

I need some way to have my calculation IGNORE the entries if the Player name
is a NUL non entry.
Sorry if I am wasting your time but I am not that fluent with Excel yet!

Thanks again!
Duane

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
Using vlookup in a table that is not in ascending order Parks Excel Discussion (Misc queries) 6 November 21st 07 11:02 PM
Why must the table for Vlookup be sorted in ascending order? Epinn New Users to Excel 3 August 12th 06 08:04 AM
How do I # my rows in ascending order. burgos Excel Worksheet Functions 1 February 16th 06 07:13 PM
Digits in ascending order ? toyota58 Excel Worksheet Functions 2 February 3rd 06 06:47 PM
Is there a VLOOKUP substitute when data is not in ascending order VJ7777 Excel Worksheet Functions 2 January 19th 05 08:32 AM


All times are GMT +1. The time now is 10:45 AM.

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"