ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Array max formula? (https://www.excelbanter.com/excel-programming/330096-array-max-formula.html)

Steph[_3_]

Array max formula?
 
Hello everyone. Was hoping for some formula help. With this abridged
sample data:

A 8
B 4
C 9
A 6
D 7
S 1
A 6

I conceptually would like excel to scan the first column (A), and identify
all A's, and return the Max of the value found in column B.



Chip Pearson

Array max formula?
 
Use the following array formula:

=MAX((A1:A10="A")*B1:B10)

Since this is an array formula, you must press Ctrl+Shift+Enter
rather than just Enter when you first enter the formula and
whenever you edit the formula later. If you do this correctly,
Excel will display the formula enclosed in curly braces {}.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com





"Steph" wrote in message
...
Hello everyone. Was hoping for some formula help. With this
abridged
sample data:

A 8
B 4
C 9
A 6
D 7
S 1
A 6

I conceptually would like excel to scan the first column (A),
and identify
all A's, and return the Max of the value found in column B.





Steph[_3_]

Array max formula?
 
Thanks Chip!!

"Chip Pearson" wrote in message
...
Use the following array formula:

=MAX((A1:A10="A")*B1:B10)

Since this is an array formula, you must press Ctrl+Shift+Enter
rather than just Enter when you first enter the formula and
whenever you edit the formula later. If you do this correctly,
Excel will display the formula enclosed in curly braces {}.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com





"Steph" wrote in message
...
Hello everyone. Was hoping for some formula help. With this
abridged
sample data:

A 8
B 4
C 9
A 6
D 7
S 1
A 6

I conceptually would like excel to scan the first column (A),
and identify
all A's, and return the Max of the value found in column B.








All times are GMT +1. The time now is 12:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com