Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 122
Default Return MAX value from column B and Name from column A

Is it possible for Excel to return the MAX value in column B and the
corresponding Name in column A For a month listed in column C

2000 rows Column A is Name, B is Amount and C is Month. I need to
return MAX of column B for each month scattered through the rows.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 913
Default Return MAX value from column B and Name from column A

On Sat, 17 Oct 2009 10:15:32 -0700 (PDT), wx4usa
wrote:

Is it possible for Excel to return the MAX value in column B and the
corresponding Name in column A For a month listed in column C

2000 rows Column A is Name, B is Amount and C is Month. I need to
return MAX of column B for each month scattered through the rows.



Assuming that you have the months you want the Max values for in
column D, that the max value should appear in column E and the
corresponding name (from column A) should appear in column F and
that everything starts on row 1 in all columns, try the following:

In cell E1: =MAX(B$1:B$100*(C$1:C$100=D1))

Note: This is an array formula that has to be confirmed by
CTRL+SHIFT+ENTER rather than just ENTER

In cell F1: =INDEX(A$1:A$100,MATCH(E1,B$1:B$100,0))

Change the 100 in all places in these to formulas to fit the size of
your data in columns A and B.

Copy cells E1:F1 down as far as you have data in columns D.

Hope this helps / Lars-Åke

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 122
Default Return MAX value from column B and Name from column A

On Oct 17, 1:26*pm, Lars-Åke Aspelin
wrote:
On Sat, 17 Oct 2009 10:15:32 -0700 (PDT), wx4usa
wrote:

Is it possible for Excel to return the MAX value in column B and the
corresponding Name in column A For a month listed in column C


2000 rows Column A is Name, B is Amount and C is Month. *I need to
return MAX of column B for each month scattered through the rows.


Assuming that you have the months you want the Max values for in
column D, that the max value should appear in column E and the
corresponding name (from column A) should appear in column F and
that everything starts on row 1 in all columns, try the following:

In cell E1: =MAX(B$1:B$100*(C$1:C$100=D1))

Note: This is an array formula that has to be confirmed by
CTRL+SHIFT+ENTER rather than just ENTER

In cell F1: =INDEX(A$1:A$100,MATCH(E1,B$1:B$100,0))

Change the 100 in all places in these to formulas to fit the size of
your data in columns A and B.

Copy cells E1:F1 down as far as you have data in columns D.

Hope this helps / Lars-Åke


That worked brilliantly...thank you!
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
Return value from specific column if not in new column previously JDub Excel Worksheet Functions 1 September 25th 09 08:23 AM
Search a column for values, return a value from adj column Adam Excel Worksheet Functions 2 June 18th 08 08:35 AM
Return column number from column header text Roger[_3_] Excel Discussion (Misc queries) 4 February 14th 08 09:40 PM
Return text in Column A if Column B and Column K match jeannie v Excel Worksheet Functions 4 December 13th 07 07:36 PM
Find max value in one column and return the value of corrosponding cell in different column [email protected] Excel Worksheet Functions 5 October 16th 07 12:33 PM


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