A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Finding a cell location



 
 
Thread Tools Display Modes
  #1  
Old February 25th, 2009, 10:51 PM posted to microsoft.public.excel.newusers
Lucask
external usenet poster
 
Posts: 2
Default Finding a cell location

I am trying to find the exact cell reference (or even column) that contains
the max of a range.
Basically, after I find the highest or lowest of a range, I want to be able
to identify which column it's in and then display that column heading in
another cell.
  #2  
Old February 25th, 2009, 11:04 PM posted to microsoft.public.excel.newusers
Max
external usenet poster
 
Posts: 8,574
Default Finding a cell location

Something like this will extract the col header within B1:E1
for the max within each row in row2 down
(that's the underlying functionality that you seek)

In F2: =INDEX($B$1:$E$1,MATCH(MAX(B2:E2),B2:E2,0))
Copy F2 down

If there are any ties in the maximum,
the expression returns the leftmost col header

High-five?, click YES below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,500 Files:370 Subscribers:66
xdemechanik
---
"Lucask" wrote:
I am trying to find the exact cell reference (or even column) that contains
the max of a range.
Basically, after I find the highest or lowest of a range, I want to be able
to identify which column it's in and then display that column heading in
another cell.

  #3  
Old February 25th, 2009, 11:28 PM posted to microsoft.public.excel.newusers
Lucask
external usenet poster
 
Posts: 2
Default Finding a cell location

Thank you very much - thus far it works well.

"Max" wrote:

Something like this will extract the col header within B1:E1
for the max within each row in row2 down
(that's the underlying functionality that you seek)

In F2: =INDEX($B$1:$E$1,MATCH(MAX(B2:E2),B2:E2,0))
Copy F2 down

If there are any ties in the maximum,
the expression returns the leftmost col header

High-five?, click YES below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,500 Files:370 Subscribers:66
xdemechanik
---
"Lucask" wrote:
I am trying to find the exact cell reference (or even column) that contains
the max of a range.
Basically, after I find the highest or lowest of a range, I want to be able
to identify which column it's in and then display that column heading in
another cell.

  #4  
Old February 26th, 2009, 01:14 PM posted to microsoft.public.excel.newusers
Max
external usenet poster
 
Posts: 8,574
Default Finding a cell location

Good to hear. You're welcome
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,500 Files:370 Subscribers:66
xdemechanik
---
"Lucask" wrote in message
...
Thank you very much - thus far it works well.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:10 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.