简体   繁体   中英

How to find the maximum value from a column using another column as criteria in excel

I have a dataset with person and values. I need to find the maximum value for each person. I wrote a function to find the maximum value for each person and gave 'ctrl+shift+Enter'.

=MAX(IF(A2:A34=A2,B2:B34))

When I drag this formula for all the person, the last few values for each person are not getting formulated correctly. Attached screenshot for reference. What is wrong that I am doing here? 数据集截图

Try it as,

=MAX(IF(A$2:A$34=A2, B$2:B$34))

... with CSE then drag down.

See this for more information.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM