Consolidate Unique Combinations

bkg73123

New Member
Joined
Sep 11, 2013
Messages
23
Office Version
  1. 365
Platform
  1. Windows
Hello,

In Google Sheets...
I am trying to take the below data table and, with a single formula, consolidate it into the example result table below.
The formula would look at the data table and basically look for unique combinations of first and third columns and then sum up column 2 for those instances that match those combinations.
I would want the results to be sorted by Column 3 then by Column 1 automatically if possible, but the sort I can do after manually or with a macro later.
Most important part is just getting the data in the result table regardless of sort.

Thank you!


DATA TABLERESULT
BOB1ABOB6A
BOB2ABILL14A
BOB3AJOHN3B
BILL2AFRANK9B
BILL3AJIM26B
BILL4A
BILL5A
JOHN3B
FRANK4B
FRANK5B
JIM5B
JIM6B
JIM7B
JIM8B
 
Last edited:

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi,
can you include which version of Excel you are using please in your Profile, so people know what access you have to formulas...?

thanks
Rob
 
Upvote 0
Hi,
can you include which version of Excel you are using please in your Profile, so people know what access you have to formulas...?

thanks
Rob
Sorry Rob I forgot to specify this is for Google Sheets.
 
Upvote 0
I was able to solve this by rearranging the 1st and 3rd columns next to each other (the sum column on the far right) and using a simple UNIQUE formula on both columns to get a unique list of combinations.
Then i did a sumifs formula to look up the combination and sum up the values in the 3rd column.
 
Upvote 0
Solution

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top