#1   Report Post  
Posted to microsoft.public.excel.misc
blatham
 
Posts: n/a
Default Conditional Max


If I have a 2 columns of data like this:

Col A Col B
a 1
b 2
c 8
a 5
b 6
c 1

What is the best way to retrieve the maximum entry in Col B for a
specific entry in Col A.


--
blatham
------------------------------------------------------------------------
blatham's Profile: http://www.excelforum.com/member.php...o&userid=19441
View this thread: http://www.excelforum.com/showthread...hreadid=539239

  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default Conditional Max


Try this array formula*:

For values in A1:B10

C1: =MAX(IF(A1:A10="b",B1:B10))

*Note: For array formulas, hold down [Ctrl] and [Shift] when you press
[Enter].

Does that help?

Regards,
Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=539239

  #3   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default Conditional Max

=SUBTOTAL(104,B:B)

SUBTOTAL can return any of the following:

1 101 AVERAGE
2 102 COUNT
3 103 COUNTA
4 104 MAX
5 105 MIN
6 106 PRODUCT
7 107 STDEV
8 108 STDEVP
9 109 SUM
10 110 VAR
11 111 VARP

Where the first number includes hidden values and the second ignores them.

By using AutoFIlter on your columns, you can display only the a values and
the formula will only consider them.
--
Gary's Student


"blatham" wrote:


If I have a 2 columns of data like this:

Col A Col B
a 1
b 2
c 8
a 5
b 6
c 1

What is the best way to retrieve the maximum entry in Col B for a
specific entry in Col A.


--
blatham
------------------------------------------------------------------------
blatham's Profile: http://www.excelforum.com/member.php...o&userid=19441
View this thread: http://www.excelforum.com/showthread...hreadid=539239


  #4   Report Post  
Posted to microsoft.public.excel.misc
blatham
 
Posts: n/a
Default Conditional Max


That's great, the array formula is most suitable for my need. Many
thanks


--
blatham
------------------------------------------------------------------------
blatham's Profile: http://www.excelforum.com/member.php...o&userid=19441
View this thread: http://www.excelforum.com/showthread...hreadid=539239

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
Conditional Formatting when inserting a row zahoulik Excel Worksheet Functions 2 January 7th 06 03:01 PM
Conditional Format Not Working KMH Excel Discussion (Misc queries) 0 December 22nd 05 05:32 PM
Conditional formula - language needed gamebird Excel Worksheet Functions 7 October 10th 05 11:48 PM
VLOOKUP & Conditional Formating Help. Excel'ed Failures Excel Discussion (Misc queries) 6 August 16th 05 04:46 PM
Conditional formatting not available in Excel BAB Excel Discussion (Misc queries) 2 January 1st 05 03:33 PM


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