Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Sam
 
Posts: n/a
Default How to print the column # where the max row value is located?

Hello,

I have a row with 100 numbers in it. This row starts in column C and ends
in column CX. I am printing the Maximum number in this row in column B. How
can I print the number of a column that contains this maximum. In other
words, if the maximum occurs in column D, I would like to print 2 in column A.

Thank you very much!
  #2   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Sat, 4 Jun 2005 07:48:01 -0700, Sam wrote:

Hello,

I have a row with 100 numbers in it. This row starts in column C and ends
in column CX. I am printing the Maximum number in this row in column B. How
can I print the number of a column that contains this maximum. In other
words, if the maximum occurs in column D, I would like to print 2 in column A.

Thank you very much!


Look at the MATCH function:

=MATCH(MAX(2:2),2:2,0)

)
--ron
  #3   Report Post  
RagDyeR
 
Posts: n/a
Default

You're confusing the issue here when you say that you're entering the
maximum number in Column B, and you want to find which column in the row
contains this maximum number.

If it's really the maximum number, why do you have to enter it in B to look
it up?
You could simply use this in A2:

=MATCH(MAX(C2:CX2),C2:CX2,0)

If, on the other hand, you're looking for a specific number, which might
*not* be the actual largest number in the row, then you could enter that
number in B2, and this formula in A2:

=MATCH(B2,C2:CX2,0)
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"Sam" wrote in message
...
Hello,

I have a row with 100 numbers in it. This row starts in column C and ends
in column CX. I am printing the Maximum number in this row in column B.
How
can I print the number of a column that contains this maximum. In other
words, if the maximum occurs in column D, I would like to print 2 in column
A.

Thank you very much!


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
Help with macro looping and color query function kevinm Excel Discussion (Misc queries) 10 May 26th 05 01:25 AM
Combining workbooks with some variable field names Bob Dobalina Excel Discussion (Misc queries) 8 May 17th 05 09:48 PM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 0 May 15th 05 08:14 PM
Dynamic Print Range Help waxwing Excel Worksheet Functions 2 February 21st 05 03:47 PM
Printing - Have to set print area 1 column further than necessary STUART BISSET Excel Discussion (Misc queries) 0 January 24th 05 07:59 PM


All times are GMT +1. The time now is 06:22 PM.

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

About Us

"It's about Microsoft Excel"