Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 788
Default Replace a derived value with a label

I need to have the maximum value in a column replaced with it's ocncordant
label.

For example in the following table I need to see Alberta rather than the MAX
value underneath the Jan Column:

Sales by Region

Jan Feb Mar Apr May
BC 45600 50000 48000 52600 54700
Manitoba 45600 44000 48000 48000 46500
Ontario 45650 49000 56000 64500 58700
Saskatchewan 45900 45000 45600 44100 38900
Alberta 55700 48000 51000 54500 54600



  #2   Report Post  
Posted to microsoft.public.excel.misc
Red Red is offline
external usenet poster
 
Posts: 48
Default Replace a derived value with a label

Ok... here is a possible solution.

Assuming your month headers start in B1, and your row headers start in A2
this formula will work.

=IF(MAX(B2:B6)=B2,$A$2,(IF(MAX(B2:B6)=B3,$A$3,(IF( MAX(B2:B6)=B4,$A$4,(IF(MAX(B2:B6)=B5,$A$5,(IF(MAX( B2:B6)=B6,$A$6,"")))))))))

It needs to go at the bottom of column B, and if you have more rows of data
then you need to add the IF component for each new row. You can then copy
the formula across to the other columns so that you potentially can have a
different MAX province each month. The other time an issue will arrive is if
there is a tie for the max value. I believe Excel will populate the cell
with the first one it comes to.

Hope this helps.


"Chris" wrote:

I need to have the maximum value in a column replaced with it's ocncordant
label.

For example in the following table I need to see Alberta rather than the MAX
value underneath the Jan Column:

Sales by Region

Jan Feb Mar Apr May
BC 45600 50000 48000 52600 54700
Manitoba 45600 44000 48000 48000 46500
Ontario 45650 49000 56000 64500 58700
Saskatchewan 45900 45000 45600 44100 38900
Alberta 55700 48000 51000 54500 54600



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default Replace a derived value with a label

Hi Chris

try
=INDEX($A:$A,MATCH(MAX(B:B),B:B,0))

If there are ties for Max value, then the first value's location will be the
one shown.
--

Regards
Roger Govier

"Chris" wrote in message
...
I need to have the maximum value in a column replaced with it's ocncordant
label.

For example in the following table I need to see Alberta rather than the
MAX
value underneath the Jan Column:

Sales by Region

Jan Feb Mar Apr May
BC 45600 50000 48000 52600 54700
Manitoba 45600 44000 48000 48000 46500
Ontario 45650 49000 56000 64500 58700
Saskatchewan 45900 45000 45600 44100 38900
Alberta 55700 48000 51000 54500 54600



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
Vlookup derived wrong value Michelle Excel Worksheet Functions 4 July 5th 07 03:26 AM
How to rezize data label box in pie charts (label wraps to two lin rolliedogg Charts and Charting in Excel 1 October 18th 06 08:17 PM
functions derived from cell contents [email protected] Excel Worksheet Functions 3 September 13th 06 11:43 PM
i need a number total derived from words greenlion Excel Worksheet Functions 4 June 1st 06 08:06 PM
Derived Columns in Pivot Table sa02000 Excel Discussion (Misc queries) 1 February 8th 06 07:18 PM


All times are GMT +1. The time now is 05:46 AM.

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"