Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Impakt
 
Posts: n/a
Default Help pls! Max func to display value of different cell?

Hi all,

I am trying to use the max function to find the highest value in a
row, but display the value of another row (same column).

Eg: Find the highest value in the row A10:H10 but display the value
of row A5:H5 that matches the column the the highest value was found
in.

In other words...If D10 has the highest value (total rainfall for
April), and D5 is the label for the column (April) , I want to dsplay
the name of the month (D5) as the result, not the value of D10.

Can this be done? Or is there a better way?


Thanks

Paul.
  #2   Report Post  
Max
 
Posts: n/a
Default

One way

Assuming the source data is in Sheet1

In Sheet2
--------------
Try in say, B2:

=INDEX(Sheet1!$A$5:$H$5,MATCH(MAX(Sheet1!$A$10:$H$ 10),Sheet1!$A$10:$H$10,0))

B2 will return the value within Sheet1!$A$5:$H$5
which corresponds to the max value within Sheet1!$A$10:$H$10

(It's assumed there's no duplicate max values in Sheet1!$A$10:$H$10)
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Impakt" wrote in message
...
Hi all,

I am trying to use the max function to find the highest value in a
row, but display the value of another row (same column).

Eg: Find the highest value in the row A10:H10 but display the value
of row A5:H5 that matches the column the the highest value was found
in.

In other words...If D10 has the highest value (total rainfall for
April), and D5 is the label for the column (April) , I want to dsplay
the name of the month (D5) as the result, not the value of D10.

Can this be done? Or is there a better way?


Thanks

Paul.



  #3   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

=INDEX(A5:H5,MATCH(MAX(A10:H10),A10:H10,0))

--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"Impakt" wrote in message
...
Hi all,

I am trying to use the max function to find the highest value in a
row, but display the value of another row (same column).

Eg: Find the highest value in the row A10:H10 but display the value
of row A5:H5 that matches the column the the highest value was found
in.

In other words...If D10 has the highest value (total rainfall for
April), and D5 is the label for the column (April) , I want to dsplay
the name of the month (D5) as the result, not the value of D10.

Can this be done? Or is there a better way?


Thanks

Paul.



  #4   Report Post  
Max
 
Posts: n/a
Default

You're welcome !
Thanks for posting back ..
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Impakt" wrote in message
...
On Sat, 12 Feb 2005 11:24:41 +0800, "Max"
wrote:

One way

Assuming the source data is in Sheet1


Thank you for that...I'll try it out.


Kind regards

Paul.



  #5   Report Post  
Impakt
 
Posts: n/a
Default

On Sat, 12 Feb 2005 11:24:41 +0800, "Max"
wrote:

One way

Assuming the source data is in Sheet1


Thank you for that...I'll try it out.


Kind regards

Paul.


  #6   Report Post  
Impakt
 
Posts: n/a
Default

Ok, so I should read about INDEX and MATCH.
I had no idea where to look in the book/help.

Thanks again guys (and to anyone else who may reply).

I'm sure you'll hear from me again as I do battle with my excel
studies!


Kind regards

Paul.
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
Display contents of a specific cell even if a group of cells is mo Larry Heine Excel Worksheet Functions 5 December 4th 08 10:33 PM
have cell display the word balance when a equals the same amount a jenniss Excel Discussion (Misc queries) 8 February 6th 05 05:06 PM
How do I set a cell to "Empty" so that it does not display in a ch Ian Charts and Charting in Excel 3 January 7th 05 01:12 AM
Display actual contents of cell xmasbob Excel Discussion (Misc queries) 1 December 6th 04 05:09 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


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