I have an Excel spreadsheet form:
A,B
X,1
X,5
Y,4
Y,11
X,7
Z,1
I would like to get the maximum value of column B for each individual value of column A - how can I do this with a clean Excel formula ?
Desired result (order doesn't matter):
A,B
Y,11
X,7
Z,1
In other words, I would like the Excel version of the SQL query
SELECT A,max(B)
FROM myTable
GROUP BY A
Any version of Excel is acceptable, but I use 365.
Pivot tables are an acceptable approach (I am currently doing this using a pivot table), but I would prefer the real formula . The main goal of the question is to improve understanding of formula programming in Excel. No vba
source
share