Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default How to reference a column heading in a cell automatically?

It's difficult to explain my question, but I'll try.

Example:

I have a spreadsheet with column headings of names of people and rows with
names of each of the 12 months for a particular year.

In each cell is the number of sales made by each person each month.

At the end of each "month" row I have a cell in which I calulate by formula,
for example, =MAX(B18:M18), the maximum number of sales for that month by a
particular person, say, John. IOW, it is a cell that gives the maximum
number of sales made by any one person that month. No problem there. But
either in that cell, or in another cell next to it, I want to automatically
place the /name/ of the person in the column heading who made the maximum
number of sales for that month. How do I do that? It probably is simple, but
I don't know the answer.

Thanks very much.

Ken

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default How to reference a column heading in a cell automatically?


"Don Guillett" wrote in message
...

Have a look in the help index for MATCH and then INDEX


I looked but couldn't figure out how to apply what I found. I found some
other help on using names in formulas, but not how to make a column name
appear in a cell as the result of a formula, as in the example I gave. That
is, if the cell gives the maximum sales in a month of any person as 9, and
those 9 sales were made by the person, John, in the column headed by "John",
how do I make the cell next to the number 9 say "John"?

Ken

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How to reference a column heading in a cell automatically?

............A..........B...........C
1........Bill.......Sue.......John
2........50........59..........66

=INDEX(A1:C1,MATCH(MAX(A2:C2),A2:C2,0))

The only complication is if more than 1 person has the highest number of
sales.

Biff

"KenV" wrote in message
...

"Don Guillett" wrote in message
...

Have a look in the help index for MATCH and then INDEX


I looked but couldn't figure out how to apply what I found. I found some
other help on using names in formulas, but not how to make a column name
appear in a cell as the result of a formula, as in the example I gave.
That is, if the cell gives the maximum sales in a month of any person as
9, and those 9 sales were made by the person, John, in the column headed
by "John", how do I make the cell next to the number 9 say "John"?

Ken



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default How to reference a column heading in a cell automatically?

Yes! It worked perfectly in my SS. Thank you!!

Now I understand the index function somewhat and will try to use it in other
places as well.

Ken


"T. Valko" wrote in message
...
...........A..........B...........C
1........Bill.......Sue.......John
2........50........59..........66

=INDEX(A1:C1,MATCH(MAX(A2:C2),A2:C2,0))

The only complication is if more than 1 person has the highest number of
sales.

Biff

"KenV" wrote in message
...

"Don Guillett" wrote in message
...

Have a look in the help index for MATCH and then INDEX


I looked but couldn't figure out how to apply what I found. I found some
other help on using names in formulas, but not how to make a column name
appear in a cell as the result of a formula, as in the example I gave.
That is, if the cell gives the maximum sales in a month of any person as
9, and those 9 sales were made by the person, John, in the column headed
by "John", how do I make the cell next to the number 9 say "John"?

Ken






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How to reference a column heading in a cell automatically?

You're welcome. Thanks for the feedback!

Biff

"KenV" wrote in message
...
Yes! It worked perfectly in my SS. Thank you!!

Now I understand the index function somewhat and will try to use it in
other places as well.

Ken


"T. Valko" wrote in message
...
...........A..........B...........C
1........Bill.......Sue.......John
2........50........59..........66

=INDEX(A1:C1,MATCH(MAX(A2:C2),A2:C2,0))

The only complication is if more than 1 person has the highest number of
sales.

Biff

"KenV" wrote in message
...

"Don Guillett" wrote in message
...

Have a look in the help index for MATCH and then INDEX

I looked but couldn't figure out how to apply what I found. I found some
other help on using names in formulas, but not how to make a column name
appear in a cell as the result of a formula, as in the example I gave.
That is, if the cell gives the maximum sales in a month of any person as
9, and those 9 sales were made by the person, John, in the column headed
by "John", how do I make the cell next to the number 9 say "John"?

Ken






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
Sumproduct issues SteveDB1 Excel Worksheet Functions 25 June 3rd 09 04:58 PM
Conditional Format as a MACRO Gunjani Excel Worksheet Functions 3 March 29th 06 05:22 PM
Return SEARCHED Column Number of Numeric Label and Value Sam via OfficeKB.com Excel Worksheet Functions 23 January 30th 06 06:16 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM


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