Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Calculating Maximums

I have 2 columns in a spreadsheet. Column 1 has values of (A, B or C),
Column 2 has numeric values. In one cell I want to calculate the maximum
value for all of rows where column 1 = "A".

Example:

column 1 column2
A 10 A Max = 15
A 5 B Max = 9.25
B 3 C Max = 3
C 2.5
B 9.25
C 3
A 15

How can I calculate this?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Calculating Maximums

You could use a formula like:

=IF(A1:A7="A",MAX(B1:B7))
This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

Another way when your list of values in column A gets larger is to do a pivot
table. (Data|pivottable)

There's an option to show Maximums.



L Buchy wrote:

I have 2 columns in a spreadsheet. Column 1 has values of (A, B or C),
Column 2 has numeric values. In one cell I want to calculate the maximum
value for all of rows where column 1 = "A".

Example:

column 1 column2
A 10 A Max = 15
A 5 B Max = 9.25
B 3 C Max = 3
C 2.5
B 9.25
C 3
A 15

How can I calculate this?


--

Dave Peterson

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Calculating Maximums

Might want to take another look at that formula.

Regards,
Tom Ogilvy


Dave Peterson wrote in message
...
You could use a formula like:

=IF(A1:A7="A",MAX(B1:B7))
This is an array formula. Hit ctrl-shift-enter instead of enter. If you

do it
correctly, excel will wrap curly brackets {} around your formula. (don't

type
them yourself.)

Another way when your list of values in column A gets larger is to do a

pivot
table. (Data|pivottable)

There's an option to show Maximums.



L Buchy wrote:

I have 2 columns in a spreadsheet. Column 1 has values of (A, B or C),
Column 2 has numeric values. In one cell I want to calculate the

maximum
value for all of rows where column 1 = "A".

Example:

column 1 column2
A 10 A Max = 15
A 5 B Max = 9.25
B 3 C Max = 3
C 2.5
B 9.25
C 3
A 15

How can I calculate this?


--

Dave Peterson



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Calculating Maximums

Yep. Bad answer.

Thanks for the warning.


Tom Ogilvy wrote:

Might want to take another look at that formula.

Regards,
Tom Ogilvy

Dave Peterson wrote in message
...
You could use a formula like:

=IF(A1:A7="A",MAX(B1:B7))
This is an array formula. Hit ctrl-shift-enter instead of enter. If you

do it
correctly, excel will wrap curly brackets {} around your formula. (don't

type
them yourself.)

Another way when your list of values in column A gets larger is to do a

pivot
table. (Data|pivottable)

There's an option to show Maximums.



L Buchy wrote:

I have 2 columns in a spreadsheet. Column 1 has values of (A, B or C),
Column 2 has numeric values. In one cell I want to calculate the

maximum
value for all of rows where column 1 = "A".

Example:

column 1 column2
A 10 A Max = 15
A 5 B Max = 9.25
B 3 C Max = 3
C 2.5
B 9.25
C 3
A 15

How can I calculate this?


--

Dave Peterson


--

Dave Peterson

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Calculating Maximums

What I may have "meant" was:

=MAX(IF(A1:A7="A",B1:B7))
Still array entered. (ctrl-shift-enter)

(all the letters were there, but not in the right order! Oops.)

Tom Ogilvy wrote:

Might want to take another look at that formula.

Regards,
Tom Ogilvy

Dave Peterson wrote in message
...
You could use a formula like:

=IF(A1:A7="A",MAX(B1:B7))
This is an array formula. Hit ctrl-shift-enter instead of enter. If you

do it
correctly, excel will wrap curly brackets {} around your formula. (don't

type
them yourself.)

Another way when your list of values in column A gets larger is to do a

pivot
table. (Data|pivottable)

There's an option to show Maximums.



L Buchy wrote:

I have 2 columns in a spreadsheet. Column 1 has values of (A, B or C),
Column 2 has numeric values. In one cell I want to calculate the

maximum
value for all of rows where column 1 = "A".

Example:

column 1 column2
A 10 A Max = 15
A 5 B Max = 9.25
B 3 C Max = 3
C 2.5
B 9.25
C 3
A 15

How can I calculate this?


--

Dave Peterson


--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Calculating Maximums

=Max((A1:A50="A")*B1:B50)

entered with Ctrl+Shift+Enter rather than just enter since this is an array
formula.

or assume the A is in C1

=Max(($A$1:$A$50=C1)*$B$1:$B$50)


--
Regards,
Tom Ogilvy

L Buchy wrote in message
...
I have 2 columns in a spreadsheet. Column 1 has values of (A, B or C),
Column 2 has numeric values. In one cell I want to calculate the maximum
value for all of rows where column 1 = "A".

Example:

column 1 column2
A 10 A Max = 15
A 5 B Max = 9.25
B 3 C Max = 3
C 2.5
B 9.25
C 3
A 15

How can I calculate this?




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 maximums Mike P[_2_] Excel Worksheet Functions 1 January 13th 09 07:51 PM
conditional maximums Carlos Excel Worksheet Functions 1 June 17th 08 03:22 PM
Row Maximums in Charts TKERAC Charts and Charting in Excel 1 August 24th 07 02:33 PM
IF maximums B G Excel Worksheet Functions 5 July 27th 06 01:41 PM
Find Multiple Maximums cdavidson Excel Discussion (Misc queries) 1 July 26th 05 11:55 PM


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