I have a spreadsheet that lists names in column A. These names do duplicate. In column M I have values of 1, 3, 5, or Failed.
I need a formula that can lookup each name in Column A and only return the highest number in column M. (5,3,1 or Failed)
I have a spreadsheet that lists names in column A. These names do duplicate. In column M I have values of 1, 3, 5, or Failed.
I need a formula that can lookup each name in Column A and only return the highest number in column M. (5,3,1 or Failed)
Use pivot table for that.
in the row select name
in the values select number (and choose for max).
Notice my main language is not English.
I appreciate it, if you reply on my solution.
If you are satisfied with the solution, please mark the question solved.
You can add reputation by clicking on the star * add reputation.
I created a pivot table and added the names (column A) as the row and made Column M as the values. That did show the results that looked to be a count instead of just the Maximum highest single value. I then changes the values to "Max", but that returns all "0"
Did I do something wrong?
I that case you better, add an excel example, without confidentional information.
Then i can take a look and show it to you.
Attached is an example. Thanks
See the attached file.
The problem was not the pivot table (and the max) => you did the things right.
But the data was tekst.
I changed your formula (see the yellow cells).
Tip: I would not seek in the whole column (e.g. E:E) but determine a range (e.g. E2:E1500).
Maybe this...
Names in the range A2:A20
Values in the range B2:B20
List of unique names* in the range D2:D6.
This array formula** entered in E2 and copied down:
=IFERROR(1/(1/MAX(IF(A$2:A$20=D2,B$2:B$20))),"Failed")
** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
* You can easily generate the list of unique names using advanced filter:
http://contextures.com/xladvfilter01.html#FilterUR
Biff
Microsoft MVP Excel
Keep It Simple Stupid
Let's Go Pens. We Want The Cup.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks