group tables and values

Manolocs

Active Member
Joined
Mar 28, 2008
Messages
340
Hello, I am looking for a formula to achieve this and can not be a macro.
I have three tables with 3 columns each and different row lengths, need to group all columns by names and make sum of the values on the SUM table like the follow:


2yzie6b.jpg
[/IMG]

Is it possible without macro?
Thanks in advance for your help.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
This might be what you are looking for.

It is the SumIf function. Basically it will check to see if your criteria matches and then it will sum up the totals.
You will probably need to reorganize your charts a little. What I did is stacked your years together in columns A, B and C and then added the sums in columns F, G and H.
I then added in the follow code to the 'qtty' column of the sum table and the 'price' column.

'qtty
=SUMIF(A:A,F3,B:B)

'price
=SUMIF(A:A,F3,C:C)


--- EDIT

basically it checks all of column A to see if it matches the name in 'F3' and if it does it sums all of the matches in either column 'B' or 'C'.

--- END EDIT

hope that helps!
~Frab
 
Last edited:
Upvote 0
Here's one option:

ABCDEFGHIJKLMNO
1
2201420152016SUM
3NameqtypriceNameqtypriceNameqtypriceNameqtyprice
4john120carl350antony115john8120
5peter120francis430peter140carl350
6mary130antony145john120antony260
7john680mary130peter770
8peter510francis430
9mary260
10

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet4

Worksheet Formulas
CellFormula
N4=IF(M4="","",SUMIF($A$4:$I$20,M4,$B$4:$J$20))
O4=IF(M4="","",SUMIF($A$4:$I$20,M4,$C$4:$K$20))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Array Formulas
CellFormula
M4{=INDIRECT(TEXT(MIN(IF(ISTEXT($A$4:$I$20)*(COUNTIF($M$3:M3,$A$4:$I$20)=0),ROW($4:$20)*100+COLUMN($A:$I),7^8)),"R0C00"),)&""}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>

The array formula in M4 creates a list of unique names, but not sorted. I'll look at that some more.
 
Upvote 0

Forum statistics

Threads
1,215,339
Messages
6,124,381
Members
449,155
Latest member
ravioli44

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