How to use Excel/VBA to find column_b value with max column_c for each unique column_a element -


the input data table like:

column_a   column_b   column_c apple      big        60% apple      mid        30% apple      small      10% pear       big        20% pear       small      80% pineapple  huge       30% pineapple  big        20% pineapple  mid        20% pineapple  small      20% pineapple  tiny       10% 

expected return table:

column_a  column_b  column_c apple     big       60% pear      small     80% pineapple huge      30% 

two simple steps, both data tab on ribbon.

  1. data > sort > on column c (large small)
  2. data > remove duplicates > on column a

column_a    column_b    column_c pear         small       80% apple        big         60% pineapple    huge        30% 

Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -