Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
nicgendron
 
Posts: n/a
Default Find a value in cells


Hi, all,

I have something like this :

a 1
b 4
c 5
d 3

I'm doing a max function in the number column and it returns me '5'

But, after that, I want to know the letter which corresponds to the max
number

How can I do that?

Thanks

Nic


--
nicgendron
------------------------------------------------------------------------
nicgendron's Profile: http://www.excelforum.com/member.php...o&userid=25151
View this thread: http://www.excelforum.com/showthread...hreadid=386417

  #2   Report Post  
Barb Reinhardt
 
Posts: n/a
Default

Let's say that your data is in A1:B4

To return "c" as the value that matches the max value, use this

=INDIRECT("A"&MATCH(MAX(B1:B4),B1:B4))

I'm sure there's a way to dynamically determine the "A" value, but this gets
you what you need..

"nicgendron" wrote
in message ...

Hi, all,

I have something like this :

a 1
b 4
c 5
d 3

I'm doing a max function in the number column and it returns me '5'

But, after that, I want to know the letter which corresponds to the max
number

How can I do that?

Thanks

Nic


--
nicgendron
------------------------------------------------------------------------
nicgendron's Profile:
http://www.excelforum.com/member.php...o&userid=25151
View this thread: http://www.excelforum.com/showthread...hreadid=386417



  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

One way:
=index(a1:a4,match(max(b1:b4),b1:b4,0))

Adjust your ranges to match.

nicgendron wrote:

Hi, all,

I have something like this :

a 1
b 4
c 5
d 3

I'm doing a max function in the number column and it returns me '5'

But, after that, I want to know the letter which corresponds to the max
number

How can I do that?

Thanks

Nic

--
nicgendron
------------------------------------------------------------------------
nicgendron's Profile: http://www.excelforum.com/member.php...o&userid=25151
View this thread: http://www.excelforum.com/showthread...hreadid=386417


--

Dave Peterson
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
requires that merged cells must be identically sized? Catt Excel Discussion (Misc queries) 11 July 3rd 05 12:36 PM
How do I find the cell address of the 2nd largest of a set? Mr. Snrub Excel Discussion (Misc queries) 4 May 30th 05 12:53 PM
Find - Entire Cells only Andibevan Excel Discussion (Misc queries) 2 April 7th 05 11:45 AM
How do I find blank cells using AutoFilter's Custom feature? Andrea Blake Excel Worksheet Functions 2 November 30th 04 09:03 PM
copy group of cells to another group of cells using "IF" in third Chuckak Excel Worksheet Functions 2 November 10th 04 06:04 PM


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