Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Find max # and display name

My setup and my issue:

I have Name1 in cell B2 and their score in cell C2. I have Name2 in
cell F2 and their score in G2. What I am trying to do is compare the
two scores, and then display the name of whoever is higher.

I think I am close with the formula =INDEX((B2,F2),MATCH(MAX(C2,G2),
(C2,G2))) but I am not getting a result.


Any help is appreciated!

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Find max # and display name

If you look in help you can see it clearly states that MATCH and INDEX both
require arrays so you cannot pick 2 cells like that

Since you only have 2 cells to test you can use an IF function otherwise you
would be better off changing your layout

=IF(C2=MAX(C2,G2),B2,F2)


--


Regards,


Peo Sjoblom




wrote in message
ups.com...
My setup and my issue:

I have Name1 in cell B2 and their score in cell C2. I have Name2 in
cell F2 and their score in G2. What I am trying to do is compare the
two scores, and then display the name of whoever is higher.

I think I am close with the formula =INDEX((B2,F2),MATCH(MAX(C2,G2),
(C2,G2))) but I am not getting a result.


Any help is appreciated!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Find max # and display name

On Sep 13, 4:07 pm, "Peo Sjoblom" wrote:
If you look in help you can see it clearly states that MATCH and INDEX both
require arrays so you cannot pick 2 cells like that

Since you only have 2 cells to test you can use an IF function otherwise you
would be better off changing your layout

=IF(C2=MAX(C2,G2),B2,F2)

--

Regards,

Peo Sjoblom

wrote in message

ups.com...



My setup and my issue:


I have Name1 in cell B2 and their score in cell C2. I have Name2 in
cell F2 and their score in G2. What I am trying to do is compare the
two scores, and then display the name of whoever is higher.


I think I am close with the formula =INDEX((B2,F2),MATCH(MAX(C2,G2),
(C2,G2))) but I am not getting a result.


Any help is appreciated!- Hide quoted text -


- Show quoted text -


That worked. I knew I was making things more complicated than I
needed.

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
Find value every time it appears and display cell above Sarah (OGI) Excel Worksheet Functions 1 August 17th 07 05:24 PM
HOW? Find and display the last cell in a column with a value 0 Conker10382 Excel Discussion (Misc queries) 10 July 22nd 06 02:02 AM
Find date query and Display issue VBA Noob Excel Worksheet Functions 2 July 14th 06 11:23 PM
trying to find how to display worksheet name in cell Yvonne Barber Excel Discussion (Misc queries) 1 September 15th 05 08:37 PM
can excel find the last used line in a column and display it? Paul - South Australia Excel Worksheet Functions 2 March 15th 05 09:36 PM


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