Link to home
Start Free TrialLog in
Avatar of mainrotor
mainrotor

asked on

I need help with a grouping formula in EXCEL

Hi Experts,
I have a spreadsheet with a weight column and class column in section 1.
In section 2, I want to list all the classes in section 1, but I want to group all the like classes and sum the weights of the like classes.
How can I do that with a formula?  I really don't want to use VBA, if I could possibly I would rather use a formula.  How can I accomplish this?

I have included an image below to help explain what it is I wish to accomplish.
User generated image
Thank you very much in advance,
mrotor
ASKER CERTIFIED SOLUTION
Avatar of Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj)
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
in case you want to dynamically populate the result without using formula, you probably can try use pivot table as well
28697646.xlsx
I think in this case much more handy is to use Pivot table rather than formulas.
Just select table, go to Insert>Pivot table and put Class into Rows and Weight (sum) into Values. If you change your source table just right click on Pivot table and click Refresh.
See attached sample.
sample.xlsx